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
I'm trying to simulate a 2D convolution for 1920x1080 and 640x480 images. This requires 2073600 example inputs and outputs for the 1920x1080 image and 307200 inputs and outputs for the 640x480 image. This many expect calls causes Verilator to crash because the c++ file is so large. My Chisel backend runs successfully because it can lazily load each input and output from a file on the necessary clock cycle. Fault cannot currently do this as the staged metaprogramming approach puts all inputs into a c++ file.
Can you add a call to load inputs and outputs from a file?
The text was updated successfully, but these errors were encountered:
tester.file_open opens a file and returns a handle
tester.file_read reads a value from a file given a handle (usually done inside a loop). You can use the chunk_size parameter to file_open to configure the size of each read
loop.file_write writes data to a file (again usually done inside a loop)
I'm trying to simulate a 2D convolution for 1920x1080 and 640x480 images. This requires 2073600 example inputs and outputs for the 1920x1080 image and 307200 inputs and outputs for the 640x480 image. This many expect calls causes Verilator to crash because the c++ file is so large. My Chisel backend runs successfully because it can lazily load each input and output from a file on the necessary clock cycle. Fault cannot currently do this as the staged metaprogramming approach puts all inputs into a c++ file.
Can you add a call to load inputs and outputs from a file?
The text was updated successfully, but these errors were encountered: