Hello everyone,
I was writing some code and had this error while building the code:
assign MySignal = input1 ? 1'b1 : 1'b0;
assign MySignal = input2 ? 1'b1 : 1'b0;
(continuous assignment)
and got the error : Variable(SV: logic/bit) is assigned by multiple continuous statements
I did many searches, and found that multiple assignments for the same variable are not possibles, unless the conditional operator ? is used, as the one in the code above, which means that my code is supposed to work, but I don’t know why it doesn’t.