Conway works (with sleeps)
[clump.git] / ram.v
diff --git a/ram.v b/ram.v
index 372067543aa9f8de99ede34f79bd53d4962872ac..acd11eeb1613e592e4058f5366cc09d25ccece71 100644 (file)
--- a/ram.v
+++ b/ram.v
@@ -3,6 +3,12 @@ module RAM #(parameter ADDRESS_BITS = 4)
 
     reg [15:0] memory [0:2**ADDRESS_BITS-1];
 
+   reg [ADDRESS_BITS:0] idx;
+   initial begin
+         for(idx = 0; idx < 2**ADDRESS_BITS; idx=idx+1)
+               memory[idx] <= 0;
+   end
+
     always @ (negedge clk) begin
         if (write)
                  memory[addr] <= in;
This page took 0.009831 seconds and 4 git commands to generate.