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?
 3exit_when_done:   No  # exit monitor when all jobs are done
 4log_size_limit:   300 # size of the log history per job in the monitor
 5nb_jobs:          12  # maximum number of parallel synthesis
 6
 7simulations:
 8   - TB_Example_Counter_Verilator:
 9     - Example_Counter_sv/04bits
10     - Example_Counter_sv/08bits
11     - Example_Counter_sv/16bits
12     - Example_Counter_sv/24bits
13     - Example_Counter_sv/32bits
14     - Example_Counter_sv/48bits
15     - Example_Counter_sv/64bits

Step 3: Run the selected designs

odatix sim

Step 4: Try with your own design

Check out sections Add your own design and Add your own simulation