The example code of document cannot work #922
-
I try but get $ iverilog -o my_design counter_tb.v counter.v
counter.v:1: syntax error
counter.v:1: Errors in port declarations.
counter.v:5: syntax error
counter.v:5: error: Invalid variable list in port declaration.
counter.v:13: syntax error
counter.v:13: Syntax in assignment statement l-value.
counter.v:15: syntax error
counter.v:15: error: Malformed statement |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
"output" is a keyword. Try using "out" for the port name |
Beta Was this translation helpful? Give feedback.
-
It seems the example code was changed (and broken) when it was copied from the Wiki. I've just pushed a fix to the master branch. |
Beta Was this translation helpful? Give feedback.
It seems the example code was changed (and broken) when it was copied from the Wiki. I've just pushed a fix to the master branch.