diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-06-22 12:50:29 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-06-22 12:50:29 +0200 |
commit | a7aea179599045feafcaf26f5ed334a7318a69b4 (patch) | |
tree | 2033072706700930a5150c04814851ded086ecc0 /manual/PRESENTATION_Prog/absval_ref.v | |
parent | 3345fa0bab5d343a9cd5a9dde6486e4e876fe8da (diff) | |
download | yosys-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.v | 3 |
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 |