Skip to content

Commit

Permalink
Merge pull request #18 from 0xPolygonHermez/fractasy_develop
Browse files Browse the repository at this point in the history
Add emulator/README.md with riscof testing documentation
  • Loading branch information
eduadiez authored Jul 24, 2024
2 parents 6a807f9 + ccae03d commit 4e65a98
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions book/SUMMARY.md
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)
19 changes: 19 additions & 0 deletions book/developer/ziskof.md
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.
19 changes: 19 additions & 0 deletions emulator/README.md
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.

0 comments on commit 4e65a98

Please sign in to comment.