dlxregfile.vhd


This is the vhdl code for the synthesis of 32 X (32-bit) register file

LMDRbus

It is a 32-bit load memory-data register bus which has the value to be loaded onto the register

Destbus_b

Is a 32-bit data bus that contains the ALU output of the instruction which gets loaded onto the register in the WRITE stage.

REGselect

Is a mux-select signal which chooses between LMDR and Destbus_b

IR_rs1 & IR_rs2

5-bit address busses of the source registers of any ALU operation. These are actually sourced from the Instruction Register (IR)

Rsdout_b

5-bit address bus of the destination register

REGload

Load enable signal for the registers

Aload,Bload

Load enable signals for the two temporary registers, A and B respectively.

Aoe,Boe

The output enable signals for the two temporary registers

S1bus,S2bus

The 32-bit data busses that has the tristated output of the temporary registers, A and B respectively.

Aregbus & Bregout

The non-tristated outputs of temporary registers, A and B repectively

Abus_Zflag

The zero-detect signal for the A-register