A total of six VHDL source modules are used in the MIPS Model. TOP_SPIM.VHD is the top level of the hierarchy. IFETCH.VHD is the instruction fetch unit. IDECODE.VHD is the register file. CONTROL.VHD is the control unit. EXECUTE.VHD contains the data and branch address ALUs. DMEMORY.VHD contains data memory. The sub modules correspond to the different pipeline stages for the MIPS.
The following models are available
The newest model for Altera MAX PLUS II 9.23 is included on the CDROM with this book
MIPSUP1.ZIP - For Altera's MAX PLUS II CAD Tool and the UP1 Demo Board. Install the files then compile TOP_FLEX. When downloaded to the Flex chip, it generates a Video Display Output of major busses using the UP1 VGA port. PC is displayed on 7-segment LEDs. Flex pushbuttons single step and reset the MIPs processor. Compile and simulate TOP_SPIM for faster simulations without the video driver. Click here for Instructions
MIPSALT.ZIP - Older model only for Altera's MAX PLUS II CAD Tool Professional Version. For the student version of MAX PLUS or for a FLEX target chip such as the one on the UP1 board use the newer MIPSUP1 model above. Install the files then compile and simulate TOP_SPIM.
MIPSWVO.ZIP - For Viewlogic's Workview Office Tool. Install the files and run the VHDL synthesis tool. Click here for instructions or read the TOP_SPIM2.doc file in the zip file for details on running the tools.
MIPSSYN.TAR - For the Synopsys Unix based CAD Tool. Source files in Unix tar file format. Untar files to a directory named mips. Vhdlan *.vhd files then use "vhdldbx -i SPIM.scr SPIM" to run simulation. MIPS.cs is a synthesis batch file.
MIPSWVP.ZIP - For Viewlogic's older Powerview, Workview, and Workview Plus Tool. Does not use IEEE Std Logic 1164. Viewlogic specific function calls are used for adders and FFs. Click here for instructions or read the TOP_SPIM.doc file in the zip file for details on running the tools.
For other CAD Tools that support VHDL IEEE Standard Logic 1164 only minor changes should be needed. Typically this is limited to different library and use statements at the beginning of each module. To port to another system, start with the *.VHD files from MIPSWVO.ZIP and check your CAD tool documentation to see which libraries your VHDL compiler requires.