mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #11 from alainmarcel/new_peepopts
A or B width extend
This commit is contained in:
commit
bb49acd7fc
|
@ -24,8 +24,8 @@ endmatch
|
||||||
|
|
||||||
code add_y add_a add_b add_a_ext
|
code add_y add_a add_b add_a_ext
|
||||||
// Get adder signals
|
// Get adder signals
|
||||||
add_a_ext = SigSpec(add_a);
|
add_a_ext = SigSpec(port(add, add_a_id));
|
||||||
add_a_ext.extend_u0(GetSize(add_y), param(add, \A_SIGNED).as_bool());
|
add_a_ext.extend_u0(GetSize(add_y), add_a_signed.as_bool());
|
||||||
// Fanout of each adder Y bit should be 1 (no bit-split)
|
// Fanout of each adder Y bit should be 1 (no bit-split)
|
||||||
if (nusers(add_y) != 2)
|
if (nusers(add_y) != 2)
|
||||||
reject;
|
reject;
|
||||||
|
|
Loading…
Reference in New Issue