projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b7232
)
Only allow posedge/negedge with 1 bit wide signals
author
Clifford Wolf
<clifford@clifford.at>
Wed, 10 Aug 2016 17:32:11 +0000
(19:32 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 10 Aug 2016 17:32:11 +0000
(19:32 +0200)
frontends/ast/genrtlil.cc
patch
|
blob
|
history
diff --git
a/frontends/ast/genrtlil.cc
b/frontends/ast/genrtlil.cc
index 04cdb9416cc3e5e3708e6459f4dd2c78cfffd37f..bee2256e3a3712281bf7ad810d3cc3b0fbba8c70 100644
(file)
--- a/
frontends/ast/genrtlil.cc
+++ b/
frontends/ast/genrtlil.cc
@@
-241,6
+241,8
@@
struct AST_INTERNAL::ProcessGenerator
RTLIL::SyncRule *syncrule = new RTLIL::SyncRule;
syncrule->type = child->type == AST_POSEDGE ? RTLIL::STp : RTLIL::STn;
syncrule->signal = child->children[0]->genRTLIL();
+ if (GetSize(syncrule->signal) != 1)
+ log_error("Found posedge/negedge event on a signal that is not 1 bit wide at %s:%d!\n", always->filename.c_str(), always->linenum);
addChunkActions(syncrule->actions, subst_lvalue_from, subst_lvalue_to, true);
proc->syncs.push_back(syncrule);
}