diff options
Diffstat (limited to 'hw_v5_fx30t_extension/simulation')
-rw-r--r-- | hw_v5_fx30t_extension/simulation/Makefile | 46 | ||||
-rw-r--r-- | hw_v5_fx30t_extension/simulation/run.do | 65 | ||||
-rw-r--r-- | hw_v5_fx30t_extension/simulation/vhdl_files.txt | 1 |
3 files changed, 0 insertions, 112 deletions
diff --git a/hw_v5_fx30t_extension/simulation/Makefile b/hw_v5_fx30t_extension/simulation/Makefile deleted file mode 100644 index e1185a8..0000000 --- a/hw_v5_fx30t_extension/simulation/Makefile +++ /dev/null @@ -1,46 +0,0 @@ -# -# $HeadURL: https://svn.fzd.de/repo/concast/FWF_Projects/FWKE/beam_position_monitor/hardware/board_sp605/simulation/Makefile $ -# $Date$ -# $Author$ -# $Revision$ -# - -library = work -top = top - -library_list = $(shell cut --field 1 --delimiter=" " --only-delimited vhdl_files.txt | grep --invert "\#" | sort --unique) - -# http://sourceforge.net/projects/vmk/ -VMK = vmk - -all: compile simulate - - -compile: Makefile.msim - export ANAFLAGS="-quiet -2008"; \ - make -f Makefile.msim | ccze -A - - -simulate: - export top=$(top); \ - vsim -quiet -gui $(library).$(top) -do run.do -nowlfmcl -l transcript.log - - -clean: - rm -f transcript - rm -f *.wlf - rm -f wlf* - @# - -make -f Makefile.msim clean - rm -f Makefile.msim - rm -f .stamp - rm -rf $(library_list) - - -# generate Makefile.msim with vmk -Makefile.msim: vhdl_files.txt $(library_list) - $(VMK) -t modelsim -O -w $(library) -F vhdl_files.txt - -$(library_list): - vlib $@ - diff --git a/hw_v5_fx30t_extension/simulation/run.do b/hw_v5_fx30t_extension/simulation/run.do deleted file mode 100644 index 339fac7..0000000 --- a/hw_v5_fx30t_extension/simulation/run.do +++ /dev/null @@ -1,65 +0,0 @@ - -# -# helper functions -# - -# restart + run -proc r {} { - restart -f - set sim_start [clock seconds] - - run -all - - puts "# simulation run time: [clock format [expr [clock seconds] - $sim_start] -gmt 1 -format %H:%M:%S] " -} - - -# restart with clear -proc rc {} { - .main clear - r -} - -# print varables -proc my_debug {} { - global env - foreach key [array names env] { - puts "$key=$env($key)" - } -} - - -# fast exit -proc e {} { - exit -force -} - -# fast exit -proc x {} { - exit -force -} - - -# get env variables -global env -quietly set top $env(top) - - -if {[file exists wave.do]} { - do wave.do -} else { - if {[file exists wave_$top.do]} { - do wave_$top.do - } else { - puts "INFO: no wave file (wave_$top.do) found" - } - puts "INFO: no wave file (wave.do) found" -} - - - -set sim_start [clock seconds] - -run -all - -puts "# simulation run time: [clock format [expr [clock seconds] - $sim_start] -gmt 1 -format %H:%M:%S] " diff --git a/hw_v5_fx30t_extension/simulation/vhdl_files.txt b/hw_v5_fx30t_extension/simulation/vhdl_files.txt deleted file mode 100644 index a994fc5..0000000 --- a/hw_v5_fx30t_extension/simulation/vhdl_files.txt +++ /dev/null @@ -1 +0,0 @@ -work ../rtl/top.vhd
|