Right now I have to make an alias to a port bit variable like this:
which I do not like because I have to repeat "@PortG, 3" two times. I would prefer something like this instead:
but compiler does not allow it.
Is there some workaround that I am not aware of?
Code
var
SEL_A[@PortG, 3]: bit;
ComMuxA[@PortG, 3]: bit;
SEL_A[@PortG, 3]: bit;
ComMuxA[@PortG, 3]: bit;
which I do not like because I have to repeat "@PortG, 3" two times. I would prefer something like this instead:
Code
var
SEL_A[@PortG, 3]: bit;
ComMuxA[@SEL_A]: bit;
SEL_A[@PortG, 3]: bit;
ComMuxA[@SEL_A]: bit;
but compiler does not allow it.
Is there some workaround that I am not aware of?