Simulations¶
Step 1: Initialize a directory¶
Place yourself in an empty directory, for example:
mkdir ~/odatix_example
cd ~/odatix_example
Run the init command of Odatix to create configuration files.
odatix init --examples
Step 2: Choose the designs you want to simulate¶
Uncomment the simulations you want to simulate in odatix_userconfig/simulations_settings.yml.
Those simulations are defined in odatix_userconfig/simulations.
Architectures are defined in odatix_userconfig/architectures.
Change the value of nb_jobs in odatix_userconfig/simulations_settings.yml depending on the number of logical cores available on your CPU.
Tip
75% of your number of logical cores is usually a good balance for nb_jobs.
Example:
odatix_userconfig/simulations_settings.yml¶
1overwrite: No # overwrite existing results?
2ask_continue: Yes # prompt 'continue? (y/n)' after settings checks?
3show_log_if_one: Yes # show synthesis log if there is only one architecture selected?
4nb_jobs: 12 # maximum number of parallel synthesis
5
6simulations:
7 - TB_Example_Counter_Verilator:
8 - Example_Counter_sv/04bits
9 - Example_Counter_sv/08bits
10 - Example_Counter_sv/16bits
11 - Example_Counter_sv/24bits
12 - Example_Counter_sv/32bits
13 - Example_Counter_sv/48bits
14 - Example_Counter_sv/64bits
Step 3: Run the selected designs¶
odatix sim