Skip to content

How to fix coq error in riscv_duopod? #354

Closed Answered by bacam
nazar-codethink asked this question in Q&A
Discussion options

You must be logged in to vote

The Coq target for the main RISC-V needs to be updated, which is causing the problem that you're seeing. Instead, add a file called riscv_duopod_extras.v containing

From Sail Require Import Base.

Definition MEMr {rv e} addrsize size (hexRAM addr : mword addrsize) : monad rv (mword (8 * size)) e := read_mem Read_plain addrsize addr size.

and build it all using

sail -coq -coq_lib riscv_duopod_extras -o riscv_duopod riscv_duopod.sail
coqc riscv_duopod_extras.v
coqc riscv_duopod_types.v
coqc riscv_duopod.v

and it should work.

I'll add this to the Sail repository soon, and later update the main Sail RISC-V definitions.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bacam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants