Archived
1
0
This repository has been archived on 2026-02-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
iceberg/memory/sr_flipflop.sv
T
2022-03-07 02:17:10 +01:00

13 lines
225 B
Systemverilog

'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