diff options
author | GanderlaChaithanya | 2025-06-30 12:26:18 +0530 |
---|---|---|
committer | GanderlaChaithanya | 2025-06-30 12:26:18 +0530 |
commit | 161ed8ce7658c6c4084dd0ba158b650ef909724e (patch) | |
tree | ff28add7f310d484047ba3fcca65b4c80e2882db | |
parent | 2a915f2f10a08b7d99d7fc3d48f580de71a58bf8 (diff) | |
download | eSim-161ed8ce7658c6c4084dd0ba158b650ef909724e.tar.gz eSim-161ed8ce7658c6c4084dd0ba158b650ef909724e.tar.bz2 eSim-161ed8ce7658c6c4084dd0ba158b650ef909724e.zip |
D Flip Flop Verilog code for Subcircuit - SN54HC164
-rw-r--r-- | library/SubcircuitLibrary/SN54HC164/dff_rst.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/SN54HC164/dff_rst.v b/library/SubcircuitLibrary/SN54HC164/dff_rst.v new file mode 100644 index 00000000..da896fa8 --- /dev/null +++ b/library/SubcircuitLibrary/SN54HC164/dff_rst.v @@ -0,0 +1,12 @@ +module dff_rst(d,rst,clk,q); +input d,clk,rst; +output reg q; +always @(posedge clk) begin +if(rst) begin +q<=1'b0; +end +else begin +q<=d; +end +end +endmodule
\ No newline at end of file |