| // Copyright 2022 Google LLC. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| // |
| // SV Package file for the ML Top level design |
| |
| package ml_pkg; |
| |
| parameter int KB = 1024; |
| parameter int MB = KB * KB; |
| |
| // VC Core related parameters |
| parameter int VcDw = 256; // number of bits |
| |
| parameter int VcDb = VcDw / 8; // number of bytes |
| |
| //------------------------------------------------------------------------ |
| // D-Mem related parameters |
| parameter int DMemSize = 4 * MB; |
| |
| parameter int DMemAw = $clog2(DMemSize); // Width of address bus |
| |
| // Physical Macro related parameters |
| // TO-DO (pbf): DMemMacroDepth to be decided. |
| parameter int DMemMacroDepth = 8 * KB; |
| |
| parameter int DMemMacroWidth = 32; |
| |
| parameter int DMemMacroBytes = DMemMacroWidth / 8; |
| |
| parameter int DMemRows = (DMemSize * 8) / (VcDw * DMemMacroDepth); |
| |
| parameter int DMemCols = VcDw / DMemMacroWidth; |
| |
| parameter int DMemMacroAw = $clog2(DMemMacroDepth); |
| //------------------------------------------------------------------------ |
| |
| |
| endpackage : ml_pkg |
| |