Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zirgen/circuit/rv32im/v2/dsl/inst_ecall.zir
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ component ECallHostReadSetup(cycle: Reg, input: InstInput) {
len.high = 0;
// Get the 'returned' length
newLen := NondetU16Reg(HostReadPrepare(fd.low, len.low));
// Verify it's less than or equal to the the input length
// Verify it's less than or equal to the input length
diff := U16Reg(len.low - newLen);
// Write back to A0
MemoryWrite(cycle, MachineRegBase() + RegA0(), ValU32(newLen, 0));
Expand Down Expand Up @@ -109,7 +109,7 @@ component ECallHostWrite(cycle: Reg, input: InstInput) {
len.high = 0;
// Do write extern and get return length
newLen := NondetU16Reg(HostWrite(fd.low, ptr, len.low));
// Verify it's less than or equal to the the input length
// Verify it's less than or equal to the input length
diff := U16Reg(len.low - newLen);
// Write back to A0
MemoryWrite(cycle, MachineRegBase() + RegA0(), ValU32(newLen, 0));
Expand Down