Skip to content

Commit a787710

Browse files
committed
Adding abort message for VHDL + non default case
1 parent 8855bb3 commit a787710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netlist-to-vhdl/Language/Netlist/GenVHDL.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ expr (ExprUnary op e) = lookupUnary op (expr e)
197197
expr (ExprBinary op a b) = lookupBinary op (expr a) (expr b)
198198
expr (ExprFunCall f args) = text f <> parens (cat $ punctuate comma $ map expr args)
199199
expr (ExprCond c t e) = expr t <+> text "when" <+> expr c <+> text "else" $$ expr e
200-
expr (ExprCase _ [] Nothing) = text "0"
200+
expr (ExprCase _ [] Nothing) = error "VHDL does not support non-defaulted ExprCase"
201201
expr (ExprCase _ [] (Just e)) = expr e
202202
expr (ExprCase e (([],_):alts) def) = expr (ExprCase e alts def)
203203
expr (ExprCase e ((p:ps,alt):alts) def) =

0 commit comments

Comments
 (0)