FPGA_GenericIP/generic_ip/common/0/sim/top_comp.do

47 lines
2.1 KiB
Text

# Load the Altera generated macros
do msim_setup.tcl
# Compile the technology specific libraries
dev_com
# Compile the constrained random related packages
vlib OSVVM
vcom -work OSVVM \
../../../../../../../../../Common/src/test/OSVVM/RandomBasePkg.vhd \
../../../../../../../../../Common/src/test/OSVVM/SortListPkg_int.vhd \
../../../../../../../../../Common/src/test/OSVVM/RandomPkg.vhd \
../../../../../../../../../Common/src/test/OSVVM/NamePkg.vhd \
../../../../../../../../../Common/src/test/OSVVM/MessagePkg.vhd \
../../../../../../../../../Common/src/test/OSVVM/CoveragePkg.vhd
# Compile the design files
com
# Compile the VHDL packages that support bus protocols, memory mapped registers and functional procedures
vcom -work work ../../../../../common/src/test/avalon_verify_pkg.vhd
vcom -work work ../../../../../common/src/test/hib_verify_pkg.vhd
vcom -work work ../../../../../common/src/test/func_verify_pkg.vhd
vcom -work work ../../../../../common/src/test/coverage_verify_pkg.vhd
# Compile the various printhead and circuit models
vcom -work work ../../../../../lvds_slave/src/test/pmb_model.vhd
vcom -work work ../../../../../print_data/src/test/data_model.vhd
vcom -work work ../../../../../waveform_control/src/test/pzt_model.vhd
vcom -work work ../../../../../waveform_control/src/test/waveform_circuit.vhd
vcom -work work ../../../../../printhead/src/test/side_model.vhd
vcom -work work ../../../../../printhead/src/test/head_model.vhd
vcom -work work ../../../../../top/src/hib_fd_1200.vhd
# compile and link C source files
scgenmod top_system > ../../../../../top/src/test/top_system.h
scgenmod hib_fd_1200 > ../../../../../top/src/test/hib_fd_1200.h
sccom -g ../../../../../top/src/test/PrintheadMessage.cpp
sccom -g ../../../../../top/src/test/PrintheadMessageReceive.cpp
sccom -g ../../../../../top/src/test/PrintheadMessageSend.cpp
#sccom -g ../../../../../top/src/test/PrintheadExtenderBase.cpp
#sccom -g ../../../../../top/src/test/PrintheadEx.cpp
sccom -scv -g ../../../../../top/src/test/top_system_tb.cpp
sccom -scv -link
# Exit Modelsim once this is complete
quit -f