-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f760658
commit 6564e25
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module concatgates(a, b, c, d, e, out1, out2, out3, out4, out5); | ||
input[1:0] a, b, c, d, e; | ||
output[9:0] out1, out2, out3, out5; | ||
output[29:0] out4; | ||
|
||
assign out1 = {a, b, c, d, e}; | ||
assign out2 = {5{a}}; | ||
assign out3 = {{3{b}}, {4{1'b0}}}; | ||
assign out4 = {out1, {e, d, c, b, a}, ~out1}; | ||
assign out5 = {10{1'b1}} ^ out1; | ||
endmoduleS |