module absval_ref(input signed [3:0] a, output [3:0] y); assign y = a[3] ? -a : a; endmodule >
1 2 3 4 5 6 7 8 9 10