From 667e33c2029070b24681b4483c5384eab47cb3a8 Mon Sep 17 00:00:00 2001 From: "T. Meissner" Date: Sat, 5 Oct 2019 07:35:01 +0200 Subject: Handle Const_X & Const_Z (#49) --- src/ghdl.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/ghdl.cc b/src/ghdl.cc index ed19b1a..b027204 100644 --- a/src/ghdl.cc +++ b/src/ghdl.cc @@ -94,6 +94,14 @@ static RTLIL::SigSpec get_src(std::vector &net_map, Net n) } return RTLIL::SigSpec(RTLIL::Const(bits)); } + case Id_Const_Z: + { + return SigSpec(RTLIL::State::Sz, get_width(n)); + } + case Id_Const_X: + { + return SigSpec(RTLIL::State::Sx, get_width(n)); + } case Id_Const_Log: case Id_Const_UL32: { @@ -311,6 +319,8 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m) case Id_Const_UL32: case Id_Const_Bit: case Id_Const_Log: + case Id_Const_Z: + case Id_Const_X: case Id_Uextend: case Id_Utrunc: case Id_Strunc: @@ -485,6 +495,8 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m) case Id_Const_UL32: case Id_Const_Bit: case Id_Const_Log: + case Id_Const_Z: + case Id_Const_X: case Id_Uextend: case Id_Utrunc: case Id_Strunc: -- cgit v1.2.3