diff options
Diffstat (limited to 'library/SubcircuitLibrary/AN1186/d_flop.v')
-rw-r--r-- | library/SubcircuitLibrary/AN1186/d_flop.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/AN1186/d_flop.v b/library/SubcircuitLibrary/AN1186/d_flop.v new file mode 100644 index 00000000..c7606702 --- /dev/null +++ b/library/SubcircuitLibrary/AN1186/d_flop.v @@ -0,0 +1,12 @@ +module d_flop(d, clk, rst, q); +input d, clk, rst; +output reg q; +always @(posedge clk) begin + if(rst) begin + q <= 0; + end + else begin + q <= d; + end +end +endmodule
\ No newline at end of file |