I’ve found such numbers time and time again in verilog and digital logic exercises, but I don’t know how I’m supposed to know what number this is or how to write it as 12’b in verilog code.
Can someone explain them to me?
>Solution :
Presumably it’s a 12-bit value in hexadecimal notation. Since one hexadecimal digit encodes 4 bits, there are 3 hexadecimal digits: 06f.
In Verilog you can write
12'h06f
or in binary
12'b000001101111
// 0 6 f