Skip to content

Instantly share code, notes, and snippets.

@jz5
Created December 8, 2013 03:03
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/7852881 to your computer and use it in GitHub Desktop.
Save jz5/7852881 to your computer and use it in GitHub Desktop.
convertion
reg [63:0] val;
integer code;
code = $sscanf("FFFF_FFFF_FFFF_FFFF", "%h", val);
$display("%h", val);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment