From 3a0e7ec94e8b144ef32dfb2b34cec189999f6700 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Thu, 1 Aug 2019 19:10:02 +0200 Subject: add subtract (#30) --- ghdl/ghdl.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ghdl') diff --git a/ghdl/ghdl.cc b/ghdl/ghdl.cc index 6926cfd..0fc1d0a 100644 --- a/ghdl/ghdl.cc +++ b/ghdl/ghdl.cc @@ -260,6 +260,7 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m) case Id_Nor: case Id_Xnor: case Id_Add: + case Id_Sub: case Id_Mux2: case Id_Mux4: case Id_Dff: @@ -357,6 +358,9 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m) case Id_Add: module->addAdd(to_str(iname), IN(0), IN(1), OUT(0)); break; + case Id_Sub: + module->addSub(to_str(iname), IN(0), IN(1), OUT(0)); + break; case Id_Not: module->addNot(to_str(iname), IN(0), OUT(0)); break; -- cgit v1.2.3