본문 바로가기
Design

[RTL Design] XNOR Gate

by VIR&US 2024. 5. 24.
반응형

Problem description

  • module은 TOP이고 Input inA, inB Output out를 가지고 있습니다.
  • inA와 inB는 XNOR Gate를 통해 out으로 나갑니다.

Code

module TOP (
 input inA,
 input inB,
 output out);

 assign out=~(inA^inB);
//assign out = inA~^inB;

endmodule

Description

  • "^" XOR bit 연산자입니다.
  • "~^", "^~" XNOR bit 연산자입니다.
728x90
반응형

'Design' 카테고리의 다른 글

[RTL Design] Clock Divider (2)  (2) 2025.07.11
[RTL Design] NOR Gate  (0) 2024.05.24
[RTL Design] And gate  (0) 2024.05.24
[RTL Design] Inverter (Not gate)  (0) 2024.05.22
[RTL Design] Wire 2  (0) 2024.05.22