Home / Learn Verilog / Dual-Port RAM

Dual-Port RAM

Read and write at the same time.

Bottom lineRead and write at the same time.

Breaking it down

dual RAMADDRDINWECLKDOUTA and B
dual RAM

The basic idea

Two ports with separate addresses let one side write while the other reads.

Why this comes up

FIFOs and video line buffers.

The mechanics

Separate write and read blocks.

Where it is used

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Simple dual-portVerilog: edit and run

Both ports work in the same cycle.

Quick check

1. Dual-port allows...