Logic Circuits II ECE 2411 Thursday 4:45pm-7:20pm Lecture 7
Lecture 7 • Topics: – Chapter 6
Registers • A register is a group of flip flops – All share a common clock – Each flip flop is capable of storing one bit of information
• Thus, a n-bit register consists of n flip flops and is capable of storing n bits of binary information • A register may also contain combinational logic that perform specific data-processing tasks
Four Bit Register module four_bit_reg(I,A,Clock, Clear_b); input [3:0] I; input Clock; input Clear_b; output [3:0] A; reg [3:0] A; always @(posedge Clock, negedge Clear_b) begin if(!Clear_b) A