mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 02:40:25 +00:00
flowmap: cleanup for clarity. NFCI.
This commit is contained in:
parent
fd21564deb
commit
9bc5cf0844
3 changed files with 185 additions and 113 deletions
22
passes/tests/flowmap/flow.v
Normal file
22
passes/tests/flowmap/flow.v
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Exact reproduction of Figure 2(a) from 10.1109/43.273754.
|
||||
module top(...);
|
||||
input a,b,c,d,e,f;
|
||||
wire nA = b&c;
|
||||
wire A = !nA;
|
||||
wire nB = c|d;
|
||||
wire B = !nB;
|
||||
wire nC = e&f;
|
||||
wire C = !nC;
|
||||
wire D = A|B;
|
||||
wire E = a&D;
|
||||
wire nF = D&C;
|
||||
wire F = !nF;
|
||||
wire nG = F|B;
|
||||
wire G = !nG;
|
||||
wire H = a&F;
|
||||
wire I = E|G;
|
||||
wire J = G&C;
|
||||
wire np = H&I;
|
||||
output p = !np;
|
||||
output q = A|J;
|
||||
endmodule
|
16
passes/tests/flowmap/flowp.v
Normal file
16
passes/tests/flowmap/flowp.v
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Like flow.v, but results in a network identical to Figure 2(b).
|
||||
module top(...);
|
||||
input a,b,c,d,e,f;
|
||||
wire A = b&c;
|
||||
wire B = c|d;
|
||||
wire C = e&f;
|
||||
wire D = A|B;
|
||||
wire E = a&D;
|
||||
wire F = D&C;
|
||||
wire G = F|B;
|
||||
wire H = a&F;
|
||||
wire I = E|G;
|
||||
wire J = G&C;
|
||||
output p = H&I;
|
||||
output q = A|J;
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue