3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 01:24:10 +00:00
yosys/manual/PRESENTATION_Prog/absval_ref.v
2014-06-22 12:50:29 +02:00

4 lines
97 B
Verilog

module absval_ref(input signed [3:0] a, output [3:0] y);
assign y = a[3] ? -a : a;
endmodule