J
Julian
Guest
Sorry if this question is too newbie, but I dont't know how to actually do
this. I need to have a two input multiplexer.
For a one input multiplexer I know I can do:
assign my_signal = (when_this_is_true) ? (assign_this_value) :
(if_not_true_this_is_assigned);
But in pseudo code I would like to write:
if one thing is true assign A to my_signal, or if another thing is true
assign B to my_signal else assign C to my_signal. Could I do this with the
simple assign statement?
Or do I have to write a "regular" if-statement?
P.S. The code needs to be syntheziable!
Best Regards
Julian
this. I need to have a two input multiplexer.
For a one input multiplexer I know I can do:
assign my_signal = (when_this_is_true) ? (assign_this_value) :
(if_not_true_this_is_assigned);
But in pseudo code I would like to write:
if one thing is true assign A to my_signal, or if another thing is true
assign B to my_signal else assign C to my_signal. Could I do this with the
simple assign statement?
Or do I have to write a "regular" if-statement?
P.S. The code needs to be syntheziable!
Best Regards
Julian