Skip to content

Instantly share code, notes, and snippets.

@jz5
Created November 17, 2013 08:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
$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