Prev Problem
Next Problem

11. Vector Concatenation

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

 

Code

/*Write your code here*/
module concat8_packer(
    input wire [3:0] A,
    input wire [1:0] B,
    input wire       C,
    input wire       D,
    output wire [7:0] OUT
);
    wire notc ;
    assign notc = ~C;
    assign OUT = {A,B, notc,D};

endmodule

 

Was this helpful?
Upvote
Downvote