pavel47
Member level 4
- Joined
- Nov 8, 2005
- Messages
- 68
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Switzerland
- Activity points
- 1,790
Hello,
I have a problem when synthesizing multiplexer. This multiplexer has no inputs. Depending on control input it should output different constants. Something like this:
The result of synthesis is desastrous: everything is shorted.
Where is a problem ?
Thanks in advance.
Pavel.
P.S. employing always @(S) changes nothing
I have a problem when synthesizing multiplexer. This multiplexer has no inputs. Depending on control input it should output different constants. Something like this:
Code:
module MOD1 (S, OUT);
input S;
output [3:0] OUT;
assign OUT = (S == 1) ? 4'b0101 : 4'b1010;
endmodule
The result of synthesis is desastrous: everything is shorted.
Where is a problem ?
Thanks in advance.
Pavel.
P.S. employing always @(S) changes nothing