Prev Problem
Next Problem

11. Vector Concatenation

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

Simply I have done the concatenation method to concatenate different data according the bit positions.

 

Code

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

 

Was this helpful?
Upvote
Downvote