-
Notifications
You must be signed in to change notification settings - Fork 515
Description
Is there a way to specify in a test that a given input is 4'b1zzz ?
There's a way to parse Z, and there's a way to parse 0b01010 as a binary number, but the binary number parser used doesn't recognize the verilog style z bits for high-z parts of a multi-bit input signal.
I have a 4 bit tristate input bus, which arrives as a composite signal 4 bits wide, but may be partially high z.
I've tried to find a way to refer to it with a declare statement, but haven't found anything that works or any relevant examples.
There's an example of declaring that Bit is some fragment of Bus, discarding the rest, which seems like it'd be the right sort of thing, but that looks like it is about something on the result side, rather than input? At least based on the errors I get when I try to use it.