-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsim_template
More file actions
8 lines (6 loc) · 823 Bytes
/
sim_template
File metadata and controls
8 lines (6 loc) · 823 Bytes
1
2
3
4
5
6
7
8
vlib work
vcom -2008 -work work ../../source/nn_pkg.vhd ../../source/flatten.vhd ../../source/relu.vhd ../../source/adder_tree.vhd ../../source/neuron.vhd ../../source/block_ram.vhd ../../source/vector_bram.vhd ../../source/ping_pong_buffer.vhd ../../source/data_fetcher.vhd ../../source/data_fetcher.vhd ../../source/data_writer.vhd ../../source/layer.vhd ../../source/padding_interface.vhd ../../source/writing_interface.vhd ../../source/conv_neuron.vhd ../../source/conv_layer.vhd {roms} ../../source/nn_controller.vhd ../../source/treshold.vhd ../../source/thresh_layer.vhd ../../source/network.vhd ../{test_bench}.vhd
exec python3 {test_script}
vsim -voptargs=+acc -G G_DATA_NUMBER={dw} -G G_BIT_WIDTH={bw} -G G_PRECISION={prec} -G G_DATA_FILE=./{dat_file} -t 1ps -lib work work.{test_bench}
do {wave}.do
run 1 sec