-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[+] Update sv: implement target_cfg_pkg.sv file isntead of generic pa…
…rameters of the soc_top module. Alignment with the systemc model
- Loading branch information
1 parent
5727704
commit 9f2ea9a
Showing
27 changed files
with
154 additions
and
179 deletions.
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
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
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,48 @@ | ||
// | ||
// Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
package target_cfg_pkg; | ||
|
||
|
||
|
||
// @brief Number of processors in a system | ||
// @details This value may be in a range 1 to CFG_TOTAL_CPU_MAX-1 | ||
localparam int CFG_CPU_NUM = 1; | ||
|
||
// @brief Caches size parameters. | ||
// @note Caches line size configured in river_cfg file and affects L1 memory bus width. | ||
localparam int CFG_ILOG2_LINES_PER_WAY = 7; // I$ length: 7=16KB; 8=32KB; .. | ||
localparam int CFG_ILOG2_NWAYS = 2; // I$ associativity. Default bits width = 2, means 4 ways | ||
|
||
localparam int CFG_DLOG2_LINES_PER_WAY = 7; // D$ length: 7=16KB; 8=32KB; .. | ||
localparam int CFG_DLOG2_NWAYS = 2; // D$ associativity. Default bits width = 2, means 4 ways | ||
|
||
// @brief Enable/disable L2 caching. L2 can be enabled even in 1 CPU config | ||
localparam int CFG_L2CACHE_ENA = 1; | ||
localparam int CFG_L2_LOG2_NWAYS = 4; | ||
localparam int CFG_L2_LOG2_LINES_PER_WAY = 9; // 7=16KB; 8=32KB; 9=64KB, .. | ||
|
||
// Internal Boot ROM size: | ||
localparam int CFG_BOOTROM_LOG2_SIZE = 16; // 16=64 KB (default); 17=128KB; .. | ||
|
||
// Project relative HEX-file name to init boot ROM without .hex extension: | ||
localparam CFG_BOOTROM_FILE_HEX = "../../../../examples/bootrom_tests/linuxbuild/bin/bootrom_tests"; | ||
|
||
// Internal SRAM block: | ||
// - Increase memory map if need > 2MB FU740 | ||
// - Change bootloader stack pointer if need less than 512 KB | ||
localparam int CFG_SRAM_LOG2_SIZE = 21; // 19=512 KB (KC705); 21=2 MB (ASIC); .. | ||
|
||
endpackage: target_cfg_pkg |
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
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
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
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
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,48 @@ | ||
// | ||
// Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
package target_cfg_pkg; | ||
|
||
|
||
|
||
// @brief Number of processors in a system | ||
// @details This value may be in a range 1 to CFG_TOTAL_CPU_MAX-1 | ||
localparam int CFG_CPU_NUM = 1; | ||
|
||
// @brief Caches size parameters. | ||
// @note Caches line size configured in river_cfg file and affects L1 memory bus width. | ||
localparam int CFG_ILOG2_LINES_PER_WAY = 7; // I$ length: 7=16KB; 8=32KB; .. | ||
localparam int CFG_ILOG2_NWAYS = 2; // I$ associativity. Default bits width = 2, means 4 ways | ||
|
||
localparam int CFG_DLOG2_LINES_PER_WAY = 7; // D$ length: 7=16KB; 8=32KB; .. | ||
localparam int CFG_DLOG2_NWAYS = 2; // D$ associativity. Default bits width = 2, means 4 ways | ||
|
||
// @brief Enable/disable L2 caching. L2 can be enabled even in 1 CPU config | ||
localparam int CFG_L2CACHE_ENA = 1; | ||
localparam int CFG_L2_LOG2_NWAYS = 4; | ||
localparam int CFG_L2_LOG2_LINES_PER_WAY = 9; // 7=16KB; 8=32KB; 9=64KB, .. | ||
|
||
// Internal Boot ROM size: | ||
localparam int CFG_BOOTROM_LOG2_SIZE = 16; // 16=64 KB (default); 17=128KB; .. | ||
|
||
// Project relative HEX-file name to init boot ROM without .hex extension: | ||
localparam CFG_BOOTROM_FILE_HEX = "../../../../examples/bootrom_tests/linuxbuild/bin/bootrom_tests"; | ||
|
||
// Internal SRAM block: | ||
// - Increase memory map if need > 2MB FU740 | ||
// - Change bootloader stack pointer if need less than 512 KB | ||
localparam int CFG_SRAM_LOG2_SIZE = 21; // 19=512 KB (KC705); 21=2 MB (ASIC); .. | ||
|
||
endpackage: target_cfg_pkg |
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
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
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
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
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
Oops, something went wrong.