From e3036dcd6b0cdc8bf885d943a891d9c68c565934 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 9 Sep 2019 07:27:27 +0200 Subject: Remove Id_Insert (unused). --- src/ghdl.cc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/ghdl.cc b/src/ghdl.cc index 05ef521..421f1b4 100644 --- a/src/ghdl.cc +++ b/src/ghdl.cc @@ -111,21 +111,6 @@ static RTLIL::SigSpec get_src(std::vector &net_map, Net n) RTLIL::SigSpec res = IN(0); return res.extract(get_param_uns32(inst, 0), get_width(n)); } - case Id_Insert: - { - int pos = get_param_uns32(inst, 0); - RTLIL::SigSpec in0 = IN(0); - int size0 = in0.size(); - RTLIL::SigSpec in1 = IN(1); - int size1 = in1.size(); - RTLIL::SigSpec res; - - for (int i = 0; i < size0; i++) { - res.append((i >= pos && i < pos + size1) ? - in1[i - pos] : in0[i]); - } - return res; - } case Id_Concat2: case Id_Concat3: case Id_Concat4: @@ -308,7 +293,6 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m) case Id_Utrunc: case Id_Strunc: case Id_Extract: - case Id_Insert: case Id_Concat2: case Id_Concat3: case Id_Concat4: @@ -478,7 +462,6 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m) case Id_Utrunc: case Id_Strunc: case Id_Extract: - case Id_Insert: case Id_Concat2: case Id_Concat3: case Id_Concat4: -- cgit v1.2.3