mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-11 20:21:26 +00:00
Merge 2a262483bb
into c2291c10a6
This commit is contained in:
commit
4e5cd2305d
2 changed files with 21 additions and 1 deletions
|
@ -5872,7 +5872,10 @@ bool RTLIL::SigSpec::parse_rhs(const RTLIL::SigSpec &lhs, RTLIL::SigSpec &sig, R
|
|||
}
|
||||
}
|
||||
|
||||
return parse(sig, module, str);
|
||||
if (!parse(sig, module, str))
|
||||
return false;
|
||||
sig.extend_u0(lhs.width_);
|
||||
return true;
|
||||
}
|
||||
|
||||
RTLIL::CaseRule::~CaseRule()
|
||||
|
|
17
tests/sat/fminit_seq_width.ys
Normal file
17
tests/sat/fminit_seq_width.ys
Normal file
|
@ -0,0 +1,17 @@
|
|||
read_verilog -sv -formal <<EOF
|
||||
module counter(input clk, input [2:0] rst, output logic is_full);
|
||||
logic [1:0] ctr;
|
||||
|
||||
always @(posedge clk)
|
||||
if (rst)
|
||||
ctr <= 0;
|
||||
else
|
||||
ctr <= ctr+1;
|
||||
|
||||
assign is_full = (ctr == 2'b11);
|
||||
endmodule
|
||||
EOF
|
||||
|
||||
hierarchy -check -top counter
|
||||
prep -top counter
|
||||
fminit -seq rst 0,1,2'b11,2'sb11
|
Loading…
Add table
Add a link
Reference in a new issue