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