Fix is probably to mark as a clock

This commit is contained in:
Todd Strader 2020-02-18 18:19:55 -05:00
parent db6ecbd57e
commit 120f62fe85
2 changed files with 3 additions and 2 deletions

View File

@ -353,7 +353,8 @@ class ProtectVisitor : public AstNVisitor {
nodep->v3error("Unsupported: unpacked arrays with protect-lib on "<<nodep->prettyNameQ());
}
if (nodep->direction() == VDirection::INPUT) {
if (nodep->isUsedClock()) {
if (nodep->isUsedClock()
|| nodep->attrClocker() == VVarAttrClocker::CLOCKER_YES) {
handleClock(nodep);
} else {
handleDataInput(nodep);

View File

@ -25,7 +25,7 @@ module secret #(parameter GATED_CLK = 0)
input [3:0] [31:0] s4x32_in,
output logic [3:0] [31:0] s4x32_out,
input clk_en,
input clk);
input clk /*verilator clocker*/);
logic [31:0] secret_accum_q = 0;
logic [31:0] secret_value = 7;