diff options
| author | azidar | 2015-08-18 15:10:17 -0700 |
|---|---|---|
| committer | azidar | 2015-08-18 15:10:17 -0700 |
| commit | dc80d4f52a76aab8fcf0053b988658dd3857270c (patch) | |
| tree | 6858a792889c149698d81e0611a6fdde4ac21fd9 /src | |
| parent | 934c9953718dea1c12d8517ee5526cdbe5035a5e (diff) | |
Emit random initialization instead of zero initialization for Verilog reg
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/stanza/verilog.stanza | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/stanza/verilog.stanza b/src/main/stanza/verilog.stanza index 2b091e6c..e8c5cb45 100644 --- a/src/main/stanza/verilog.stanza +++ b/src/main/stanza/verilog.stanza @@ -189,7 +189,7 @@ defn emit-module (m:InModule) : val inst-ports = HashTable<Symbol,Vector<Streamable>>(symbol-hash) val sh = get-sym-hash(m) - val rand-value = "0" + val rand-value = "$rand" ;"0" for x in vdecs do : val sym = key(x) |
