Add your own simulation¶
Step 1: Define your design¶
Define your design by following the steps in section Add your own design
Step 2: Simulation folder¶
Create a folder named after your simulation in the odatix_userconfig/simulations folder.
Step 3: Makefile¶
Add a
Makefilefile to your newly created folder.Add a rule named
simthan runs the simulation. Any simulator installed on your system can be used.
Tip
Check out the examples for Verilator and GHDL Makefiles in the odatix_userconfig/simulations from the quick start guide.
Step 4: Optional setting file¶
Add a
_settings.ymlfile to your newly created folder and fill it with one of the templates below
1---
2# delimiters for parameter files
3use_parameters: "true"
4param_target_file: "tb/tb_counter.vhdl"
5start_delimiter: "generic ("
6stop_delimiter: ");"
7...
If you want the tool to edit the parameters for each configuration in a different file than the one specified in your architecture’s
_settings.yml(like a testbench for example) setuse_parameterstotrueand edit the other keys. Otherwise, set it tofalse.Edit the
param_target_file, so it matches your design/simulation top top-level.Set
start_delimiterandstop_delimiter, so it matches the delimiters of the parameter section inparam_target_file.A documentation of the keys for
_settings.ymlfiles can be found in section Settings
Note
If your testbench does not need to have its parameters modified for each configuration (as could a c++ verilator testbench for example), a _settings.yml is not mandatory
Step 5: Run your design configurations!¶
- Follow the same steps as in section Simulations from the quick start guide:
Edit
odatix_userconfig/simulations_settings.ymlto add your simulations, linked to the corresponding design configurationsRun the selected simulations