mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
3 lines
97 B
Verilog
3 lines
97 B
Verilog
module absval_ref(input signed [3:0] a, output [3:0] y);
|
|
assign y = a[3] ? -a : a;
|
|
endmodule
|