aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorazidar2015-08-18 16:33:17 -0700
committerazidar2015-08-18 16:33:17 -0700
commit9964b8ff88e905f500c512ff2448f3f360d60d47 (patch)
tree82822981f6ddeb14dc6ff79180670092ffc755b3 /src
parenta27cc1bd15fe8b821ce8d9246d86e30a3ed57793 (diff)
Fixed verilog emission from rand to random
Diffstat (limited to 'src')
-rw-r--r--src/main/stanza/verilog.stanza2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/stanza/verilog.stanza b/src/main/stanza/verilog.stanza
index 9d1cd536..d4b360f0 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 = "$rand" ;"0"
+ val rand-value = "$random" ;"0"
defn rand-string (w:Long) -> String : string-join(["{" ((w + to-long(31)) / to-long(32)) "{" rand-value "}};"])
for x in vdecs do :