chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

Where I can check the addess of the various Peripherials (PLIC , CLINT) connected to Control Bus.

Open ashu-bitspilani opened this issue 3 years ago • 2 comments

Background Work

Chipyard Version and Hash

Release: 1.5.0 Hash: a6a6a6

OS Setup

Ex: Output of uname -a + lsb_release -a + printenv + conda list

Other Setup

Ex: Prior steps taken / Documentation Followed / etc...

Current Behavior

Hi As I understand the each peripherial devies that connect to Control Bus has its own address respectively. I want to change these address of peripheral devices like BootRom, PLIC, CLINT and Debug. But I am unable to find all of these.

image

Expected Behavior

Where I can find all of these address so that I can change as per my need

Other Information

No response

ashu-bitspilani avatar Dec 01 '23 07:12 ashu-bitspilani

Hi,

The memory address of CLINT and PLIC is specified by the RISC-V specification to be fixed at 0x0200_0000 and 0x0C00_0000, respectively.

For other memory devices like BootROM, UART, etc., please refer to their Config fragments. For example, the BootROM fragment is defined here, so to change BootROM address, you can do something like

class ChipLikeRocketConfig extends Config(
  // other config fragments ...
  new chipyard.config.WithBootROM(address = 0x10000 /* set your custom address here */) ++                                // use default bootrom
  // other config fragments ...
)

T-K-233 avatar Dec 01 '23 08:12 T-K-233

@T-K-233 Thanks for your reply. I have searched everything and I have found out every addresses. But I am not able to find out the address of Controlbus and TLtoAXI.

ashu-bitspilani avatar Dec 04 '23 10:12 ashu-bitspilani