mirror of
https://github.com/verilator/verilator.git
synced 2025-04-05 04:02:37 +00:00
This commit is contained in:
parent
7eac788306
commit
e8c03650ae
@ -460,13 +460,17 @@ class SplitUnpackedVarVisitor : public AstNVisitor, public SplitVarImpl {
|
||||
if (nodep->sensesp()) { // When visiting sensitivity list, always is the context
|
||||
setContextAndIterate(nodep, nodep->sensesp());
|
||||
}
|
||||
if (AstNode* bodysp = nodep->bodysp()) iterate(bodysp);
|
||||
for (AstNode* bodysp = nodep->bodysp(); bodysp; bodysp = bodysp->nextp()) {
|
||||
iterate(bodysp);
|
||||
}
|
||||
};
|
||||
virtual void visit(AstAlwaysPublic* nodep) override {
|
||||
if (nodep->sensesp()) { // When visiting sensitivity list, always is the context
|
||||
setContextAndIterate(nodep, nodep->sensesp());
|
||||
}
|
||||
if (AstNode* bodysp = nodep->bodysp()) iterate(bodysp);
|
||||
for (AstNode* bodysp = nodep->bodysp(); bodysp; bodysp = bodysp->nextp()) {
|
||||
iterate(bodysp);
|
||||
}
|
||||
}
|
||||
virtual void visit(AstNodeFTaskRef* nodep) override {
|
||||
VL_RESTORER(m_contextp);
|
||||
|
@ -166,7 +166,8 @@ module barshift_1d_unpacked_struct1 #(parameter DEPTH = 2, localparam WIDTH = 2*
|
||||
end
|
||||
endgenerate
|
||||
assign tmp[0+OFFSET] = {pad, in};
|
||||
assign out = tmp[DEPTH+OFFSET][WIDTH-1:0];
|
||||
logic _dummy;
|
||||
always_comb {_dummy, out[WIDTH-1:1], out[0]} = tmp[DEPTH+OFFSET][WIDTH:0];
|
||||
endmodule
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user