1 |
198 |
zero_gravi |
#!/bin/bash
|
2 |
|
|
|
3 |
|
|
# Project home foler
|
4 |
|
|
homedir=../..
|
5 |
|
|
|
6 |
|
|
# The directories of the hw source files
|
7 |
|
|
srcdir_core=$homedir/rtl/core
|
8 |
|
|
srcdir_top_templates=$homedir/rtl/top_templates
|
9 |
|
|
srcdir_sim=$homedir/sim
|
10 |
|
|
|
11 |
|
|
# List files
|
12 |
|
|
ls -al $srcdir_core
|
13 |
|
|
ls -al $srcdir_top_templates
|
14 |
|
|
ls -al $srcdir_sim
|
15 |
|
|
|
16 |
|
|
# Analyse sources
|
17 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_package.vhd
|
18 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_application_image.vhd
|
19 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_bootloader_image.vhd
|
20 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_addr_gen.vhd
|
21 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_alu.vhd
|
22 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_boot_rom.vhd
|
23 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_cfu.vhd
|
24 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_control.vhd
|
25 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_cpu.vhd
|
26 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_crc.vhd
|
27 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_dmem.vhd
|
28 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_exirq.vhd
|
29 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_freq_gen.vhd
|
30 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_gpio.vhd
|
31 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_imem.vhd
|
32 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_muldiv.vhd
|
33 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_pwm.vhd
|
34 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_reg_file.vhd
|
35 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_spi.vhd
|
36 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_sysconfig.vhd
|
37 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_timer.vhd
|
38 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_top.vhd
|
39 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_trng.vhd
|
40 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_twi.vhd
|
41 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_uart.vhd
|
42 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_wb_interface.vhd
|
43 |
|
|
ghdl -a --work=neo430 $srcdir_core/neo430_wdt.vhd
|
44 |
|
|
|
45 |
|
|
ghdl -a --work=neo430 $srcdir_top_templates/*.vhd $srcdir_sim/*.vhd
|
46 |
|
|
|
47 |
|
|
# Elaborate top entity
|
48 |
|
|
ghdl -e --work=neo430 neo430_top
|
49 |
|
|
|
50 |
|
|
# Run simulation
|
51 |
|
|
ghdl -e --work=neo430 neo430_tb
|
52 |
|
|
ghdl -r --work=neo430 neo430_tb --stop-time=20ms --ieee-asserts=disable-at-0 --assert-level=error
|