题解 | #多位信号#

多位信号

https://www.nowcoder.com/practice/2df35378ad06477eb3c1fcba16c78709


`timescale 1ns/1ns

module top_module(
    input [2:0] in,
    output reg a,
    output reg b,
    output reg c
);

    always@(*)
        begin
            case(in)
                3'b000: c = in[0];
                3'b001: b = in[1];
                3'b010: a = in[2];
            endcase
        end
endmodule

全部评论

相关推荐

入职华为的第一步:投递
投递华为技术有限公司等公司10个岗位
点赞 评论 收藏
分享
darius_:我试了简历上有微服务和没微服务主动要简历的外包的比例都不一样,微服务稍微看看还是要写上去,人人都写你不写会被pass
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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