shaiko
Advanced Member level 5
- Joined
- Aug 20, 2011
- Messages
- 2,644
- Helped
- 303
- Reputation
- 608
- Reaction score
- 297
- Trophy points
- 1,363
- Activity points
- 18,302
Hello,
In my entity there're 3 unconstrained ports.
x in an internal signal to this entity.
I want signal x to have the length of the longest of the above ports.
For example:
If b'length > a'length > c'length
I want x to be automatically defined as:
Can it be done?
In my entity there're 3 unconstrained ports.
Code:
a: in unsigned ;
b: in unsigned ;
c: in unsigned ;
x in an internal signal to this entity.
I want signal x to have the length of the longest of the above ports.
For example:
If b'length > a'length > c'length
I want x to be automatically defined as:
Code:
signal x: unsigned (b ' range )