Skip to content

6 add binary reader for cycle accurate simulator #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lusssse
Copy link
Collaborator

@lusssse lusssse commented Apr 29, 2025

In this branch, I've implemented BinaryReader, a Scala file that reads binary files and creates a Map that associates, for the data (INP, WGT, OUT), a logical address and the values of the vectors according to the element size, and for ACC and UOP, a physical address (in the DRAM) and the values of the vectors.

BinaryReaderTest tests to see if the binary files are correctly decoded, in a format CHISEL can read. The examples used can be found in resources/examples_compute.

I've also used BinaryReader in ComputeTest, so that the scratchpads can be built using the binary files instead of the json files.

For now, for each test, the base address of UOP and ACC should be input when building the DRAM scratchpad according to the physical base addresses given by compiler/data_definition/memory_addresses.py, depending on which test in ComputeTest we want to run.

I'd like you to check if the tests in BinaryReaderTest are sufficient to make sure the code runs correctly, and that the tests in ComputeTest work with binary files.

kevin-delmas and others added 30 commits April 8, 2025 11:37
…thub.com:onera/standalone-vta into 6-add-binary-reader-for-cycle-accurate-simulator
Add BinaryReader
Add Test on binary reader
Add integration to ComputeTest
lusssse and others added 26 commits April 29, 2025 16:10
…ed (version that works for layer1 but not for average_pooling in ComputeTest)
…g test in ComputeTest (the function no longer generates the right expected_out_sram for lenet5_layer1)
…nary files for layer1 and average_pooling are ok)
@AnthonyFaureGignoux AnthonyFaureGignoux merged commit 1a13d1d into main May 14, 2025
2 checks passed
@AnthonyFaureGignoux AnthonyFaureGignoux deleted the 6-add-binary-reader-for-cycle-accurate-simulator branch May 14, 2025 20:39
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.

Add binary reader for cycle accurate simulator
3 participants