Guest
I figured out how to model an open-drain pin:
assign y = x ? 1'bZ : 0;
Now I'd like to do the same for a bus:
wire [7:0] x, [7:0] y;
assign y = x ? 1'bZ : 0;
The above clearly isn't going to work. Is this where the `for'
preprocessor statement is used? Is there any operator that looks like a
bus-oriented ?: operator?
Please cc me in your reply. Thanks!
Shaun
assign y = x ? 1'bZ : 0;
Now I'd like to do the same for a bus:
wire [7:0] x, [7:0] y;
assign y = x ? 1'bZ : 0;
The above clearly isn't going to work. Is this where the `for'
preprocessor statement is used? Is there any operator that looks like a
bus-oriented ?: operator?
Please cc me in your reply. Thanks!
Shaun