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/registers/bit_reg.sv
T
Erick 3223f3a6af Create bit_reg.sv
bit_reg.v is a single bit register that uses a data flipflop
2022-03-08 15:08:04 +01:00

14 lines
214 B
Systemverilog

import d_flipflop::scope;
package bit_reg (
input in;
input load;
input clk;
output out;
output out_compl;
);
mux(tmp, in, out, load);
d_flipflop(out, out_compl, tmp, clk);
endpackage