Skip to content

Commit

Permalink
Merge fd8c34e into 8cf9c33
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed May 2, 2019
2 parents 8cf9c33 + fd8c34e commit f2d5c01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fault/value_utils.py
Expand Up @@ -4,7 +4,7 @@
from fault.value import AnyValue, UnknownValue
from fault.array import Array
from fault.select_path import SelectPath
from enum import Enum
from hwtypes.adt import Enum


def make_value(port, value):
Expand Down Expand Up @@ -57,7 +57,6 @@ def make_bit_vector(N, value):
if value is AnyValue or value is UnknownValue:
return value
if isinstance(value, Enum):
N = type(value).bit_length()
return BitVector[N](value.value)
raise NotImplementedError(N, value, type(value))

Expand Down

0 comments on commit f2d5c01

Please sign in to comment.