diff options
| author | Howard Mao | 2016-08-25 14:56:00 -0700 |
|---|---|---|
| committer | Howard Mao | 2016-08-25 14:56:29 -0700 |
| commit | 87ad4220c2eba50fb1ccc854b20021776c6d34de (patch) | |
| tree | 758fa18d652c27f3681b30aba5c5a5362b98130f /src/test | |
| parent | ebd6f893428b16629be8d4d703d553d0fe8cf37c (diff) | |
Finer grained control over randomization
We previously had `ifdef guards on some parts of the emitted verilog to
control whether some registers or nets should be given random initial
values. These guards were all dependent on the RANDOMIZE macro.
However, there were actually three separate cases being controlled
1. Giving random values to disconnected wires
2. Random initialization of registers
3. Random initialization of memories
It is possible that the designer would want to switch these three on or
off independently in simulation. For instance, the latter two are
usually safe because registers and memories will get some definite
binary value at power on in the actual circuit, but the first one can
be quite dangerous because the undriven wire could be metastable.
This change provides separate macros for each of the three sets of
guards so that they can be controlled independently.
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions
