-
Notifications
You must be signed in to change notification settings - Fork 12
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
[P2] Installation and Data Preloading Issue #11
Comments
Hi shourovrm,
Thanks for your questions again. Will update the README. |
TODO:
|
Hi @yuqisun, I think this would be much easier than #22, and would help you understand and get familiar with how the constant/parameter is pre-stored in the ConstQueue. Would you be interested in finishing this issue/feature first? If not, I can take this over. Basically, we can rename VectorCGRA/controller/ControllerRTL.py Line 120 in 845e3c0
recv_pkt_queue and send_to_cgra_ring_pkt , respectively, and make them not only be able to send ctrl pkt, but also be able to send const pkt. Once each tile receives the pkg, const would be pushed into the ConstQueue VectorCGRA/mem/const/ConstQueueRTL.py Line 30 in 845e3c0
VectorCGRA/mem/ctrl/CtrlMemDynamicRTL.py Line 45 in 845e3c0
How does this sound? |
Hi, thanks and please let me try first. Do I need wait for your clean and en/rdy PR then fork from master? |
You can just checkout to that outstanding PR. Once the functionality is done, you can modify https://github.com/tancheng/VectorCGRA/blob/845e3c0e07902c286da3cb641c3ad1692027a779/controller/test/ControllerRTL_test.py and https://github.com/tancheng/VectorCGRA/blob/845e3c0e07902c286da3cb641c3ad1692027a779/systolic/test/Cgra3x3MemRightAndBottomRTL_matmul_2x2_test.py for verification. |
Hi Cheng, I draw a flow graph for the ControllerRTL, could you help double review if anything wrong? And what I need to do is the add extra type (ConstantPktType which can use DataType directly?) from cpu to controller right? Then save both CtrlPktType and DataType in RegisterFile? And connect reg_file.rdata[0] with something, and update reg_file in @update? |
Correct!
Nope. The DataType needs to go to https://github.com/tancheng/VectorCGRA/blob/master/mem/const/ConstQueueRTL.py. So we need to add register_file into Besides the data memory you draw, the controller also connects to another ctrl_ring (instead of the router u draw that is belonging to the multi-cgra router), and the |
…ueueDynamicRTL.py
…ueueDynamicRTL.py
…ueueDynamicRTL.py
…s full, will stop receiving new data.
…s full, will stop receiving new data.
… from ConstQueueDynamicRTL.py
… from ConstQueueDynamicRTL.py
… from ConstQueueDynamicRTL.py
… from ConstQueueDynamicRTL.py
… from ConstQueueDynamicRTL.py
Hi Tan!
1) Installation instructions considering the current changes
I have been checking your CGRA-Flow repository (alongside its sub-modules like VectorCGRA, CGRA-Mapper etc.) for the past few months. Its great to see that you have integrated vcd generation recently. However, I've noticed that the current installation instructions for both VectorCGRA are outdated due to these new changes.
For example, when testing the
TileRTL_test.py
, it seems that the mentioned version of pymtl3 in the README does not include theVerilogTranslationPass
package (it rather has theTranslationImportPass
package).So, could you please update the installation instructions by specifying the correct pymtl3 version that you are using? It would also be great if the mentioned docker container is also updated to integrate the changes.
2) Preloading data to CGRA
I previously formulated a simpler design flow, which uses the config.json generated by CGRA-Mapper, pass its src_opt following the
CGRATemplateRTL_test
, and later generate VCD files from it.However, I'm struggling to figure out how to preload data into the tiles and the SPM. Specifically, I tried preloading constants and input values for the
FIR
test but was unable to see these values in the generated VCD file. On the other hand, simpler tests likeVectorAdderRTL_test
show both input and output data clearly in the VCD.Would you please provide some guidance or documentation on how to preload data into the CGRA tiles and SPM for and test its output?
The text was updated successfully, but these errors were encountered: