mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
More progress on AppNote 011
This commit is contained in:
parent
0e52f3fa01
commit
9595eca181
4 changed files with 122 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
example_00.dot
|
||||
example_01.dot
|
||||
example_02.dot
|
||||
splice.dot
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
../../yosys example.ys
|
||||
sed -i '/^label=/ d;' example_*.dot
|
||||
../../yosys -p 'proc; opt; show -format dot -prefix splice' splice.v
|
||||
sed -i '/^label=/ d;' example_*.dot splice.dot
|
||||
dot -Tpdf -o example_00.pdf example_00.dot
|
||||
dot -Tpdf -o example_01.pdf example_01.dot
|
||||
dot -Tpdf -o example_02.pdf example_02.dot
|
||||
dot -Tpdf -o splice.pdf splice.dot
|
||||
|
|
9
manual/APPNOTE_011_Design_Investigation/splice.v
Normal file
9
manual/APPNOTE_011_Design_Investigation/splice.v
Normal file
|
@ -0,0 +1,9 @@
|
|||
module splice_demo(a, b, c, d, e, f, x, y);
|
||||
|
||||
input [1:0] a, b, c, d, e, f;
|
||||
output [1:0] x = {a[0], a[1]};
|
||||
|
||||
output [11:0] y;
|
||||
assign {y[11:4], y[1:0], y[3:2]} = {a, b, -{c, d}, ~{e, f}};
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue