-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cw305] Export flash_ctrl info pages for CW305
Since englishbreakfast on the CW305 shares an MMI script with earlgrey, add the same memory breakdown so info pages may be spliced. Signed-off-by: Alexander Williams <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
hw/top_englishbreakfast/englishbreakfast_xilinx_prim_pkg.core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CAPI=2: | ||
# Copyright lowRISC contributors (OpenTitan project). | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: "lowrisc:prim_xilinx:englishbreakfast_xilinx_prim_pkg" | ||
description: "Prim configuration for englishbreakfast" | ||
virtual: | ||
- lowrisc:prim_xilinx:prim_xilinx_pkg | ||
filesets: | ||
files_rtl: | ||
files: | ||
- rtl/prim_xilinx_pkg.sv | ||
file_type: systemVerilogSource | ||
|
||
targets: | ||
default: &default_target | ||
filesets: | ||
- files_rtl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright lowRISC contributors (OpenTitan project). | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package prim_xilinx_pkg; | ||
|
||
// Accommodates updatemem by breaking up flash info arrays into data and | ||
// metadata subarrays. The 76-bit width and 1 BRAM depth identifies these | ||
// memories in earlgrey, and we limit the subarray size to 64 bits, which is | ||
// the size of the data portion. The leftover 12 bits get placed into their | ||
// own memory with a unique hierarchical path. See prim_xilinx_ram_1p.sv to | ||
// see how this works. | ||
function automatic int get_ram_max_width(int width, int depth); | ||
if (width == 76 && depth < 4096) begin | ||
return 64; | ||
end | ||
return 0; | ||
endfunction | ||
|
||
endpackage : prim_xilinx_pkg |