mirror of
https://github.com/supleed2/ELEC40006-P1-CW.git
synced 2024-11-10 02:05:48 +00:00
8 lines
139 B
Verilog
8 lines
139 B
Verilog
module min(sign, a, b, num);
|
|
input sign;
|
|
input [7:0] a;
|
|
input [7:0] b;
|
|
output [7:0] num;
|
|
assign num = sign ? a[7:0]:b[7:0];
|
|
endmodule
|