summaryrefslogtreecommitdiff
path: root/manual/APPNOTE_011_Design_Investigation
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-29 12:51:16 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-29 12:51:16 +0100
commite23a0072ec75ce19733fb4ae04e623b17dbbd475 (patch)
tree4fc20e79abc9fbfb7a03978d94807ab778c5f1b6 /manual/APPNOTE_011_Design_Investigation
parent1b3a60976d0f74791277515cfad20dc7e37e1b9a (diff)
Progress on AppNote 011
Diffstat (limited to 'manual/APPNOTE_011_Design_Investigation')
-rw-r--r--manual/APPNOTE_011_Design_Investigation/.gitignore1
-rw-r--r--manual/APPNOTE_011_Design_Investigation/example.v9
-rw-r--r--manual/APPNOTE_011_Design_Investigation/example.ys5
-rw-r--r--manual/APPNOTE_011_Design_Investigation/make.sh1
-rw-r--r--manual/APPNOTE_011_Design_Investigation/splice.v3
5 files changed, 14 insertions, 5 deletions
diff --git a/manual/APPNOTE_011_Design_Investigation/.gitignore b/manual/APPNOTE_011_Design_Investigation/.gitignore
index 81422061..291bf026 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 ec272011..8c71989b 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 6c9ff798..b1e95608 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 c4697098..af08d990 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 b6796c51..1cf7274c 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