Steve,
To call a function in a port map, it must be a
conversion function. While technically not
is not a conversion function, if you call it with
the "not"(a) format.
MUL0: MULTI
port map(
x0 => "not"(a(0)),
y0 => "not"(b(0)),
x1 => a(1),
y1 => b(1),
cin => '0',
cout => cout2bitRCA0,
s0 => sout2bitRCA0(0),
s1 => sout2bitRCA0(1)
);
Cheers,
Jim
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Jim Lewis
Director of Training private.php?do=newpm&u=
SynthWorks Design Inc.
http://www.SynthWorks.com
1-503-590-4787
Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Steve Harrad wrote:
> Hello
>
> Why isn't it allowed to use the not Operator in the port mapping?
>
> MUL0: MULTI
> port map(x0 => not(a(0)),y0 => not(b(0)),x1 => a(1),y1 =>b (1),
> ^^^^^^ ^ ^^^^
> cin => '0',cout => cout2bitRCA0,s0 => sout2bitRCA0(0),s1 =>
> sout2bitRCA0(1));
>
> I get this error code:
>
> Actual is not a globally static expression
>
> How can i assign x0 the inserse bit of a(0)
>
> Thanks for your help