From d55a3a073ac731ec9ec87ee39a2ce8d4191afcd9 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 11 Aug 2008 13:53:42 +0100 Subject: [PATCH] Handle '?' in vl_to_vhdl_bit The rough translation is '-', although the semantics are incompatible in some cases (e.g. '-' = '1' is false) --- tgt-vhdl/vhdl_helper.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tgt-vhdl/vhdl_helper.hh b/tgt-vhdl/vhdl_helper.hh index d003ff1ef..a9c4b7717 100644 --- a/tgt-vhdl/vhdl_helper.hh +++ b/tgt-vhdl/vhdl_helper.hh @@ -69,6 +69,8 @@ static inline char vl_to_vhdl_bit(char bit) case 'x': case 'X': return 'U'; + case '?': + return '-'; } assert(false); }