aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/blif
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-10-16 00:00:27 +0200
committerClifford Wolf <clifford@clifford.at>2019-10-16 00:00:27 +0200
commit935d3e19e2ddc315d06b4a7fe649f06578eeeb81 (patch)
tree1282a4a95190f2ded71bb7df41c20e8dff9af2ac /frontends/blif
parent2daa56859f51631992cc172ccddad55e741b0c3d (diff)
downloadyosys-935d3e19e2ddc315d06b4a7fe649f06578eeeb81.tar.gz
yosys-935d3e19e2ddc315d06b4a7fe649f06578eeeb81.tar.bz2
yosys-935d3e19e2ddc315d06b4a7fe649f06578eeeb81.zip
Add .blackbox support to blif front-end
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends/blif')
-rw-r--r--frontends/blif/blifparse.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc
index d17cacf29..bfcfad78a 100644
--- a/frontends/blif/blifparse.cc
+++ b/frontends/blif/blifparse.cc
@@ -174,6 +174,12 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
if (module == nullptr)
goto error;
+ if (!strcmp(cmd, ".blackbox"))
+ {
+ module->attributes["\\blackbox"] = RTLIL::Const(1);
+ continue;
+ }
+
if (!strcmp(cmd, ".end"))
{
for (auto &wp : wideports_cache)