forkconfig
Member level 1
- Joined
- Jan 28, 2013
- Messages
- 32
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,655
Using Verilog...
Let's say I have a 1000 bit bus.
I want to check that the MSB (2^1000) is high and everything else is low (or any bit for that matter).
I don't want to sit there and go 1000000000000000000... or 0x8000000000000000000...
If it was the LSB I could just say if bus == 1, but I don't want to say if bus == 2^1000 because that's sort of a big number.
Is there a way to use a wild card or something in Verilog?
Let's say I have a 1000 bit bus.
I want to check that the MSB (2^1000) is high and everything else is low (or any bit for that matter).
I don't want to sit there and go 1000000000000000000... or 0x8000000000000000000...
If it was the LSB I could just say if bus == 1, but I don't want to say if bus == 2^1000 because that's sort of a big number.
Is there a way to use a wild card or something in Verilog?