From 92718e4b619fb9a952bf93a05c14b2a3dffe847c Mon Sep 17 00:00:00 2001 From: Colin Schmidt Date: Wed, 7 Sep 2016 11:04:36 -0700 Subject: [PATCH] fix null statement in vsli_mem_gen ala firrtl#264 (#252) --- vsim/vlsi_mem_gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsim/vlsi_mem_gen b/vsim/vlsi_mem_gen index 37829498..b1e3da75 100755 --- a/vsim/vlsi_mem_gen +++ b/vsim/vlsi_mem_gen @@ -120,7 +120,7 @@ def gen_mem(name, width, depth, mask_gran, mask_seg, ports): decl.append('`ifdef RANDOMIZE') decl.append(' integer initvar;') decl.append(' initial begin') - decl.append(' #0.002;') + decl.append(' #0.002 begin end') decl.append(' for (initvar = 0; initvar < %d; initvar = initvar+1)' % depth) decl.append(' ram[initvar] = {%d {$random}};' % ((width-1)/32+1)) for idx in range(nr):