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 [3:0] A,
    input [1:0] B,
    input C, D,
    output [7:0] OUT 
);

    wire not_C;
    assign not_C = ~C;

    assign OUT = {A[3:0],B[1:0],not_C,D};

endmodule

 

Was this helpful?
Upvote
Downvote