Files
nand2tetris_verilog/bit.v
2024-06-17 10:11:07 -07:00

13 lines
248 B
Verilog

`ifndef _bit_v
`define _bit_v
`include "dff.v"
`include "mux.v"
module Bit (input in, input load, input clk, output out);
wire i;
Mux u1 (.a(out), .b(in), .sel(load), .out(i));
DFF u2 (.in(i), .clk(clk), .out(out));
endmodule
`endif