Skip to content
Open
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
5 changes: 4 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ theme: just-the-docs
color_scheme: or1k
repository: openrisc/tutorials

include: ['debugging', 'de0_nano', 'docs', 'or1ksim', 'platform', 'sw']
include: [
'pages',
'resouce',
]
3 changes: 0 additions & 3 deletions de0_nano/.gitignore

This file was deleted.

14 changes: 7 additions & 7 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ or1k_interrupts_disable(void)
}
```

See the [newlib tutorial](newlib.html) for details on how to setup the newlib development
environment. Or checkout the [Quickstart tutorial](images.html) for docker images
See the [newlib tutorial](./pages/toolchains/newlib.html) for details on how to setup the newlib development
environment. Or checkout the [Quickstart tutorial](./pages/quick_start.html) for docker images
that have the newlib environment out of the box.

## Tools (partially required)
Expand All @@ -92,8 +92,8 @@ OpenRISC. You can install it as described

Featured in:

* [De0 Nano](de0_nano/) - De0 Nano FPGA development board platform tutorial.
* [Quickstart Images](images.html) - Docker verilog development environment
* [De0 Nano](./pages/platforms/fusesoc/) - De0 Nano FPGA development board platform tutorial.
* [Quickstart Images](./pages/quick_start.html) - Docker verilog development environment

### OpenOCD

Expand All @@ -103,8 +103,8 @@ install a current version.

Featured in:

* [De0 Nano](de0_nano/) - De0 Nano FPGA development board platform tutorial.
* [Debugging](docs/Debugging.html) - OpenOCD debugging cheat sheet.
* [De0 Nano](./pages/platforms/fusesoc/) - De0 Nano FPGA development board platform tutorial.
* [Debugging](./pages/platforms/debugging.html) - OpenOCD debugging cheat sheet.

### Quartus Prime

Expand All @@ -115,7 +115,7 @@ required for some tutorials.

Featured in:

* [De0 Nano](de0_nano/) - De0 Nano FPGA development board platform tutorial.
* [De0 Nano](./pages/platforms/fusesoc/) - De0 Nano FPGA development board platform tutorial.

For downloading the free version, visit the
[Intel website](https://www.intel.com/content/www/us/en/software-kit/849769/intel-quartus-prime-lite-edition-design-software-version-24-1-for-linux.html) and
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/Linux.md → pages/linux/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ halt; load_image vmlinux; reg r3 0; reg npc 0x100; resume
The kernel image is now available as an elf file called `vmlinux`. This file can be used as any other bare-metal program for OpenRISC. To test the Linux image, you can:
* Run it in the reference C simulator (or1ksim)
* Run it on a simulated RTL model (Most likely extremely slow, unless using verilator)
* [Load it to RAM on an FPGA board with a debugger](Debugging.html)
* [Load it to RAM on an FPGA board with a debugger](../platforms/debugging.html)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For relative links would it be better to use a variable link {{ site.url }}/platforms/debugging

* Program it to non-volatile flash on an FPGA board
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why put debugging under platform?

File renamed without changes.
2 changes: 1 addition & 1 deletion fusesoc.md → pages/platforms/fusesoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parent: Platforms

The FuseSoC build system, dependency manager and fpga integration platform
allows for easy creation of OpenRISC systems. If is featured in our
[Quick Start with Docker Images](images/) as our main fpga development
[Quick Start with Docker Images](../quick_start.html) as our main fpga development
platform. For in depth documentation see:

* [FuseSoC Manual](https://fusesoc.readthedocs.io/en/stable/index.html) - Full documentation.
Expand Down
8 changes: 4 additions & 4 deletions de0_nano/index.md → pages/platforms/fusesoc/de0_nano.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ parent: FuseSoC
* OpenOCD
* The quartus FPGA design software
* `fusesoc` - The [FuseSoC build system](../fusesoc.html).
* `or1k-elf-` Toolchain as installed in our [newlib tutorial](../newlib.html).
* `or1k-elf-` Toolchain as installed in our [newlib tutorial](../../toolchains/newlib.html).

#### Files

* [hello.c](../sw/hello/hello.c) - A Hello World test program.
* [timer.c](../sw/timer/timer.c) - A baremetal example using the OpenRISC timer api's provided by newlib.
* [hello.c](../../../resource/de0_nano/sw/hello/hello.c) - A Hello World test program.
* [timer.c](../../../resource/de0_nano/sw/timer/timer.c) - A baremetal example using the OpenRISC timer api's provided by newlib.

## DE0 Nano

Expand Down Expand Up @@ -46,7 +46,7 @@ computer. If you want to use UART, an extra dongle is needed. Any
USB-UART adapter can be used. You need to connect it to the header on
the bottom of the board as depicted below.

![uart](doc/uart.png "Connect UART to board")
![uart](../../../resource/images/uart.png "Connect UART to board")

### Setup the Environment

Expand Down
8 changes: 4 additions & 4 deletions or1ksim/index.md → pages/platforms/or1ksim.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ nav_order: 2

We will download these below.

- [or1ksim.cfg](or1ksim.cfg) - config needed for or1ksim
- [hello.c](../sw/hello/hello.c) - hello world program
- [timer.c](../sw/timer/timer.c) - timer program
- [or1ksim.cfg](../../resouce/or1ksim/or1ksim.cfg) - config needed for or1ksim
- [hello.c](../../resouce/de0_nano/sw/hello/hello.c) - hello world program
- [timer.c](../../resouce/de0_nano/sw/timer/timer.c) - timer program
- [or1ksim-2025-04-27.tar.gz](https://github.com/openrisc/or1ksim/releases/download/2025-04-27/or1ksim-2025-04-27.tar.gz) - The OpenRISC simulator

# or1ksim Tutorial
Expand Down Expand Up @@ -188,7 +188,7 @@ A second elapsed

## Next steps

Also checkout our tutorial on how to run [Linux on or1ksim](../docs/linux-on-or1ksim.html).
Also checkout our tutorial on how to run [Linux on or1ksim](../linux/linux-on-or1ksim.html).

## Further Reading

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all of resources/ could we just put them together with the pages? Any reason to move to this separate directory?

File renamed without changes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should de0_nano be under resources/platform/de0_nano?

File renamed without changes.
File renamed without changes.
File renamed without changes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or1ksim should be under platform right?

File renamed without changes.
File renamed without changes.
File renamed without changes.