diff options
Diffstat (limited to 'tests/sim/sdffce.v')
-rw-r--r-- | tests/sim/sdffce.v | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sim/sdffce.v b/tests/sim/sdffce.v new file mode 100644 index 000000000..7d27d5741 --- /dev/null +++ b/tests/sim/sdffce.v @@ -0,0 +1,8 @@ +module sdffce( input d, clk, rst, en, output reg q ); + always @( posedge clk) + if(en) + if (rst) + q <= 0; + else + q <= d; +endmodule |