CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Combinational Logic

Single Continuous Assignment

EasyVerilog / SystemVerilogBuildFree34 solved

Digital systems rely on combinational logic gates to evaluate conditions instantaneously without requiring a clock. The logical AND operation is a fundamental building block that asserts its output only when all its inputs are true.

This module takes two single-bit inputs and computes their logical AND. The output continuously reflects the evaluation of the inputs at any given moment.

This circuit is purely combinational. There is no clock signal and no reset signal. The output evaluates and updates immediately based on the current state of the inputs.

| Signal | Direction | Width | Description | |--------|-----------|-------|-------------| | a | input | 1 | First operand | | b | input | 1 | Second operand | | y | output | 1 | Logical AND of a and b |

Constraints

  • The output y must update combinationally based on inputs a and b
  • The module contains no sequential elements; do not use a clock or reset
  • Inputs and outputs are strictly 1-bit wide

Topics

combinationalbasicsgates

Solve this problem

Write the module in Verilog, SystemVerilog or VHDL. Your submission is compiled and simulated against a real testbench — you get the waveform back, not a stored answer.

Free to solve. A Codiode account keeps your progress.

Sign in to solve

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • Ternary Operator MuxEasy
  • Basic Vector ConcatenationEasy
  • Underscores for ReadabilityEasy
  • Left Hand Side ConcatenationEasy
  • Explicit Binary LiteralsEasy
  • Inout Port MechanicsEasy
  • Vector Port EndiannessEasy
  • Basic Module PortsEasy

Browse all problems · Learning tracks