Update the data model #67
Replies: 22 comments 47 replies
-
|
first test commit in test branch to move every outside of ui python |
Beta Was this translation helpful? Give feedback.
-
|
next step is to replace all the legacy code in UI file which reference oldCGRA, gloabl etc to use the multi cgra model class to fetch the right CGRA model ,and update/refresh UI to show the current selected CGRA. |
Beta Was this translation helpful? Give feedback.
-
|
second test commit to create multi-cgra model , and encapuslate per-cgra model param |
Beta Was this translation helpful? Give feedback.
-
|
Next step is to
|
Beta Was this translation helpful? Give feedback.
-
|
third commit to use multi-cgra model object to refresh per-cgra model UI, this approach will have memory on which per-cgra model changes to what. and persist the UI when user click. below Gif shows user clicks cgra 0, update tiles, and switch to cgra 1, titles update, clicked back to cgra 0, titles update again |
Beta Was this translation helpful? Give feedback.
-
|
Next step is update multi-cgra param when cgra rows and cols are updated |
Beta Was this translation helpful? Give feedback.
-
|
Last step done In this commit, I update the data model for the upper multi-cgra-param and refresh the UI accordingly.
Later improvement, since the entire UI shifts, consider launching the loading page again in this case |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hi @richardissuperman and @yuqisun, I am thinking leverging VS code as master, but somehow VS code can invoke our GUI (invoking docker or VS code running in a linux docker if possible?) and leverage VS code's builtin support of AI agents: https://code.visualstudio.com/blogs/2025/04/07/agentMode. In this way, we don't need build our own GUI or agent interface to interact with GUI. WDYT? |
Beta Was this translation helpful? Give feedback.
-
|
Hi Cheng
I think thats helpful at the code base level, but not gonna be helpful for
longer term vision?
Example:
1. If you ask the agent please help to build a 3X3 multi cgra instead of 4X4
I believe this agent can do that by executing our python code with 3X3
parameters.
2. But if you say some vague command like : I want to build a multi-cgra
with xxx constraint and save power in xxx area. (recall we had a brief
conversation about this vague commands )
I dont think this code agent can help?
Above is my naive understanding
…On Thu, May 15, 2025 at 7:25 PM Cheng Tan ***@***.***> wrote:
Hi @richardissuperman <https://github.com/richardissuperman> and @yuqisun
<https://github.com/yuqisun>, I am thinking leverging VS code as master,
but somehow VS code can invoke our GUI (invoking docker or VS code running
in a linux docker if possible?) and leverage VS code's builtin support of
AI agents: https://code.visualstudio.com/blogs/2025/04/07/agentMode.
In this way, we don't need build our own GUI or agent interface to
interact with GUI. WDYT?
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABI5PAJQ4MB34D4GEWDKFGT26VEBPAVCNFSM6AAAAAB3AQIJ7GVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJWGU2TMNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Oh mcp server! That may work, let me chat with shumin on this, she was
working on related topics
…On Thu, May 15, 2025 at 10:26 PM Cheng Tan ***@***.***> wrote:
I thought VS code supports MCP
https://modelcontextprotocol.io/introduction, so easily to enable
interaction across agents. I just try to leverage as an interface to enable
that interaction, e.g., I want to build a multi-cgra with xxx constraint
and save power in xxx area. VS code would parse this and issue MCP
command/pkt to our GUI or python functions.
Yes, our python interface should be able to decode that MCP command
anyways. I think I kind of treating VS code as an OS in this context..
—
Reply to this email directly, view it on GitHub
<#67 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABI5PAMREREUUCXNKLLQLTT26VZJTAVCNFSM6AAAAAB3AQIJ7GVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJWGY2TAMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
a test demo with MCP integrated. |
Beta Was this translation helpful? Give feedback.
-
|
++ @zsjiang99 for visibility |
Beta Was this translation helpful? Give feedback.
-
|
Hi @zsjiang99 @yuqisun @tancheng I had some brainstorm sessions today and have some ideas about using LLM agent for CGRA design
"I asked you to use xxxx configs to generate a multi cgra design, the estimate power consumption is xxx, compared to the current config which power consumption is xxx" Using above experiment data to generate prompts to the model.
@yuqisun one quick question i was trying to use master branch to get the synthesis working, but i saw below error Am i having a wrong configuration in the docker file or my path setting is wrong? thanks! |
Beta Was this translation helpful? Give feedback.
-
|
tancheng/mflowgen#1 approved and merged, thanks~! |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I've put together a simple initial version of a CGRA framework. The details are in our email—hope it can serve as a simple reference. |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, Let you know, please can use https://github.com/tancheng/VectorCGRA/tree/synthesis_test branch for synthesis test. Thanks, |
Beta Was this translation helpful? Give feedback.
-
|
Hi, @yuqisun @richardissuperman I noticed that this CGRA-Flow can directly generate SystemVerilog code. Does this mean that we don't need to focus on code generation, and can instead concentrate more on the architecture design? : ) |
Beta Was this translation helpful? Give feedback.
-
|
Hi @tancheng , I'm trying to synthesis 2x2 cgras and 2x2 tiles, it has been running over 6 hours and still running. I stated verilog of single CGRA (2x2) to compare, can see the quantities (# of wires, memory bits, cells...) are approximately 4 times difference, so looks make sense right (2x2_2x2 with single_cgra_2x2)? But the synthesis time is much longer than single. Looks as the complexity of the Verilog increases, the difficulty of synthesis does not grow linearly but rather exponentially? If so, may we test with single CGRA arch to collect data instead of multi CGRA? --- Also concern about large single CGRA (i.e., 8x8, 12x12, 16x16), will try that. Single cgra synthesis time details: tancheng/VectorCGRA#150 (comment) stat 2x2_2x2: More info: verilog_stat_2x2_2x2.txt stat single_2x2: More info: verilog_stat_1_cgra_2x2.txt Verilog(/WORK_REPO/CGRA-Flow/tools/mflowgen/designs/cgra/rtl/outputs): design.v.txt |
Beta Was this translation helpful? Give feedback.
-
|
Hi @tancheng ,
Still error. Any idea if I miss something?
|
Beta Was this translation helpful? Give feedback.
-
|
Place&Route |
Beta Was this translation helpful? Give feedback.
-
|
Hi @tancheng , P&R failed after 77+ hours as heavy routing congestion here, the worst part got 19 overflow, attached log snippet and whole congestion report below. And double checked verilog, it is using Do you think it's good to build our agent base on the last available image (20241028), so we can simultaneously accumulate data and fix this multi-cgra p&r issue.
Overflow: P&R Error: congestion.rpt: https://1drv.ms/u/c/a058f5f4a512f5b9/ERueZ7cusdZHsyYHUBdQTWQBxLDR2ltEAQq12LczjQ9PGA?e=yDQAq5 Verilog: CgraTemplateRTL.v.txt |
Beta Was this translation helpful? Give feedback.














Uh oh!
There was an error while loading. Please reload this page.
-
ParamCGRA was intended for a single CGRA design, now we are migrating to multi cgra, the data model shall evolve to
and each model shall hold a observer to observe data change and update its corresponding UI as well
the bind shall help to trigger the corresponding UI.
Each param shall have a scope of view (the parent of the UI view component in tkinter) and only update the minimized UI as possible
Beta Was this translation helpful? Give feedback.
All reactions