1. Home
  2. /
  3. Systemverilog
  4. /
  5. 2-input AND Gate

2-input AND Gate - Systemverilog Typing CST Test

Loading…

2-input AND Gate — Systemverilog Code

Implement a simple 2-input AND gate using SystemVerilog.

module AND_Gate(
	input logic A,
	input logic B,
	output logic Y
);

assign Y = A & B;

endmodule

Systemverilog Language Guide

SystemVerilog is a hardware description and verification language (HDVL) that extends Verilog with advanced features for hardware modeling, simulation, and verification in digital design.

Primary Use Cases

  • ▸RTL modeling of digital circuits
  • ▸Functional verification using testbenches
  • ▸Formal verification with assertions
  • ▸Constrained-random stimulus generation
  • ▸Coverage-driven verification of complex designs

Notable Features

  • ▸Class-based object-oriented programming for verification
  • ▸Constrained random stimulus generation
  • ▸Functional coverage and assertions
  • ▸Interfaces and modports for modular designs
  • ▸Enhanced data types (logic, bit, enum, struct, union)

Origin & Creator

Developed by Accellera and later standardized as IEEE 1800, SystemVerilog builds upon Verilog (originally created by Phil Moorby in 1984) to unify design and verification features.

Industrial Note

SystemVerilog is essential in high-performance semiconductor industries for complex SoC verification, coverage-driven testbenches, and constrained-random simulation.

More Systemverilog Typing Exercises

Blink LED2-bit Counter with Reset

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher