题解 | #多位信号xnor#

多位信号xnor

https://www.nowcoder.com/practice/aa21227e7bf6409e818b01ea21a44c2b

`timescale 1ns/1ns

module top_module(
    input a, b, c, d, e,
	output [24:0] out
);

    wire [24:0] tmp1;
    wire [24:0] tmp2;
    assign tmp1 = {{5{a}}, {5{b}}, {5{c}}, {5{d}}, {5{e}}};
    assign tmp2 = {{5{a, b, c, d, e}}};

    assign out = tmp1 ~^ tmp2;
endmodule

全部评论

相关推荐

12-03 23:38
复旦大学 Java
点赞 评论 收藏
分享
11-11 16:40
已编辑
门头沟学院 人工智能
不知道怎么取名字_:这个有点不合理了,相当于已经毕业了,但还是没转正,这不就是白嫖
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务