1
0
forked from tanchou/Verilog

Training exercise

This commit is contained in:
Gamenight77
2025-03-22 18:44:25 +01:00
parent e651a94dbe
commit 7c09418828
5 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
module top_module(
input [2:0] a,
input [2:0] b,
output [2:0] out_or_bitwise,
output out_or_logical,
output [5:0] out_not
);
assign out_or_bitwise = a | b;
assign out_or_logical = a || b;
assign out_not[2:0] = ~a;
assign out_not[5:3] = ~b;
endmodule