/* * f15_line_mem.v * * Memory for a single line to compute max-hold / average * Read latency is 2 and if read is not enabled, output data is forced * to zero. * * Copyright (C) 2015 Ettus Corporation LLC * Copyright 2018 Ettus Research, a National Instruments Company * * SPDX-License-Identifier: LGPL-3.0-or-later * * vim: ts=4 sw=4 */ `ifdef SIM `default_nettype none `endif module f15_line_mem #( parameter integer AWIDTH = 12, parameter integer DWIDTH = 18 )( input wire [AWIDTH-1:0] rd_addr, output reg [DWIDTH-1:0] rd_data, input wire rd_ena, input wire [AWIDTH-1:0] wr_addr, input wire [DWIDTH-1:0] wr_data, input wire wr_ena, input wire clk, input wire rst ); // Signals reg [DWIDTH-1:0] ram [(1<