mirror of
https://github.com/supleed2/ELEC40006-P1-CW.git
synced 2024-11-10 02:05:48 +00:00
11 lines
222 B
Coq
11 lines
222 B
Coq
|
module max_min(a, b, maximum, minimum);
|
||
|
|
||
|
input unsigned [7:0] a;
|
||
|
input unsigned [7:0] b;
|
||
|
output unsigned [7:0] maximum;
|
||
|
output unsigned [7:0] minimum;
|
||
|
|
||
|
assign minimum = (a<b) ? a:b;
|
||
|
assign maximum = (a>b) ? a:b;
|
||
|
|
||
|
endmodule
|