prakhars
Junior Member level 3
- Joined
- Oct 5, 2012
- Messages
- 26
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,497
I want to assign out an incremented value of integer x at every 100 unit of time. but getting three errors at line #5,... "unexpected token: '='", "unexpected token: '+'" and "expecting 'endmodule', found '1'"
1) module model(out);
2) output reg [2:0]out;
3) integer x;
4) initial x=0;
5) x=x+1;
6) #10;
7) assign out=x;
8) endmodule
1) module model(out);
2) output reg [2:0]out;
3) integer x;
4) initial x=0;
5) x=x+1;
6) #10;
7) assign out=x;
8) endmodule