diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-29 12:51:16 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-29 12:51:16 +0100 |
commit | e23a0072ec75ce19733fb4ae04e623b17dbbd475 (patch) | |
tree | 4fc20e79abc9fbfb7a03978d94807ab778c5f1b6 /manual/APPNOTE_011_Design_Investigation | |
parent | 1b3a60976d0f74791277515cfad20dc7e37e1b9a (diff) | |
download | yosys-e23a0072ec75ce19733fb4ae04e623b17dbbd475.tar.gz yosys-e23a0072ec75ce19733fb4ae04e623b17dbbd475.tar.bz2 yosys-e23a0072ec75ce19733fb4ae04e623b17dbbd475.zip |
Progress on AppNote 011
Diffstat (limited to 'manual/APPNOTE_011_Design_Investigation')
5 files changed, 14 insertions, 5 deletions
diff --git a/manual/APPNOTE_011_Design_Investigation/.gitignore b/manual/APPNOTE_011_Design_Investigation/.gitignore index 814220613..291bf0266 100644 --- a/manual/APPNOTE_011_Design_Investigation/.gitignore +++ b/manual/APPNOTE_011_Design_Investigation/.gitignore @@ -1,6 +1,7 @@ example_00.dot example_01.dot example_02.dot +example_03.dot cmos_00.dot cmos_01.dot splice.dot diff --git a/manual/APPNOTE_011_Design_Investigation/example.v b/manual/APPNOTE_011_Design_Investigation/example.v index ec272011c..8c71989b3 100644 --- a/manual/APPNOTE_011_Design_Investigation/example.v +++ b/manual/APPNOTE_011_Design_Investigation/example.v @@ -1,5 +1,6 @@ -module example(input clk, a, b, c, output reg [1:0] y); -always @(posedge clk) - if (c) - y <= c ? a + b : 2'd0; +module example(input clk, a, b, c, + output reg [1:0] y); + always @(posedge clk) + if (c) + y <= c ? a + b : 2'd0; endmodule diff --git a/manual/APPNOTE_011_Design_Investigation/example.ys b/manual/APPNOTE_011_Design_Investigation/example.ys index 6c9ff7983..b1e956088 100644 --- a/manual/APPNOTE_011_Design_Investigation/example.ys +++ b/manual/APPNOTE_011_Design_Investigation/example.ys @@ -4,3 +4,8 @@ proc show -format dot -prefix example_01 opt show -format dot -prefix example_02 + +cd example +select t:$add +show -format dot -prefix example_03 + diff --git a/manual/APPNOTE_011_Design_Investigation/make.sh b/manual/APPNOTE_011_Design_Investigation/make.sh index c46970988..af08d990a 100644 --- a/manual/APPNOTE_011_Design_Investigation/make.sh +++ b/manual/APPNOTE_011_Design_Investigation/make.sh @@ -7,6 +7,7 @@ sed -i '/^label=/ d;' example_*.dot splice.dot cmos_*.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 example_03.pdf example_03.dot dot -Tpdf -o splice.pdf splice.dot dot -Tpdf -o cmos_00.pdf cmos_00.dot dot -Tpdf -o cmos_01.pdf cmos_01.dot diff --git a/manual/APPNOTE_011_Design_Investigation/splice.v b/manual/APPNOTE_011_Design_Investigation/splice.v index b6796c516..1cf7274c0 100644 --- a/manual/APPNOTE_011_Design_Investigation/splice.v +++ b/manual/APPNOTE_011_Design_Investigation/splice.v @@ -4,6 +4,7 @@ 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}}; +assign {y[11:4], y[1:0], y[3:2]} = + {a, b, -{c, d}, ~{e, f}}; endmodule |