题解 | #三元操作符#
三元操作符
https://www.nowcoder.com/practice/460dd32658f1402382f9a3a65a577a85
`timescale 1ns/1ns
module top_module(
input [7:0] a, b, c, d,
output [7:0] max);//
assign max= a>b?a:(b>c)?b:(c>d)?c:d;
endmodule
三元操作符
https://www.nowcoder.com/practice/460dd32658f1402382f9a3a65a577a85
`timescale 1ns/1ns
module top_module(
input [7:0] a, b, c, d,
output [7:0] max);//
assign max= a>b?a:(b>c)?b:(c>d)?c:d;
endmodule
相关推荐
最喜欢秋天的火龙果很...:第一份工作一定要往大的去,工资低点没事。后面换工作会更好找,即使你去小公司,你也不可能不会换工作的。所以找大的去