Skip to content

Conversation

jonathanpwang
Copy link
Contributor

@jonathanpwang jonathanpwang commented Apr 16, 2025

  • deleting Vm{Adapter,Core}Chip traits

  • no more records, directly use trace buffer

  • jal_lui chip is a demonstration of the new changes with working unit tests

  • changed unit tester

  • need to add some dummy volatile memory to the tester to balance based on touched addresses

Copy link
Contributor

@Golovanov399 Golovanov399 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understood most of it and left some comments about some things I didn't understand

config.max_constraint_degree as u32 - 1,
),
offline_memory,
memory_controller.offline_memory.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: or just .offline_memory()?

debug_assert!(block_size.is_power_of_two());
debug_assert_eq!(block_size % align, 0);
debug_assert_ne!(addr_space, 0);
debug_assert_eq!(align as u32, self.min_block_size[addr_space as usize]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we pass align then when we could just get it from self.min_block_size?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to do the memory lookup to self.min_block_size (maybe it stays in cache?) when it should be more like a constant

@jonathanpwang jonathanpwang marked this pull request as ready for review April 17, 2025 16:10
@jonathanpwang jonathanpwang merged commit eb1ad52 into feat/new-execution Apr 17, 2025
5 of 25 checks passed
@jonathanpwang jonathanpwang deleted the feat/remove-offline-logs branch April 17, 2025 16:10
jonathanpwang added a commit that referenced this pull request May 2, 2025
- deleting `Vm{Adapter,Core}Chip` traits
- no more records, directly use trace buffer
- jal_lui chip is a demonstration of the new changes with working unit
tests
- changed unit tester

- [x] need to add some dummy volatile memory to the tester to balance
based on touched addresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants