pc.vhd


This is the vhdl code for the synthesis of the program counter module

ConstantSelect

selects a constant value to be gated to S2 bus

IRload

load line for instruction reg

IR_rsd

Contains the 5-bit address of the destination register

opcode

Contains the 5-bit opcode

opcodeALU

Indicates the AlU operation

IRTEMPoeS1 & IRTEMPoeS2

Output enable of the temporary instruction register when its output is connected to the S1bus or S2bus respectively

sxt_imm

controls sign extension of the immediate value

iar_oe

Output enable of the Instuction Address Register

PCload

Load line for the Program Counter Register

PCmux

Select signal for the PC multiplexer which controls the input to the PC

Destbus

Contains the output of the ALU

Destbus_a

Contains the previous output of the ALU i.e. the output of the MEM stage

Destbus_b

Contains the previous output of the memory stage i.e. the output of the write back stage

LMDRbus

Output of the LMD register

NoIMemStart

Prevents the start of the Instruction Memory cycle. ???

IMemStart

Indicates start of memory cycle

IMemWait

Wait signal from the instruction memory

IMemStall

Wait signal to the rest of the DLX stages

NoWrite_MEM

Prevents write in the memory stage

NoWrite_WB

Inhibits write in the write back stage