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

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

Rate this post
0 useful
not useful
Hi there,

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

von Marcus H. (mharnisch)

Rate this post
0 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.



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.