Topic: Modelsim simulation

Quick start guide if you are using Modelsim.

in the modelsim.ini file I setup :
work = $HWLIB/work
unisim = $HWLIB/unisim

Define an environmental variable HWLIB. I use


From a command prompt under Windows at least run :


This only needs to be done once. It compiles the Xilinx unisim libs. If you are not using ISE14.7 change the path :
#rem set to your source of the Xilinx UNISIMs library
set XILINXPATH=C:\Xilinx\14.7\ISE_DS\ISE\vhdl\src\unisims\
set XILINXPATH_V=C:\Xilinx\14.7\ISE_DS\ISE\verilog\src\unisims

Run this every time the replay_lib is updated :

Then the core tb :

then you are good to go.....
vsim a_replay_amiga_tb

I have a handy script which adds a restart and rerun button