Read Register Number 1 Read Register Number 1 Read Register Number 2 Read Register Number 2 Write Register Write Data Re 1 (78.83 KiB) Viewed 33 times
Read Register Number 1 Read Register Number 1 Read Register Number 2 Read Register Number 2 Write Register Write Data Re 2 (53.54 KiB) Viewed 33 times
Read register number 1 Read register number 1 Read register number 2 Read register number 2 Write register Write data Register file Write FIGURE A.8.7 A register file with two read ports and one write port has five inputs and two outputs. The control input Write is shown in color. Register 0 Register 1 Read data 1 Register n - 2 Register n - 1 Read data 2 X MUX Read data 1 Read data 2 FIGURE A.8.8 The implementation of two read ports for a register file with n registers can be done with a pair of n-to-1 multiplexors, each 64 bits wide. The register read number signal is used as the multiplexor selector signal. Figure A.8.9 shows how the write port is implemented.
Write Register number Register data n-to-2⁰ decoder 0 1 n-2 n-1 D D D C D C D C D C D Register 0 Register 1 : Register n-2 Register n-1 FIGURE A.8.9 The write port for a register file is implemented with a decoder that is used with the write signal to generate the C input to the registers. All three inputs (the register number, the data, and the write signal) will have setup and hold-time constraints that ensure that the correct data are written into the register file.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!