ROM (Read-Only Memory) in Verilog
📖 Scenario: You are designing a simple digital system that needs to store fixed data values. This data will not change during operation, so you decide to use a Read-Only Memory (ROM) module in Verilog to hold these values.
🎯 Goal: Build a ROM module in Verilog that stores 8 fixed 4-bit values. You will create the ROM data, set up the address input, implement the ROM logic, and finally output the stored data based on the address.
📋 What You'll Learn
Create a ROM data array with 8 entries, each 4 bits wide, with exact values
Create an address input variable to select which data to output
Implement the ROM logic using a case statement to output data based on the address
Print the output data for a given address
💡 Why This Matters
🌍 Real World
ROM modules are used in digital systems to store fixed data like lookup tables, font data, or configuration constants that do not change during operation.
💼 Career
Understanding ROM design in Verilog is important for hardware engineers working on FPGA or ASIC designs where fixed data storage is required.
Progress0 / 4 steps