Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I find what number is 12h06f?

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading