\$\begingroup\$
\$\endgroup\$
0
I want to assign multiple values to signals as shown in example below. Do I separate values there by ;
or ,
?
Example:
opcode : process (OP)
begin
case OP is
when CALL => AOp <= "000", -- am I separating right?
ALS <= "0",
OE <= "0",
RE <= "0"; -- should the last one be a ;?
....
CALL is a constant
asked Dec 7, 2016 at 19:46
1 Answer 1
\$\begingroup\$
\$\endgroup\$
0
They should all be semicolons:
opcode : process (OP)
begin
case state is
when CALL => AOp <= "000";
ALS <= "0";
OE <= "0";
RE <= "0";
when ....
Each one is a complete assignment statement. Any number of statements can follow a when
clause.
answered Dec 7, 2016 at 19:59
lang-vhdl