mirror of https://github.com/YosysHQ/yosys.git
Add an index
This commit is contained in:
parent
1602516a8b
commit
8a94ce7aa5
|
@ -189,6 +189,7 @@ match add
|
|||
index <SigBit> port(add, AB)[0] === sigH[0]
|
||||
filter GetSize(port(add, AB)) <= GetSize(sigH)
|
||||
filter port(add, AB) == sigH.extract(0, GetSize(port(add, AB)))
|
||||
filter nusers(sigH.extract_end(GetSize(port(add, AB)))) <= 1
|
||||
set addAB AB
|
||||
optional
|
||||
endmatch
|
||||
|
|
|
@ -268,6 +268,8 @@ match postAdd
|
|||
select nusers(port(postAdd, AB)) <= 3
|
||||
filter ffMcemux || nusers(port(postAdd, AB)) == 2
|
||||
filter !ffMcemux || nusers(port(postAdd, AB)) == 3
|
||||
|
||||
index <SigBit> port(postAdd, AB)[0] === sigP[0]
|
||||
filter GetSize(unextend(port(postAdd, AB))) <= GetSize(sigP)
|
||||
filter unextend(port(postAdd, AB)) == sigP.extract(0, GetSize(unextend(port(postAdd, AB))))
|
||||
filter nusers(sigP.extract_end(GetSize(unextend(port(postAdd, AB))))) <= 1
|
||||
|
|
Loading…
Reference in New Issue