Skip to content

Commit

Permalink
correct riscv_opcodes PROGRAM_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalancea committed Nov 20, 2024
1 parent 6afdc86 commit 7747cba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ceno_zkvm/examples/riscv_opcodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use ceno_zkvm::{
instructions::riscv::{MemPadder, MmuConfig, Rv32imConfig, constants::EXIT_PC},
scheme::{mock_prover::MockProver, prover::ZKVMProver},
state::GlobalState,
structs::ProgramParams,
tables::{MemFinalRecord, ProgramTableCircuit},
};
use clap::Parser;
Expand Down Expand Up @@ -119,7 +120,11 @@ fn main() {
// keygen
let pcs_param = Pcs::setup(1 << MAX_NUM_VARIABLES).expect("Basefold PCS setup");
let (pp, vp) = Pcs::trim(pcs_param, 1 << MAX_NUM_VARIABLES).expect("Basefold trim");
let mut zkvm_cs = ZKVMConstraintSystem::default();
let program_params = ProgramParams {
program_size: PROGRAM_SIZE,
..Default::default()
};
let mut zkvm_cs = ZKVMConstraintSystem::new_with_platform(program_params);

let config = Rv32imConfig::<E>::construct_circuits(&mut zkvm_cs);
let mmu_config = MmuConfig::<E>::construct_circuits(&mut zkvm_cs);
Expand Down

0 comments on commit 7747cba

Please sign in to comment.