Skip to content
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

Trying Chiffre in Rocket Chip #32

Open
harispap2 opened this issue Aug 29, 2023 · 2 comments
Open

Trying Chiffre in Rocket Chip #32

harispap2 opened this issue Aug 29, 2023 · 2 comments

Comments

@harispap2
Copy link

Hello,
I am currently member of a university project in which we utilize the Chipyard framework for simulating CPU designs etc.
The chipyard framework contains RocketChip (the source code of which is located inside the directory of Chipyard and is the same with the source of Rocket on its repository).
The issue, which I don't think has to deal with Chipyard itself, but rather an incompatibility or a misunderstanding from my side is with using Rocket Custom Coprocessor (RoCC).
To be precise, I run the following commands, as mentioned in the readme:

git clone https://github.com/freechipsproject/rocket-chip $ROCKETCHIP_DIR
cd $ROCKETCHIP_DIR
git clone https://github.com/ibm/chiffre chiffre
git apply le-chiffre/patches/rocket-chip-fault-cycle.patch
cd emulator
make CONFIG=LeChiffreConfig ROCKETCHIP_ADDONS="chiffre/le-chiffre chiffre"

Even when trying outside of the chiffre directory, inside an empty directory, after (freshly) cloning both rocket chip and chiffre the patch always fails to apply and I receive the error mentioned on the screenshot bellow:
s
A sidenote: after the git clone command, chiffre is cloned inside a directory called "chiffre", in which i have to enter before running the patch apply command.
Thanks in advance and excuse my ignorance as I am pretty new in processor testing.

@rbertran
Copy link
Collaborator

FYI @seldridge , not sure if you are automatically notified.

@harispap2
Copy link
Author

harispap2 commented Sep 10, 2023

I decided to try chiffre in standalone rocket and apply the changes specified in the patch manually. However, I think that some rocket libraries have changed, as I now receive the following errors during making of rocket with the chiffre addon (ROCKETCHIP_ADDONS="chiffre/le-chiffre chiffre").
(The output is included as a text file)
2023-09-11_01-13

out.txt

@harispap2 harispap2 changed the title Trying Chiffre in Rocket Chip inside Chipyard Trying Chiffre in Rocket Chip Sep 10, 2023
@rbertran rbertran assigned rbertran and unassigned rbertran Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants