From 6564e25c6ffdee35dfffb8e49d4dafc06c4ca697 Mon Sep 17 00:00:00 2001 From: Shreesh-Kulkarni Date: Tue, 24 Oct 2023 01:02:51 +0530 Subject: [PATCH] . --- comblogic/concat.v | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 comblogic/concat.v diff --git a/comblogic/concat.v b/comblogic/concat.v new file mode 100644 index 0000000..9e589e9 --- /dev/null +++ b/comblogic/concat.v @@ -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 \ No newline at end of file