wtr
Full Member level 5

HELLO ALL,
I've been able to mitigate an error I received when assigning an inout port.
I would like to know "WHY" my new code works, and why the old code is at fault.
Old Code
ERROR = (vcom-1454) Formal "D" of mode INOUT cannot be associated with an expression.
additional info - port C can be in or out & there is no issue with "pin_3 & pin_4" signal assignment expression.
Whereas new code gives no error
Regards,
Wes
I've been able to mitigate an error I received when assigning an inout port.
I would like to know "WHY" my new code works, and why the old code is at fault.
Old Code
Code:
UUT : COMPONENT
PORT MAP( A => PIN_1,
B => PIN_2,
C => PIN_3 & PIN_4,
D => PIN_10 & PIN_61 & PIN_11 & PIN_62 & PIN_12 & PIN_13 & PIN_64 & PIN_14 &
PIN_65 & PIN_15 & PIN_66 & PIN_16 & PIN_67 & PIN_17 & PIN_68 & PIN_18
);
additional info - port C can be in or out & there is no issue with "pin_3 & pin_4" signal assignment expression.
Whereas new code gives no error
Code:
UUT : COMPONENT
PORT MAP( A => PIN_1,
B => PIN_2,
C => PIN_3 & PIN_4,
D => PIN_D
);
PIN_D <= PIN_10 & PIN_61 & PIN_11 & PIN_62 & PIN_12 & PIN_13 & PIN_64 & PIN_14 &
PIN_65 & PIN_15 & PIN_66 & PIN_16 & PIN_67 & PIN_17 & PIN_68 & PIN_18;
PIN_10 <= PIN_D(15);
PIN_61 <= PIN_D(14);
...
PIN_18 <= PIN_D(0);
Regards,
Wes