Presentation is loading. Please wait.

Presentation is loading. Please wait.

A register design with parallel load input

Similar presentations


Presentation on theme: "A register design with parallel load input"— Presentation transcript:

1 A register design with parallel load input
Flip-flops can be connected to act as a register At the input, a mux selects a new input or retains the old value All flip-flops get the same clock cycle LD signal = one means load new value LD signal = zero means retain old value C D Q D0 D1 D2 Clock Q3 Q2 Q1 Q0 LD MUX IN0 IN3 IN2 IN1

2 Multiple registers 4-Bit Register Sel
In a system we can have more than one register For an operation we can select any of the registers Each register can be loaded or old value can be retained A register can be selected for output There can be more than one set of multiplexers at the output Clock 4-Bit Register IN23 IN22 IN21 IN20 Q23 Q22 Q21 Q20 LD2 IN13 IN12 IN11 IN10 Q13 Q12 Q11 Q10 LD1 MUX Sel

3 Connecting registers to ALU
A set of registers with selection signals can produce two outputs These outputs can be connected to ALU input A 4-function ALU receives two inputs and produces one output It needs two select bits to selects function Needs LD1, and LD2 signals, M1 and M2 signal A L U 4-bit Reg M X LD1 M2 M1 LD2 OpCode

4 Writing result back to registers
Output of ALU may have to be written in registers Registers may also get data from somewhere else like keyboard Therefore we need to select data to be written to register file This requires another multiplexer Or we can use a bus A L U 4-bit Reg M X LD1 M2 M1 LD2 OpCode enable Keyboard


Download ppt "A register design with parallel load input"

Similar presentations


Ads by Google