Hallo zusammen, habe seit einer std die fehlermeldungen: ERROR:HDLCompiler:806 Line 48: Syntax error near "=". ERROR:HDLCompiler:9 Line 46: Found 0 definitions for operator "=". ERROR:HDLCompiler:854 Line 41: Unit <behavior> ignored due to previous errors. ich weiss nicht mehr wirklich weiter... hilfe ?:/ danke schonmal
1 | entity mehrBitAdder is |
2 | Port ( a : in unsigned (31 downto 0); |
3 | b : in unsigned (31 downto 0); |
4 | cout : out unsigned (31 downto 0); |
5 | controlBit : in STD_LOGIC); |
6 | end mehrBitAdder; |
7 | |
8 | architecture behavior of mehrBitAdder is |
9 | |
10 | begin
|
11 | process(controlBit) |
12 | begin
|
13 | if controlBit ="0" then |
14 | cout <= a+b; |
15 | else controlBit ="1" then |
16 | cout <= a-b; |
17 | end if; |
18 | end process; |
19 | end behavior; |