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

Decoder Based ROM Implementation

EasyLogic CircuitBuild

Read-only memory (ROM) forms the foundational lookup tables for microcode, bootloaders, and constant storage in digital systems. At the gate level, a ROM is simply an address decoder driving a programmable logic matrix.

Implement an 8-word by 5-bit ROM that stores the first eight prime numbers. The 3-bit input addr acts as the index. The 5-bit output data provides the corresponding hardwired prime number.

| addr | data (Decimal) | data (Binary) | |--------|------------------|-----------------| | 0 | 2 | 00010 | | 1 | 3 | 00011 | | 2 | 5 | 00101 | | 3 | 7 | 00111 | | 4 | 11 | 01011 | | 5 | 13 | 01101 | | 6 | 17 | 10001 | | 7 | 19 | 10011 |

Constraints

  • Construct the 3-to-8 address decoder from basic logic gates.
  • Implement the memory array using only OR gates.
  • Combinational logic only.

Topics

memorydatapathdecoderrom

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

  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Handshake Deadlock Due to Early ResetHard
  • Reconvergence of Individually Synchronized BitsHard
  • Debug: Asynchronous Clear GlitchHard
  • Clock Gate Enable Crossing DomainsHard

Browse all problems · Learning tracks