vcom -93 ../DspFpga/src/DspFpgaPkg.vhd
#vcom -93 ../DspFpga/src/RamArbitrate.vhd

vcom -93 ../DspFpga/src/CalControl.vhd
vcom -93 ../DspFpga/src/ClkRst.vhd
vcom -93 ../DspFpga/src/Ddr2State.vhd
vcom -93 ../DspFpga/src/Ddr2IO.vhd
vcom -93 ../DspFpga/src/Ddr2DataPath.vhd
vcom -93 ../DspFpga/src/DqsDelay.vhd
vcom -93 ../DspFpga/src/TapDelay.vhd
vcom -93 ../DspFpga/src/GrayCounter4Bit.vhd
vcom -93 ../DspFpga/src/SDRAMrefresh.vhd
vcom -93 ../DspFpga/src/SDRAMIf.vhd

# Build 1GByte SODIMM RAM model
vlog +define+sg5 +define+x8 +incdir+../Models/DDR2_DIMM ../Models/DDR2_DIMM/ddr2.v
vlog +incdir+../Models/DDR2_DIMM ../Models/DDR2_DIMM/ddr2_sodimm.v
# or for 2GByte SODIMM
#vlog +define+sg5 +define+x8 +define+SODIMM2G +incdir+../Models/DDR2_DIMM ../Models/DDR2_DIMM/ddr2.v
#vlog +define+SODIMM2G +incdir+../Models/DDR2_DIMM ../Models/DDR2_DIMM/ddr2_sodimm.v

vcom -93 ../Testbench/SDRAMIfTb.vhd

vsim -t ps -novopt work.sdramiftb
add log -r /*
