-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ideally, the scan role (none, scan-in, scan-out) would be captured as part of the pinout Hjson description. However, due to the need to keep this information in the foundry repo, an approach with a separate SV package is taken. The open-source version is just a generic assignment of scan roles. The scan role parameters for the synthesized ASIC target are defined in the foundry repo and will be read in when the "fileset_partner" flag is defined in the build flow. Signed-off-by: Michael Schaffner <[email protected]>
- Loading branch information
1 parent
6c5f7a7
commit c340446
Showing
5 changed files
with
212 additions
and
5 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,82 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Open-source scan role definitions for pads. | ||
// This is only relevant for the ASIC target. | ||
|
||
package scan_role_pkg; | ||
|
||
import prim_pad_wrapper_pkg::*; | ||
|
||
parameter scan_role_e DioPadPorNScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiHostD0ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiHostD1ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiHostD2ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiHostD3ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiHostClkScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiHostCsLScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiDevD0ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiDevD1ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiDevD2ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiDevD3ScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiDevClkScanRole = NoScan; | ||
parameter scan_role_e DioPadSpiDevCsLScanRole = NoScan; | ||
parameter scan_role_e DioPadUsbPScanRole = NoScan; | ||
parameter scan_role_e DioPadUsbNScanRole = NoScan; | ||
parameter scan_role_e DioPadCc1ScanRole = NoScan; | ||
parameter scan_role_e DioPadCc2ScanRole = NoScan; | ||
parameter scan_role_e DioPadFlashTestVoltScanRole = NoScan; | ||
parameter scan_role_e DioPadFlashTestMode0ScanRole = NoScan; | ||
parameter scan_role_e DioPadFlashTestMode1ScanRole = NoScan; | ||
parameter scan_role_e DioPadIor8ScanRole = NoScan; | ||
parameter scan_role_e DioPadIor9ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa0ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa1ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa2ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa3ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa4ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa5ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa6ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa7ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoa8ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob0ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob1ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob2ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob3ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob4ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob5ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob6ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob7ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob8ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob9ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob10ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob11ScanRole = NoScan; | ||
parameter scan_role_e MioPadIob12ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc0ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc1ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc2ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc3ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc4ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc5ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc6ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc7ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc8ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc9ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc10ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc11ScanRole = NoScan; | ||
parameter scan_role_e MioPadIoc12ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor0ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor1ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor2ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor3ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor4ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor5ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor6ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor7ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor10ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor11ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor12ScanRole = NoScan; | ||
parameter scan_role_e MioPadIor13ScanRole = NoScan; | ||
|
||
endpackage : scan_role_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
CAPI=2: | ||
# Copyright lowRISC contributors. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
name: "lowrisc:systems:scan_role_pkg:0.1" | ||
description: "Open-source place-holder for scanrole parameters" | ||
|
||
filesets: | ||
files_rtl: | ||
depend: | ||
- lowrisc:prim:pad_wrapper_pkg | ||
files: | ||
- rtl/scan_role_pkg.sv | ||
file_type: systemVerilogSource | ||
|
||
files_verilator_waiver: | ||
depend: | ||
# common waivers | ||
- lowrisc:lint:common | ||
- lowrisc:lint:comportable | ||
file_type: vlt | ||
|
||
files_ascentlint_waiver: | ||
depend: | ||
# common waivers | ||
- lowrisc:lint:common | ||
- lowrisc:lint:comportable | ||
file_type: waiver | ||
|
||
files_veriblelint_waiver: | ||
depend: | ||
# common waivers | ||
- lowrisc:lint:common | ||
- lowrisc:lint:comportable | ||
|
||
targets: | ||
default: &default_target | ||
filesets: | ||
- tool_verilator ? (files_verilator_waiver) | ||
- tool_ascentlint ? (files_ascentlint_waiver) | ||
- tool_veriblelint ? (files_veriblelint_waiver) | ||
- 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