// rom.sv // ROM initialised from a hex file with $readmemh, synchronous read. // Synthesis tools read the file at compile time and store the contents // in block RAM (or LUTs for small tables). `timescale 1ns/1ps module rom #( parameter int DW = 16, parameter int AW = 6, parameter string INIT_FILE = "sine_q15.hex" ) ( input logic clk, input logic [AW-1:0] addr, output logic [DW-1:0] dout ); logic [DW-1:0] mem [0:(1<