Skip to content

Commit 385c954

Browse files
committed
from_verilog is updated: str-to-value/width/base conversion is delegated to vtypes.Int
1 parent c98c09e commit 385c954

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

veriloggen/from_verilog.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from __future__ import print_function
33
import sys
44
import os
5-
import re
65
import collections
76
import tempfile
87

@@ -166,10 +165,7 @@ def visit_Identifier(self, node):
166165
return self.m.find_identifier(node.name)
167166

168167
def visit_IntConst(self, node):
169-
value, base = vtypes.str_to_value(node.value)
170-
width = vtypes.str_to_width(node.value)
171-
signed = vtypes.str_to_signed(node.value)
172-
return vtypes.Int(value, width, base, signed)
168+
return vtypes.Int(node.value)
173169

174170
def visit_FloatConst(self, node):
175171
return vtypes.Float(node.value)

0 commit comments

Comments
 (0)