EmbDev.net

Forum: FPGA, VHDL & Verilog Representation of numbers in verilog


von Ee Liang K. (Company: Unimas) (newbie87)


Rate this post
useful
not useful
Hi there,

I need explanation of why 8'hz3 = 8'bzzzz0011.
Thanks in advance.

von Marcus H. (mharnisch)


Rate this post
useful
not useful
8'hz3 is a sized hex literal where the lower nibble represents the 
binary value 0011 and the upper nibble is zzzz.

--
Marcus

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.