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
In case an input port to an entity has a constant value, can we use the "if generate" command using on it ?
for exampe:
suppose x is an input to our entity and is defined as type string - will the following synthesize:
surely it would work if x was a generic - but if x is an input port to an entity, is this still considered correct syntax ?
for exampe:
suppose x is an input to our entity and is defined as type string - will the following synthesize:
Code:
if x = "correct_condition" generate
surely it would work if x was a generic - but if x is an input port to an entity, is this still considered correct syntax ?