Skip to content

Commit

Permalink
follow load-store naming rule, renaming register_read to register_load
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiWu123 committed Aug 2, 2024
1 parent cfe21fc commit 3037902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion singer-utils/src/chip_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub trait StackChipOperations<Ext: ExtensionField>: OAMOperations<Ext> {
}

pub trait RegisterChipOperations<Ext: ExtensionField>: OAMOperations<Ext> {
fn register_read(
fn register_load(
&mut self,
circuit_builder: &mut CircuitBuilder<Ext>,
register_id: &[CellId],
Expand Down
2 changes: 1 addition & 1 deletion singer-utils/src/chip_handler/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::structs::{RAMHandler, RAMType};
use super::{RAMOperations, RegisterChipOperations};

impl<Ext: ExtensionField> RegisterChipOperations<Ext> for RAMHandler<Ext> {
fn register_read(
fn register_load(
&mut self,
circuit_builder: &mut CircuitBuilder<Ext>,
register_id: &[CellId],
Expand Down
4 changes: 2 additions & 2 deletions singer/src/instructions/riscv/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ impl<E: ExtensionField> Instruction<E> for AddInstruction {
let rs2 = &phase0[Self::phase0_rs2()];
let rd = &phase0[Self::phase0_rd()];
let prev_rd_value = &phase0[Self::phase0_prev_rd_value()];
ram_handler.register_read(
ram_handler.register_load(
&mut circuit_builder,
rs1,
prev_rs1_ts.values(),
memory_ts.values(),
&phase0[Self::phase0_addend_0()],
);
ram_handler.register_read(
ram_handler.register_load(
&mut circuit_builder,
rs2,
prev_rs2_ts.values(),
Expand Down

0 comments on commit 3037902

Please sign in to comment.