aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorT. Meissner <programming@goodcleanfun.de>2019-10-06 20:12:26 +0200
committertgingold <tgingold@users.noreply.github.com>2019-10-06 20:12:26 +0200
commitbf8b41da7f0650d93b79447a2a62313b15afc9af (patch)
treea407fa476537307d2af7c11cf5f5eaf1df4e11b1 /src
parent14b5cbdad8da4e0957f02dd94e3ff94d49772f18 (diff)
downloadghdl-yosys-plugin-bf8b41da7f0650d93b79447a2a62313b15afc9af.tar.gz
ghdl-yosys-plugin-bf8b41da7f0650d93b79447a2a62313b15afc9af.tar.bz2
ghdl-yosys-plugin-bf8b41da7f0650d93b79447a2a62313b15afc9af.zip
Handle Id_Asr (#55)
Diffstat (limited to 'src')
-rw-r--r--src/ghdl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ghdl.cc b/src/ghdl.cc
index e44fa78..58c738e 100644
--- a/src/ghdl.cc
+++ b/src/ghdl.cc
@@ -299,6 +299,7 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m)
case Id_Red_And:
case Id_Lsr:
case Id_Lsl:
+ case Id_Asr:
case Id_Assert: // No output
case Id_Assume: // No output
case Id_Cover: // No output
@@ -432,6 +433,9 @@ static void import_module(RTLIL::Design *design, GhdlSynth::Module m)
case Id_Lsr:
module->addShr(to_str(iname), IN(0), IN(1), OUT(0));
break;
+ case Id_Asr:
+ module->addSshr(to_str(iname), IN(0), IN(1), OUT(0), true);
+ break;
case Id_Mux2:
module->addMux(to_str(iname), IN(1), IN(2), IN(0), OUT(0));
break;