Codiode

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.

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.

Part of Datapath and Storage

Problem 14 of 29 in the Datapath and Storage track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.