1 |
198 |
zero_gravi |
puts {NEO430 Modelsim Simulation Script}
|
2 |
|
|
|
3 |
|
|
-- set up sources --
|
4 |
|
|
set sim_src ".."
|
5 |
|
|
set rtl_src "../../rtl/core"
|
6 |
|
|
|
7 |
|
|
quit -sim
|
8 |
|
|
|
9 |
|
|
-- compile sources --
|
10 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_package.vhd
|
11 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_addr_gen.vhd
|
12 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_alu.vhd
|
13 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_application_image.vhd
|
14 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_bootloader_image.vhd
|
15 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_boot_rom.vhd
|
16 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_cfu.vhd
|
17 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_control.vhd
|
18 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_cpu.vhd
|
19 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_crc.vhd
|
20 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_dmem.vhd
|
21 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_gpio.vhd
|
22 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_imem.vhd
|
23 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_muldiv.vhd
|
24 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_pwm.vhd
|
25 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_reg_file.vhd
|
26 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_sysconfig.vhd
|
27 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_timer.vhd
|
28 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_uart.vhd
|
29 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_spi.vhd
|
30 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_wb_interface.vhd
|
31 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_wdt.vhd
|
32 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_twi.vhd
|
33 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${rtl_src}/neo430_top.vhd
|
34 |
|
|
vcom -work neo430 -2002 -explicit -nocasestaticerror ${sim_src}/neo430_tb.vhd
|
35 |
|
|
|
36 |
|
|
-- start simulation --
|
37 |
|
|
vsim -t 1ps neo430.neo430_tb
|
38 |
|
|
|
39 |
|
|
-- waveform configuration --
|
40 |
|
|
do ${sim_src}/modelsim/wave.do
|
41 |
|
|
|
42 |
|
|
-- run --
|
43 |
|
|
run 200 us
|
44 |
|
|
|