mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-31 22:27:50 +00:00
Add tests
This commit is contained in:
parent
1ede98797f
commit
b0021e5b10
2 changed files with 18 additions and 0 deletions
10
tests/various/json_param_defaults.v
Normal file
10
tests/various/json_param_defaults.v
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
module json_param_defaults #(
|
||||
parameter WIDTH = 8,
|
||||
parameter SIGNED = 1
|
||||
) (
|
||||
input [WIDTH-1:0] a,
|
||||
output [WIDTH-1:0] y
|
||||
);
|
||||
wire [WIDTH-1:0] y_int = a << SIGNED;
|
||||
assign y = y_int;
|
||||
endmodule
|
||||
Loading…
Add table
Add a link
Reference in a new issue