forked from tanchou/Verilog
Training exercise
This commit is contained in:
14
Introduction/bidouille/Bitwise_Logical.v
Normal file
14
Introduction/bidouille/Bitwise_Logical.v
Normal 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
|
Reference in New Issue
Block a user