We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 821e0f0 commit 2ee1b54Copy full SHA for 2ee1b54
examples/Life.scala
@@ -28,7 +28,7 @@ class Life(val n: Int) extends Module {
28
val state = Vec(Bool(OUTPUT), tot)
29
}
30
def idx(i: Int, j: Int) = ((j+n)%n)*n+((i+n)%n)
31
- val rnd = new Random()
+ val rnd = new Random(1)
32
val cells = Range(0, tot).map(i => Module(new Cell(rnd.nextInt(2) == 1)))
33
for (k <- 0 until tot)
34
io.state(k) := cells(k).io.out
0 commit comments