Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation of compile and simulation via Makefile #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.swp
*.pyc
*.out
modelsim.ini
427 changes: 17 additions & 410 deletions sim/Makefile

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions sim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Steps to add sim testbench to MiMi Project:

**Needed Files and Directories:**

* ```program/*.mif```
* ```testbench/```
* ```compile.do```
* ```core.do```
* ```level1.do```
* ```level1_tb.vhd```
* ```Makefile```
* ```txt_util.vhd```
* ```util.do```

1. Try ```make compile``` (If this works go straight to step 2, If not do Substeps)
1. If it does not compile alter ```sim/compile.do``` to match your project files
2. Try ```make clean``` then go to Step 1
2. Use ```make level1``` to start the test and run it! :)

*The Output gets written to ```report.txt``` and only the summary is shown in the Terminal.*
45 changes: 45 additions & 0 deletions sim/compile.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
vlib work
vmap work work

vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/core_pack.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/op_pack.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/ctrl.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/regfile.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/decode.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/ram/src/dp_ram_1c1r1w.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/ram/src/dp_ram_1c1r1w_beh.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/alu.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/exec.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/imem_altera.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/fetch.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/math/src/math_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/ram/src/ram_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/ram/src/fifo_1c1r1w.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/ram/src/fifo_1c1r1w_mixed.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/fwd.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/jmpu.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/memu.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/mem.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/pll_altera.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/ocram_altera.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/wb.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/pipeline.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/synchronizer/src/sync_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/synchronizer/src/sync.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/synchronizer/src/sync_beh.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_receiver_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_receiver.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_receiver_beh.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_transmitter_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_transmitter.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_transmitter_beh.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_beh.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/testbench_util/src/testbench_util_pkg.vhd
vcom -reportprogress 300 -work work -2002 -explicit ../src/serial_port/src/serial_port_testbench.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/serial_port_wrapper.vhd
vcom -reportprogress 300 -work work -2002 -explicit txt_util.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/core.vhd
vcom -reportprogress 300 -work work -2008 -explicit -check_synthesis -O0 -check_synthesis ../src/mimi.vhd
vcom -reportprogress 300 -work work -2002 -explicit level1_tb.vhd
File renamed without changes.
49 changes: 0 additions & 49 deletions sim/testrunner.do

This file was deleted.

Loading