aboutsummaryrefslogtreecommitdiffstats
path: root/manual/PRESENTATION_Prog/absval_ref.v
blob: ca0a115a0a7a8117903c2034c6c4a2ba8e879691 (plain)
1
2
3
module absval_ref(input signed [3:0] a, output [3:0] y);
    assign y = a[3] ? -a : a;
endmodule