Skip to content

Commit 8189b8d

Browse files
committed
README.rst is updated
1 parent f51cb30 commit 8189b8d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ Python as below. A blinking LED hardware is modeled in Python.
8282
count = m.Reg('count', 32)
8383
8484
m.Always(Posedge(clk),
85-
[ If(rst,
86-
[ count.set(0) ],
87-
[ count.set(count + 1) ])])
85+
( If(rst,
86+
( count.set(0), ),
87+
( count.set(count + 1), )), ))
8888
8989
m.Always(Posedge(clk),
90-
[ If(rst,
91-
[ led.set(0) ],
92-
[ If(count == 1024 - 1,
93-
[ led.set(led + 1) ])])])
90+
( If(rst,
91+
( led.set(0), ),
92+
( If(count == 1024 - 1,
93+
( led.set(led + 1), )))), ))
9494
9595
return m
9696

0 commit comments

Comments
 (0)