aboutsummaryrefslogtreecommitdiffstats
path: root/manual/PRESENTATION_Prog/absval_ref.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-06-22 12:50:29 +0200
committerClifford Wolf <clifford@clifford.at>2014-06-22 12:50:29 +0200
commita7aea179599045feafcaf26f5ed334a7318a69b4 (patch)
tree2033072706700930a5150c04814851ded086ecc0 /manual/PRESENTATION_Prog/absval_ref.v
parent3345fa0bab5d343a9cd5a9dde6486e4e876fe8da (diff)
downloadyosys-a7aea179599045feafcaf26f5ed334a7318a69b4.tar.gz
yosys-a7aea179599045feafcaf26f5ed334a7318a69b4.tar.bz2
yosys-a7aea179599045feafcaf26f5ed334a7318a69b4.zip
Progress in presentation
Diffstat (limited to 'manual/PRESENTATION_Prog/absval_ref.v')
-rw-r--r--manual/PRESENTATION_Prog/absval_ref.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/manual/PRESENTATION_Prog/absval_ref.v b/manual/PRESENTATION_Prog/absval_ref.v
new file mode 100644
index 000000000..ca0a115a0
--- /dev/null
+++ b/manual/PRESENTATION_Prog/absval_ref.v
@@ -0,0 +1,3 @@
+module absval_ref(input signed [3:0] a, output [3:0] y);
+ assign y = a[3] ? -a : a;
+endmodule