diff options
Diffstat (limited to 'tests/sim/dlatchsr.v')
-rw-r--r-- | tests/sim/dlatchsr.v | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/sim/dlatchsr.v b/tests/sim/dlatchsr.v new file mode 100644 index 000000000..1d13ac2ad --- /dev/null +++ b/tests/sim/dlatchsr.v @@ -0,0 +1,11 @@ +module dlatchsr( input d, set, clr, en, output reg q ); + always @* begin + if ( clr ) + q = 0; + else if (set) + q = 1; + else + if (en) + q = d; + end +endmodule |