-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ara integration in Cheshire (1) #112
base: main
Are you sure you want to change the base?
Changes from 4 commits
4002f27
be1ecaa
d264014
a4a9476
fc5dc4f
6a5cb03
f23088b
4db04de
dc79fa1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ dependencies: | |
clint: { git: "https://github.com/pulp-platform/clint.git", version: 0.2.0 } | ||
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.33.0 } | ||
common_verification: { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.0 } | ||
cva6: { git: "https://github.com/pulp-platform/cva6.git", rev: pulp-v1.0.0 } | ||
cva6: { git: "https://github.com/pulp-platform/cva6.git", rev: pulp-v1 } | ||
ara: { git: "https://github.com/pulp-platform/ara.git", rev: mp/cva6-pulpv1/rebase } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should also be merged and get a release before merging this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have released a second PR that will have tagged commits on |
||
iDMA: { git: "https://github.com/pulp-platform/iDMA.git", version: 0.5.1 } | ||
irq_router: { git: "https://github.com/pulp-platform/irq_router.git", version: 0.0.1-beta.1 } | ||
opentitan_peripherals: { git: "https://github.com/pulp-platform/opentitan_peripherals.git", version: 0.4.0 } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ chs-clean-deps: | |
###################### | ||
|
||
CHS_NONFREE_REMOTE ?= [email protected]:pulp-restricted/cheshire-nonfree.git | ||
CHS_NONFREE_COMMIT ?= f731b17 | ||
CHS_NONFREE_COMMIT ?= dc0a4e4c08d185829e7e7934fb458ed429cd10ec | ||
mp-17 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
CHS_PHONY += chs-nonfree-init | ||
chs-nonfree-init: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,7 @@ package cheshire_pkg; | |
bit Clic; | ||
bit IrqRouter; | ||
bit BusErr; | ||
bit Ara; | ||
// Parameters for Debug Module | ||
jtag_idcode_t DbgIdCode; | ||
dw_bt DbgMaxReqs; | ||
|
@@ -196,6 +197,9 @@ package cheshire_pkg; | |
aw_bt AxiRtNumAddrRegions; | ||
bit AxiRtCutPaths; | ||
bit AxiRtEnableChecks; | ||
// Parameters for Ara | ||
byte_bt AraNrLanes; | ||
word_bt AraVLEN; | ||
mp-17 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} cheshire_cfg_t; | ||
|
||
////////////////// | ||
|
@@ -295,6 +299,7 @@ package cheshire_pkg; | |
typedef struct packed { | ||
aw_bt [2**MaxCoresWidth-1:0] cores; | ||
aw_bt dbg; | ||
aw_bt ara; | ||
aw_bt dma; | ||
aw_bt slink; | ||
aw_bt vga; | ||
|
@@ -308,6 +313,7 @@ package cheshire_pkg; | |
int unsigned i = 0; | ||
for (int j = 0; j < cfg.NumCores; j++) begin ret.cores[i] = i; i++; end | ||
ret.dbg = i; | ||
if (cfg.Ara) begin i++; ret.ara = i; end | ||
if (cfg.Dma) begin i++; ret.dma = i; end | ||
if (cfg.SerialLink) begin i++; ret.slink = i; end | ||
if (cfg.Vga) begin i++; ret.vga = i; end | ||
|
@@ -499,9 +505,9 @@ package cheshire_pkg; | |
XF8ALT : 0, | ||
RVA : 1, | ||
RVB : 0, | ||
RVV : 0, | ||
RVV : cfg.Ara, | ||
RVC : 1, | ||
RVH : 1, | ||
RVH : ~cfg.Ara, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If there are complex parameterization constraints affecting the rest of the system (which is okay generally), we need to talk these over offline and document them carefully. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we can discuss this offline! |
||
RVZCB : 1, | ||
XFVec : 0, | ||
CvxifEn : 0, | ||
|
@@ -612,6 +618,7 @@ package cheshire_pkg; | |
Clic : 0, | ||
IrqRouter : 0, | ||
BusErr : 1, | ||
Ara : 0, | ||
// Debug | ||
DbgIdCode : CheshireIdCode, | ||
DbgMaxReqs : 4, | ||
|
@@ -669,6 +676,9 @@ package cheshire_pkg; | |
AxiRtWBufferDepth : 16, | ||
AxiRtNumAddrRegions : 2, | ||
AxiRtCutPaths : 1, | ||
// Ara | ||
AraNrLanes : 2, | ||
AraVLEN : 2048, | ||
// All non-set values should be zero | ||
default: '0 | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to make new release here; pointing to a moving branch head is not a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have released a second PR that will have tagged commits on
main
branches.