Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Makefile
randomstability1.sv
randomstability2.sv
randomstability3.sv
randomstability4.sv
readme.md
run_questa.sh
run_vcs.sh

readme.md

Article:

SystemVerilog Random Stability

Description:

Commands to run examples

Run instructions:

This code has been run with Synopsys VCS and with Mentor Graphics Questa Sim. General format

./run_vcs.sh randomstability1.sv +define+<example_number> +SEED=<seed>
./run_questa.sh randomstability1.sv +define+<example_number> +SEED=<seed>

For example:

./run_vcs.sh randomstability1.sv +define+EX_1_1 +SEED=20
./run_questa.sh randomstability1.sv +define+EX_1_1 +SEED=20

Commands to run example 1:

./run_vcs.sh randomstability1.sv

Commands to run example 2:

./run_vcs.sh randomstability2.sv +define+EX_2 +define+EX_2_1
./run_vcs.sh randomstability2.sv +define+EX_2 +define+EX_2_2
./run_vcs.sh randomstability2.sv +define+EX_2 +define+EX_2_3

Example 2.4 is not shown in the article. In this example, we see an object newed within the thread. So, by hierarchical seeding rules .. you'll see that the first random number generated by the thread is used to initialize p_ths internal RNG.

./run_vcs.sh randomstability2.sv +define+EX_2 +define+EX_2_3

Commands to run example 3:

./run_vcs.sh randomstability3.sv +define+EX_3 +define+EX_3_1
./run_vcs.sh randomstability3.sv +define+EX_3 +define+EX_3_2
You can’t perform that action at this time.