Skip to content

Instantly share code, notes, and snippets.

@jz5
Created November 17, 2013 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jz5/7510806 to your computer and use it in GitHub Desktop.
Save jz5/7510806 to your computer and use it in GitHub Desktop.
$bits sample
reg [7:0] r;
$display($bits(r)); // $bits(r): 8
$display($bits(1 << 8)); // $bits(1 << 8): 32
$display($bits(logic)); // $bits(logic): 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment