-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from 0xPolygonHermez/fractasy_develop
Add emulator/README.md with riscof testing documentation
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# Summary | ||
|
||
- [Introduction](./introduction.md) | ||
|
||
# Getting Started | ||
|
||
- [Install](./getting_started/install.md) | ||
- [Quickstart](./getting_started/quickstart.md) | ||
|
||
# Developer Guide | ||
- [Ziskof](./developer/ziskof.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Ziskof | ||
|
||
## Riscof tests | ||
The following test generates the riscof test files, converts the corresponding .elf files into ZisK ROMs, and executes them providing the output in stdout for comparison against a reference RISCV implementation. This process is not trivial and has been semi-automatized. | ||
|
||
First, compile the ZisK Emulator: | ||
|
||
```sh | ||
$ cargo clean | ||
$ cargo build --release | ||
``` | ||
|
||
Second, download and run a docker image from the riscof repository to generate and run the riscof tests: | ||
|
||
```sh | ||
$ docker run --rm -v ./target/release/ziskemu:/program -v ./riscof/:/workspace/output/ -ti hermeznetwork/ziskof:latest | ||
``` | ||
|
||
The test can take a few minutes to complete. Any error would be displayed in red. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ZisK Emulator | ||
|
||
## Riscof tests | ||
The following test generates the riscof test files, converts the corresponding .elf files into ZisK ROMs, and executes them providing the output in stdout for comparison against a reference RISCV implementation. This process is not trivial and has been semi-automatized. | ||
|
||
First, compile the ZisK Emulator: | ||
|
||
```sh | ||
$ cargo clean | ||
$ cargo build --release | ||
``` | ||
|
||
Second, download and run a docker image from the riscof repository to generate and run the riscof tests: | ||
|
||
```sh | ||
$ docker run --rm -v ./target/release/ziskemu:/program -v ./riscof/:/workspace/output/ -ti hermeznetwork/ziskof:latest | ||
``` | ||
|
||
The test can take a few minutes to complete. Any error would be displayed in red. |