R
Robert Willy
Guest
Hi,
I am learning verilog and find an online discussion interesting:
https://stackoverflow.com/questions/5927615/what-is-the-difference-between-and-in-verilog
First of all, I find 8'bx is an interesting thing:
if (dataoutput[7:0] == 8'bx) begin
Is it an abbreviation of 8'bxxxxxxxx?
Then, it gave:
dataoutput = 52'bx
According to verilog grammar, it means 52-bit, value 'x'.
I don't think the OP meant that. Did he mean a value '52'?
Or, he meant anything else?
BTW, I simulate the above code in ModelSim, but it doesn't make me clear yet.
Thanks,
I am learning verilog and find an online discussion interesting:
https://stackoverflow.com/questions/5927615/what-is-the-difference-between-and-in-verilog
First of all, I find 8'bx is an interesting thing:
if (dataoutput[7:0] == 8'bx) begin
Is it an abbreviation of 8'bxxxxxxxx?
Then, it gave:
dataoutput = 52'bx
According to verilog grammar, it means 52-bit, value 'x'.
I don't think the OP meant that. Did he mean a value '52'?
Or, he meant anything else?
BTW, I simulate the above code in ModelSim, but it doesn't make me clear yet.
Thanks,