Skip to content

Commit

Permalink
Prints numbers in hex to get around ODIN_II problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahawkins committed May 17, 2014
1 parent 7a5d753 commit 92df726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) Tom Hawkins 2011 - 2012
Copyright (c) Tom Hawkins 2011 - 2014

All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion Language/Verilog/AST.hs
Expand Up @@ -111,7 +111,7 @@ data Expr
instance Show Expr where
show a = case a of
String a -> printf "\"%s\"" a
Number a -> printf "%d'd%d" (width a) (value a)
Number a -> printf "%d'h%x" (width a) (value a)
ConstBool a -> printf "1'b%s" (if a then "1" else "0")
ExprLHS a -> show a
ExprCall a -> show a
Expand Down

0 comments on commit 92df726

Please sign in to comment.