mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Don't constant prop public signals
git-svn-id: file://localhost/svn/verilator/trunk/verilator@890 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
@@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
||||
|
||||
**** Try all +libext's in the exact order given. [Michael Shinkarovsky]
|
||||
|
||||
**** Fix elimination of public signals assigned to constants. [Eugene Weber]
|
||||
|
||||
**** Fix internal error when public for loop has empty body. [David Addison]
|
||||
|
||||
* Verilator 3.633 2/7/2007
|
||||
|
||||
+2
-1
@@ -757,7 +757,8 @@ private:
|
||||
nodep->varp()->initp()->iterateAndNext(*this);
|
||||
if (operandConst(nodep->varp()->initp())
|
||||
&& !nodep->lvalue()
|
||||
&& ((v3Global.opt.oConst() && !m_params) // Can reduce constant wires into equations
|
||||
&& ((v3Global.opt.oConst() && !m_params // Can reduce constant wires into equations
|
||||
&& !nodep->varp()->isSigPublic())
|
||||
|| nodep->varp()->isParam())) {
|
||||
AstConst* constp = nodep->varp()->initp()->castConst();
|
||||
const V3Number& num = constp->num();
|
||||
|
||||
+6
-6
@@ -301,12 +301,12 @@ void V3PreProcImp::comment(const string& text) {
|
||||
if (commentTokenMatch(cmd/*ref*/, "parallel_case")) {
|
||||
insertUnreadback ("/*verilator parallel_case*/");
|
||||
}
|
||||
if (commentTokenMatch(cmd/*ref*/, "one_hot")) {
|
||||
insertUnreadback ("/*verilator one_hot*/ "+cmd+";");
|
||||
}
|
||||
if (commentTokenMatch(cmd/*ref*/, "one_cold")) {
|
||||
insertUnreadback ("/*verilator one_cold*/ "+cmd+";");
|
||||
}
|
||||
//if (commentTokenMatch(cmd/*ref*/, "one_hot")) {
|
||||
// insertUnreadback ("/*verilator one_hot*/ "+cmd+";");
|
||||
//}
|
||||
//if (commentTokenMatch(cmd/*ref*/, "one_cold")) {
|
||||
// insertUnreadback ("/*verilator one_cold*/ "+cmd+";");
|
||||
//}
|
||||
// else ignore the comment we don't recognize
|
||||
} // else no assertions
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user