How to config xLen in rocket core?
up vote
0
down vote
favorite
I am trying to use rocket core as a baseline core and add some additional features for research purpose, but I can't find where or how to change the value "xLen".
riscv chisel rocket-chip
add a comment |
up vote
0
down vote
favorite
I am trying to use rocket core as a baseline core and add some additional features for research purpose, but I can't find where or how to change the value "xLen".
riscv chisel rocket-chip
Hi , Welcome to stack overflow .Please take the time to read to see How to Ask
– core114
Nov 9 at 4:57
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to use rocket core as a baseline core and add some additional features for research purpose, but I can't find where or how to change the value "xLen".
riscv chisel rocket-chip
I am trying to use rocket core as a baseline core and add some additional features for research purpose, but I can't find where or how to change the value "xLen".
riscv chisel rocket-chip
riscv chisel rocket-chip
asked Nov 9 at 3:54
Shibo Chen
152
152
Hi , Welcome to stack overflow .Please take the time to read to see How to Ask
– core114
Nov 9 at 4:57
add a comment |
Hi , Welcome to stack overflow .Please take the time to read to see How to Ask
– core114
Nov 9 at 4:57
Hi , Welcome to stack overflow .Please take the time to read to see How to Ask
– core114
Nov 9 at 4:57
Hi , Welcome to stack overflow .Please take the time to read to see How to Ask
– core114
Nov 9 at 4:57
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Rocket Chip uses a default XLen
of 64 in it's DefaultConfig
. However, this can be changed to 32 via a different top-level System configuration of DefaultRV32Config
.
If you're working with the Rocket Chip emulator, you can compile these two different configurations with
cd emulator
CONFIG=DefaultConfig make
CONFIG=DefaultRV32Config make
For reference, take a look at the Rocket Chip System configurations defined in the system
package as well as the subsystem
configurations:
src/main/scala/system/Configs.scala
src/main/scala/subsystem/Configs.scala
The former defines DefaultConfig
and DefaultRV32Config
. The latter defines WithRV32
. WithRV32
is what changes XLen
to 32 (and also sets fLen
to 32). Alternatively, you can replicate the behavior of WithRV32
in your own subclass of Config
.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Rocket Chip uses a default XLen
of 64 in it's DefaultConfig
. However, this can be changed to 32 via a different top-level System configuration of DefaultRV32Config
.
If you're working with the Rocket Chip emulator, you can compile these two different configurations with
cd emulator
CONFIG=DefaultConfig make
CONFIG=DefaultRV32Config make
For reference, take a look at the Rocket Chip System configurations defined in the system
package as well as the subsystem
configurations:
src/main/scala/system/Configs.scala
src/main/scala/subsystem/Configs.scala
The former defines DefaultConfig
and DefaultRV32Config
. The latter defines WithRV32
. WithRV32
is what changes XLen
to 32 (and also sets fLen
to 32). Alternatively, you can replicate the behavior of WithRV32
in your own subclass of Config
.
add a comment |
up vote
0
down vote
accepted
Rocket Chip uses a default XLen
of 64 in it's DefaultConfig
. However, this can be changed to 32 via a different top-level System configuration of DefaultRV32Config
.
If you're working with the Rocket Chip emulator, you can compile these two different configurations with
cd emulator
CONFIG=DefaultConfig make
CONFIG=DefaultRV32Config make
For reference, take a look at the Rocket Chip System configurations defined in the system
package as well as the subsystem
configurations:
src/main/scala/system/Configs.scala
src/main/scala/subsystem/Configs.scala
The former defines DefaultConfig
and DefaultRV32Config
. The latter defines WithRV32
. WithRV32
is what changes XLen
to 32 (and also sets fLen
to 32). Alternatively, you can replicate the behavior of WithRV32
in your own subclass of Config
.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Rocket Chip uses a default XLen
of 64 in it's DefaultConfig
. However, this can be changed to 32 via a different top-level System configuration of DefaultRV32Config
.
If you're working with the Rocket Chip emulator, you can compile these two different configurations with
cd emulator
CONFIG=DefaultConfig make
CONFIG=DefaultRV32Config make
For reference, take a look at the Rocket Chip System configurations defined in the system
package as well as the subsystem
configurations:
src/main/scala/system/Configs.scala
src/main/scala/subsystem/Configs.scala
The former defines DefaultConfig
and DefaultRV32Config
. The latter defines WithRV32
. WithRV32
is what changes XLen
to 32 (and also sets fLen
to 32). Alternatively, you can replicate the behavior of WithRV32
in your own subclass of Config
.
Rocket Chip uses a default XLen
of 64 in it's DefaultConfig
. However, this can be changed to 32 via a different top-level System configuration of DefaultRV32Config
.
If you're working with the Rocket Chip emulator, you can compile these two different configurations with
cd emulator
CONFIG=DefaultConfig make
CONFIG=DefaultRV32Config make
For reference, take a look at the Rocket Chip System configurations defined in the system
package as well as the subsystem
configurations:
src/main/scala/system/Configs.scala
src/main/scala/subsystem/Configs.scala
The former defines DefaultConfig
and DefaultRV32Config
. The latter defines WithRV32
. WithRV32
is what changes XLen
to 32 (and also sets fLen
to 32). Alternatively, you can replicate the behavior of WithRV32
in your own subclass of Config
.
answered Nov 9 at 16:36
seldridge
62549
62549
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219637%2fhow-to-config-xlen-in-rocket-core%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hi , Welcome to stack overflow .Please take the time to read to see How to Ask
– core114
Nov 9 at 4:57