4. How to
4.1. How to simulate
The following is an example of simulating an end-to-end test, using the interface test.
- Generate the simulation project:
Navigate to the hardware directory:
cd ./hwRun:
make sim_interfaceThe output
mem.txtfile will be available immediately for review athw/out/sim_interface/sim_interface.sim/sim_1/behav/xsim/mem.txt.
- For further signal analysis in Vivado:
Open the project in Vivado:
vivado hw/out/sim_interface/sim_interface.xprTo regenerate the text file, use:
python sim/sim_interface.py --path out/sim_interface/sim_interface.sim/sim_1/behav/xsim/mem.txtOptionally, load a corresponding wave configuration file into the waveform viewer in Vivado. For this test, use
wavefile/INTERFACE_TB.wcfg.Start the simulation and analyze the signals.
4.2. How to generate hardware
Generating hardware involves 2 steps
- Check hardware files:
Look into the
./vivado.tclfileEnsure all desired vhdl files are referenced in the
src_fileslist
- Run the make process:
Navigate to the hardware directory:
cd ./hwRun
make thanna_ip_coreto generate the ip_coreRun
make systemto generate the environment around the ip_coreRun
make update_systemto synthesize and implement allNow in the
./out/systemfolder the vivado project can be opened
or the xsa bitstream file taken to launch it via thannOs