.. _dpram_source: dpram Source File ================= .. code-block:: verilog :linenos: `timescale 1ns / 1ns // Dual port memory with independent clocks, port B is read-only // Altera and Xilinx synthesis tools successfully "find" this as block memory module dpram #( parameter aw=8, parameter dw=8, parameter initial_file = "" ) ( input clka, input clkb, input [aw-1:0] addra, output [dw-1:0] douta, input [dw-1:0] dina, input wena, input [aw-1:0] addrb, output [dw-1:0] doutb ); localparam sz=32'b1<