Prev Problem
Next Problem

11. Vector Concatenation

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

Thhe output for the value C is not given correct make it ~C

 

 

Code

/*Write your code here*/

module concat8_packer (
    input  [3:0] A,
    input  [1:0] B,
    input  C,
    input  D,
    output  [7:0] OUT
);
    // TODO: Assign outputs using part-selects and bit-selects
   assign OUT = {
    A[3:0],
    B[1:0],
    ~C,
    D
   };
    
endmodule

 

Was this helpful?
Upvote
Downvote