mirror of https://github.com/zachjs/sv2v.git
cover struct width $bits edge case
This commit is contained in:
parent
4cf65dd4e2
commit
9036bbabe4
|
|
@ -114,6 +114,11 @@ convertBits (Left t) =
|
|||
IntegerVector _ _ rs -> dimensionsSize rs
|
||||
Implicit _ rs -> dimensionsSize rs
|
||||
Net _ _ rs -> dimensionsSize rs
|
||||
Struct _ fields rs ->
|
||||
BinOp Mul
|
||||
(dimensionsSize rs)
|
||||
(foldl (BinOp Add) (Number "0") fieldSizes)
|
||||
where fieldSizes = map (DimsFn FnBits . Left . fst) fields
|
||||
UnpackedType t' rs ->
|
||||
BinOp Mul
|
||||
(dimensionsSize rs)
|
||||
|
|
|
|||
Loading…
Reference in New Issue