diff options
author | Claire Xen <claire@symbioticeda.com> | 2020-11-25 09:44:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 09:44:23 +0100 |
commit | cf67e6a3977410e039d62a1e9f6c49c42cb97b08 (patch) | |
tree | 66475213fd27ac129f8a03eabf6131aae69730ba /tests/various/dynamic_part_select/reset_test.v | |
parent | c6b5b18a30278637dcea4f9867631540b818716c (diff) | |
parent | d68a8f9e2b20d9c4120a69e1a632a2d86250be86 (diff) | |
download | yosys-cf67e6a3977410e039d62a1e9f6c49c42cb97b08.tar.gz yosys-cf67e6a3977410e039d62a1e9f6c49c42cb97b08.tar.bz2 yosys-cf67e6a3977410e039d62a1e9f6c49c42cb97b08.zip |
Merge pull request #2133 from dh73/nodev_head
Adding latch tests for shift&mask AST dynamic part-select enhancements
Diffstat (limited to 'tests/various/dynamic_part_select/reset_test.v')
-rw-r--r-- | tests/various/dynamic_part_select/reset_test.v | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/various/dynamic_part_select/reset_test.v b/tests/various/dynamic_part_select/reset_test.v index 29355aafb..1bb9379f2 100644 --- a/tests/various/dynamic_part_select/reset_test.v +++ b/tests/various/dynamic_part_select/reset_test.v @@ -1,8 +1,10 @@ +`default_nettype none module reset_test #(parameter WIDTH=32, SELW=1, CTRLW=$clog2(WIDTH), DINW=2**SELW) - (input clk, - input [CTRLW-1:0] ctrl, - input [DINW-1:0] din, - input [SELW-1:0] sel, + (input wire clk, + input wire reset, + input wire [CTRLW-1:0] ctrl, + input wire [DINW-1:0] din, + input wire [SELW-1:0] sel, output reg [WIDTH-1:0] dout); reg [SELW:0] i; @@ -16,8 +18,6 @@ module reset_test #(parameter WIDTH=32, SELW=1, CTRLW=$clog2(WIDTH), DINW=2**SE dout[i*rval+:SLICE] <= 32'hDEAD; end end - //else begin dout[ctrl*sel+:SLICE] <= din; - //end end endmodule |