Archived
1
0

create sr flipflop logic

This commit is contained in:
Erick
2022-03-07 02:17:10 +01:00
parent 6ac5d8ff63
commit 3ade6ba96a
+13
View File
@@ -0,0 +1,13 @@
'include "gates/nand16.v"
module sr_flipflop (
input s, r, clk,
output q, q_compl
);
nand16 nand0(tmp0, s, clk);
nand16 nand1(tmp1, r, clk);
nand16 nand2(q, tmp0, q_compl);
nand16 nand3(q_compl, tmp1, q);
endmodule