sreevenkjan
Full Member level 5
Hi all,
I am trying to portmap a signal using WHEN command.
for example in the code below
I get the below error during compilation
am I right in using the WHEN command?? How am I supposed to change the code reading that error??
regards,
Sreeni
I am trying to portmap a signal using WHEN command.
for example in the code below
Code:
port map
(
x => '1',
a => (b when (x='0') else c),
y => x"0"
);
I get the below error during compilation
Error (10500): VHDL syntax error at test.vhd(1710) near text "WHEN"; expecting ")", or ","
am I right in using the WHEN command?? How am I supposed to change the code reading that error??
regards,
Sreeni
Last edited: