Assign values to signal
Posted: Sun Jul 29, 2018 11:49 am
Hello everyone,
I have a small problem to submit to you :
I have a blue signal wich takes values through a loop (101, next tick 102, next tick 105 and so on)
I have a predetermined signal set (let's say signal 0 to 9) which all are equal to 1.
My goal is to assign each different value of the blue signal to a signal of the set.
Basically :
blue == 101
if ('0' == 1) '0'=101
else if ('1' == 1) '1'=101
...
Same thing for blue==102, 103, etc.... It is not possible to make any condition on a specific value of the blue signal as the value can be anything from 101 to 999.
Any idea ?
I have a small problem to submit to you :
I have a blue signal wich takes values through a loop (101, next tick 102, next tick 105 and so on)
I have a predetermined signal set (let's say signal 0 to 9) which all are equal to 1.
My goal is to assign each different value of the blue signal to a signal of the set.
Basically :
blue == 101
if ('0' == 1) '0'=101
else if ('1' == 1) '1'=101
...
Same thing for blue==102, 103, etc.... It is not possible to make any condition on a specific value of the blue signal as the value can be anything from 101 to 999.
Any idea ?