1. 문제 및 설명
아래 모듈을 설계하세요

2. 모듈 정의
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
);
3. 답
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 = {~b, ~a};
endmodule'Verilog > HDLbits' 카테고리의 다른 글
| [HDLBits] Vector3 (1) | 2025.08.27 |
|---|---|
| [HDLBits] Gates4 (0) | 2025.08.27 |
| [HDLBits] Vector2 (0) | 2025.08.27 |
| [HDLBits] Vector1 (0) | 2025.08.27 |
| [HDLBits] Vector0 (0) | 2025.08.27 |