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

REFACTOR: change bootaddr register address and PC reset vector address #1605

Merged
merged 5 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Customization/Boot-Process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Device Tree Binary (dtb) which details the components of the system.
The assembly for the BootROM code is located in
`generators/testchipip/src/main/resources/testchipip/bootrom/bootrom.S <https://github.com/ucb-bar/testchipip/blob/master/src/main/resources/testchipip/bootrom/bootrom.S>`_.
The BootROM address space starts at ``0x10000`` (determined by the ``BootROMParams`` key in the configuration) and execution starts at address
``0x10040`` (given by the linker script and reset vector in the ``BootROMParams``), which is marked by the ``_hang`` label in the BootROM assembly.
``0x10000`` (given by the linker script and reset vector in the ``BootROMParams``), which is marked by the ``_hang`` label in the BootROM assembly.

The Chisel generator encodes the assembled instructions into the BootROM
hardware at elaboration time, so if you want to change the BootROM code, you
Expand Down
2 changes: 1 addition & 1 deletion docs/Prototyping/Arty.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Probe an address on the target system:

.. code-block:: shell

./uart_tsi +tty=/dev/ttyUSBX +init_read=0x10040 none
./uart_tsi +tty=/dev/ttyUSBX +init_read=0x10000 none

Write some address before running a program:

Expand Down
2 changes: 1 addition & 1 deletion docs/Prototyping/NexysVideo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Probe an address on the target system:

.. code-block:: shell

./uart_tsi +tty=/dev/ttyUSBX +init_read=0x10040 none
./uart_tsi +tty=/dev/ttyUSBX +init_read=0x10000 none

Write some address before running a program:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import chipyard.{ExtTLMem}
* @param hang the power-on reset vector, i.e. the program counter will be set to this value on reset
* @param contentFileName the path to the BootROM image
*/
class WithBootROM(address: BigInt = 0x10000, size: Int = 0x10000, hang: BigInt = 0x10040) extends Config((site, here, up) => {
class WithBootROM(address: BigInt = 0x10000, size: Int = 0x10000, hang: BigInt = 0x10000) extends Config((site, here, up) => {
case BootROMLocated(x) => up(BootROMLocated(x), site)
.map(_.copy(
address = address,
Expand Down
Loading