Guest
#4103318
I have this code:
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
It gives me this error: "Procedural assignment to a non-register nr_black is not permitted, left-hand side should be reg/integer/time/genvar" on line 46 line 46 is this one: nr_black = nr_black + 4'b0001. How can i fix this program? My nr_black is the output on 4 bits, and whenever nr is higher or equal than 2, i want to increment nr_black with 1. How do i do that? TY