You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current architecture has a common memory-checking structure from which all chips must read and write.
Rather than having global memory-checking structures for all chips, a better approach will be to have separate memory-checking structures for each chip i.e. on chip instantiation, each chip will create its record-tracker.
After an instruction has finalized all its chip operations, we can combine the records into singular RAM and ROM records.
This removes the interior mutability hack while preserving the chip-first approach.
The text was updated successfully, but these errors were encountered:
Hi, this type definition well address the problem, however I feel like a slightly over-design. I proposed another alternative, aiming for mutability happened in just one place under a struct :)
Besides, to simplify, how about we unify OAMHandler & RamHandler into OAMHandler, and define ram_read/ram_write/ram_read_mixed,ram_write_mixed 4 new function in OAMHandler to aborb RamHandler logic in one place
define new ChipHandler to encaptulate all XXXhandlers internally. So the mutability borrow wont spread everywhere
After #80 each record-generating chip holds its underlying memory-checking structure in the following way:
The current architecture has a common memory-checking structure from which all chips must read and write.
Rather than having global memory-checking structures for all chips, a better approach will be to have separate memory-checking structures for each chip i.e. on chip instantiation, each chip will create its record-tracker.
After an instruction has finalized all its chip operations, we can combine the records into singular RAM and ROM records.
This removes the interior mutability hack while preserving the chip-first approach.
The text was updated successfully, but these errors were encountered: