forked from pulp-platform/carfield
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First transparent streamer integration.
- Loading branch information
Yvan Tortorella
committed
Apr 15, 2024
1 parent
3b43ae1
commit 5510f75
Showing
8 changed files
with
239 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -499,7 +499,7 @@ packages: | |
- riscv-dbg | ||
- tech_cells_generic | ||
streamer: | ||
revision: 83db53a8017c630f1c8bdc358d88b27067c01e56 | ||
revision: 41c90f7c525f45539afaa3387e3975c6e785a243 | ||
version: null | ||
source: | ||
Git: [email protected]:musa/streamer.git | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ dependencies: | |
common_cells: { git: https://github.com/pulp-platform/common_cells.git, version: 1.31.1 } | ||
pulp-ethernet: { git: https://github.com/pulp-platform/pulp-ethernet.git, rev: bdc8031ab270a49da28df269266ce9ab9a133636 } # branch: carfield | ||
riscv-dbg: { git: https://github.com/pulp-platform/riscv-dbg.git, version: =0.8.0 } | ||
streamer: { git: [email protected]:musa/streamer.git, rev: 83db53a8 } # branch: tech_lib_organization | ||
streamer: { git: [email protected]:musa/streamer.git, rev: 41c90f7c } # branch: yt/integration | ||
|
||
workspace: | ||
package_links: | ||
|
@@ -40,6 +40,10 @@ workspace: | |
|
||
sources: | ||
# Configurations | ||
- target: carfield_l2dual_secure_pulp_periph_can_streamer | ||
files: | ||
- hw/configs/carfield_l2dual_secure_pulp_periph_can_streamer.sv | ||
|
||
- target: carfield_l2dual_safe_secure_pulp_spatz_periph_can | ||
files: | ||
- hw/configs/carfield_l2dual_safe_secure_pulp_spatz_periph_can.sv | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# Author: Matteo Perotti <[email protected]> | ||
|
||
# Runtime-selectable Carfield configuration | ||
CARFIELD_CONFIG ?= carfield_l2dual_secure_pulp_periph_can | ||
CARFIELD_CONFIG ?= carfield_l2dual_secure_pulp_periph_can_streamer | ||
|
||
# bender targets | ||
common_targs += -t cva6 | ||
|
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
95 changes: 95 additions & 0 deletions
95
hw/configs/carfield_l2dual_secure_pulp_periph_can_streamer.sv
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,95 @@ | ||
// Copyright 2022 ETH Zurich and University of Bologna. | ||
// Solderpad Hardware License, Version 0.51, see LICENSE for details. | ||
// SPDX-License-Identifier: SHL-0.51 | ||
// | ||
// Yvan Tortorella <[email protected]> | ||
|
||
package carfield_configuration; | ||
|
||
import cheshire_pkg::*; | ||
/********************* | ||
* AXI Configuration * | ||
********************/ | ||
//L2, port 0 | ||
localparam bit L2Port0Enable = 1; | ||
localparam doub_bt L2Port0Base = 'h78000000; | ||
localparam doub_bt L2Port0Size = 'h00200000; | ||
// L2, port 1 | ||
localparam bit L2Port1Enable = 1; | ||
localparam doub_bt L2Port1Base = L2Port0Base + L2Port0Size; | ||
localparam doub_bt L2Port1Size = L2Port0Size; | ||
// Safety Island | ||
localparam bit SafetyIslandEnable = 0; | ||
localparam doub_bt SafetyIslandBase = 'h60000000; | ||
localparam doub_bt SafetyIslandSize = 'h00800000; | ||
// Ethernet | ||
localparam bit EthernetEnable = 0; | ||
localparam doub_bt EthernetBase = 'h20000000; | ||
localparam doub_bt EthernetSize = 'h00001000; | ||
// Peripherals | ||
localparam bit PeriphEnable = 1; | ||
localparam doub_bt PeriphBase = 'h20001000; | ||
localparam doub_bt PeriphSize = 'h00009000; | ||
// Spatz cluster | ||
localparam bit SpatzClusterEnable = 0; | ||
localparam doub_bt SpatzClusterBase = 'h51000000; | ||
localparam doub_bt SpatzClusterSize = 'h00800000; | ||
// PULP cluster | ||
localparam bit PulpClusterEnable = 1; | ||
localparam doub_bt PulpClusterBase = 'h50000000; | ||
localparam doub_bt PulpClusterSize = 'h00800000; | ||
// Security Island | ||
localparam bit SecurityIslandEnable = 1; | ||
localparam doub_bt SecurityIslandBase = 'h0; | ||
localparam doub_bt SecurityIslandSize = 'h0; | ||
// Mailbox | ||
localparam bit MailboxEnable = 1; | ||
localparam doub_bt MailboxBase = 'h40000000; | ||
localparam doub_bt MailboxSize = 'h00001000; | ||
/********************* | ||
* APB Configuration * | ||
********************/ | ||
// Can | ||
localparam bit CanEnable = 1; | ||
localparam doub_bt CanBase = 'h20001000; | ||
localparam doub_bt CanSize = 'h00001000; | ||
// Streamer | ||
localparam bit StreamerEnable = 1; | ||
localparam doub_bt StreamerApbBase = 'h20029000; | ||
localparam doub_bt StreamerApbSize = 'h00008000; | ||
// System Timer | ||
localparam doub_bt SystemTimerBase = 'h20004000; | ||
localparam doub_bt SystemTimerSize = 'h00001000; | ||
// System Advanced Timer | ||
localparam doub_bt SystemAdvancedTimerBase = 'h20005000; | ||
localparam doub_bt SystemAdvancedTimerSize = 'h00001000; | ||
// System Watchdog | ||
localparam doub_bt SystemWatchdogBase = 'h20007000; | ||
localparam doub_bt SystemWatchdogSize = 'h00001000; | ||
// Hyperbus Config | ||
localparam doub_bt HyperBusBase = 'h20009000; | ||
localparam doub_bt HyperBusSize = 'h00001000; | ||
/************************ | ||
* RegBus Configuration * | ||
***********************/ | ||
// Platform control registers | ||
localparam doub_bt PcrsBase = 'h20010000; | ||
localparam doub_bt PcrsSize = 'h00001000; | ||
// PLL | ||
localparam bit PllCfgEnable = 1; | ||
localparam doub_bt PllCfgBase = 'h20020000; | ||
localparam doub_bt PllCfgSize = 'h00001000; | ||
// Padframe | ||
localparam bit PadframeCfgEnable = 1; | ||
localparam doub_bt PadframeCfgBase = 'h200A0000; | ||
localparam doub_bt PadframeCfgSize = 'h00001000; | ||
// L2 ECC | ||
localparam bit L2EccCfgEnable = 1; | ||
localparam doub_bt L2EccCfgBase = 'h200B0000; | ||
localparam doub_bt L2EccCfgSize = 'h00001000; | ||
// Streamer | ||
localparam bit StreamerCfgEnable = StreamerEnable; | ||
localparam doub_bt StreamerCfgBase = 'h20021000; | ||
localparam doub_bt StreamerCfgSize = 'h00008000; | ||
|
||
endpackage |
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