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

SystemVerilog Enum Default Encoding

EasyLogic CircuitAnalyze

Synthesizers assign arbitrary binary values to uninitialized enumerated types during state machine inference. The provided netlist shows a finite state machine using an enumerated type state_t with states IDLE, READ, PROCESS, and WRITE. No explicit binary assignments are provided in the RTL. The synthesis tool has mapped these logical states to a physical register state_reg[1:0]. Examine the synthesis output to determine the exact binary encoding Yosys applied to each state. Identify the physical logic consequences of relying on this default assignment for critical control paths.

Constraints

  • The state register state_reg is exactly 2 bits wide.
  • Enum encoding strictly follows standard SystemVerilog default initialization rules.

Topics

FSMSystemVerilogSynthesisEnums

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

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

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Modulo ArithmeticMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks