aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-02-04 14:14:26 +0100
committerClifford Wolf <clifford@clifford.at>2017-02-04 14:14:26 +0100
commit3928482a3c4fb71b8e6ccdcb362c030eef34a479 (patch)
tree482ea8a72c3bae5bafc377136d10426898cb8ac5 /frontends/ast/genrtlil.cc
parent911c44d164e04026bd3a3a2eb1bf0c5d9cca5c19 (diff)
downloadyosys-3928482a3c4fb71b8e6ccdcb362c030eef34a479.tar.gz
yosys-3928482a3c4fb71b8e6ccdcb362c030eef34a479.tar.bz2
yosys-3928482a3c4fb71b8e6ccdcb362c030eef34a479.zip
Add $cover cell type and SVA cover() support
Diffstat (limited to 'frontends/ast/genrtlil.cc')
-rw-r--r--frontends/ast/genrtlil.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index db8d7409f..bdac4de00 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -1336,9 +1336,11 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
// generate $assert cells
case AST_ASSERT:
case AST_ASSUME:
+ case AST_COVER:
{
const char *celltype = "$assert";
if (type == AST_ASSUME) celltype = "$assume";
+ if (type == AST_COVER) celltype = "$cover";
log_assert(children.size() == 2);