add parameter verilog case

This commit is contained in:
Yanting Zhang 2022-07-19 20:15:56 +08:00
parent 624f80ad72
commit 473e7e49eb
2 changed files with 1331 additions and 0 deletions

1312
test/addition.json Normal file

File diff suppressed because it is too large Load Diff

19
test/addition.v Normal file
View File

@ -0,0 +1,19 @@
module addition
#(
parameter DSIZE = 8
)
(
input [DSIZE-1:0] a,
input [DSIZE-1:0] b,
output [DSIZE-1:0] c
);
assign c = a + b;
endmodule
module top(
input [3:0] a,
input [3:0] b,
output [3:0] c
);
addition#(.DSIZE(4)) i(a, b, c);
endmodule