Home / Learn Verilog / Using Block RAM and DSP Blocks

Using Block RAM and DSP Blocks

Infer dedicated resources.

Quick summaryInfer dedicated resources.

How to think about this

Dedicated blocksBlock RAM: synchronous read arraysDSP: a*b+c with registers
Dedicated blocks

Definition

FPGAs have hard RAM and multiplier-accumulator blocks; write code in the style the tool recognises.

Why you need this

Saves LUTs and gives higher speed.

How it works

Registered ports, simple templates.

Where you'll see this

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

Try it

MAC style that maps to DSPVerilog: edit and run

This shape fits a DSP48.

Test what you just read

1. DSP blocks do...