题解 | #信号级联合并#

信号级联合并

https://www.nowcoder.com/practice/1cc0fc70308844669d695d99a5576e73

`timescale 1ns/1ns

module top_module(
    input [4:0] a, b, c, d, e, f,
    output [7:0] w, x, y, z );
    wire [31:0]t;
    assign t = {a,b,c,d,e,f,2'b11};//这里的2'b11,不能写成2b'3
    assign w = t[31:24];
    assign x = t[23:16];
    assign y = t[15:8];
    assign z = t[7:0];
endmodule

全部评论

相关推荐

舂锋:不能投什么岗都用一份简历,一般都是要看企业的岗位需求来写职业技能或者是项目经历,跟岗位相关的就写多一点。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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