| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| // TODO: This module is a hard-coded stopgap to select an implementation of an |
| // "abstract module". This module is to be replaced by generated code. |
| `ifndef PRIM_DEFAULT_IMPL |
| `define PRIM_DEFAULT_IMPL integer'(prim_pkg::ImplGeneric) |
| parameter integer Impl = `PRIM_DEFAULT_IMPL, |
| parameter int Width = 32, |
| parameter int Depth = 2048, // 8kB default |
| parameter int Aw = $clog2(Depth) |
| output logic [Width-1:0] dout_o, |
| if (impl_e'(Impl) == ImplGeneric) begin: gen_mem_generic |
| end else if (impl_e'(Impl) == ImplXilinx) begin: gen_rom_xilinx |
| end else begin : gen_rom_unsupported_impl |
| // TODO: Find code that works across tools and causes a compile failure |