Files
gem5/configs/example/lupv
Bobby R. Bruce 01623fac68 stdlib,configs,tests: Remove deprecated Resource classes usage (#102)
* stdlib,configs,tests: Remove `Resource` class use

This class is deprecated, but was still used in various example
configuration scriots and tests. This patch replaces it with the
`obtain_resource` function.

Change-Id: I0c89bf17783ccaaafc18072aaeefb5d1e207bc55

* configs: Remove `CustomDiskImageResource` use

The class is deprecated but was still used in the SPEC example scripts.
This patch replaces it with the `DiskImageResource` class.

Change-Id: Ie0697fe59a3d737b05eb45ff3bc964f42b0387e0

* configs,tests: Remove `CustomResource` use

This class is deprecated but was still used in example scripts and
mentioned, incorrectly, in comments in the pyunit tests. This patch
removes these.

Change-Id: Icb6d02f47a5b72cd58551e5dcd59cc72d6a91a01

* stdlib: Remove '\' in Workload docstring example

This example shows how to use the Workload. The backslash is not correct Python and would fail if used in this way.

Co-authored-by: Jason Lowe-Power <jason@lowepower.com>

---------

Co-authored-by: Jason Lowe-Power <jason@lowepower.com>
2023-07-20 23:08:39 -07:00
..

README

This README details how to build a RISCV full system that utilizes the lupIO devices. The LupIO devices were created by Professor Joël Porquet-Lupine, and more information about the device can be found here. The specs for each individual device can be found here, and the Linux drivers for each of these devices can be found here.

To build the RISCV gem5 binary execute:

scons build/RISCV/gem5.opt

Then, to run the LupIO example execute:

.build/RISCV/gem5.opt configs/example/lupv/run_lupv.py  [cpu type] [num cpus]

Note: valid cpu types are atomic and timing for now.

For example:

gem5/build/RISCV/gem5.opt configs/example/lupv/run_lupv.py atomic 1

You can observe the stdout of the simulated system in m5out/system.terminal. Then, you can open up a separate terminal and use m5term to connect to the simulated console. The port number will be specified in the gem5 simulation as 0: system.remote_gdb: listening for remote gdb on port <port>

example:

m5term localhost 3456

This should allow you to run busybox, in which you can see the LupIO device at work!