|
24 | 24 | CANVAS_LINE_COLOR = "white"
|
25 | 25 | MULTI_CGRA_FRAME_COLOR = "#14375E"
|
26 | 26 | MULTI_CGRA_TILE_COLOR = "#1F538D"
|
| 27 | +MULTI_CGRA_TXT_COLOR = "white" |
27 | 28 |
|
28 | 29 | if args.theme:
|
29 | 30 | # print(f'Input theme argument: {args.theme}')
|
|
34 | 35 | CANVAS_LINE_COLOR = "black"
|
35 | 36 | MULTI_CGRA_FRAME_COLOR = "#325882"
|
36 | 37 | MULTI_CGRA_TILE_COLOR = "#3A7EBF"
|
| 38 | + MULTI_CGRA_TXT_COLOR = "black" |
37 | 39 |
|
38 | 40 | from VectorCGRA.cgra.translate.CGRATemplateRTL_test import *
|
39 | 41 |
|
|
53 | 55 | PORT_SOUTHEAST = 6
|
54 | 56 | PORT_SOUTHWEST = 7
|
55 | 57 | PORT_DIRECTION_COUNTS = 8
|
56 |
| -CGRA_ROWS = 2 |
57 |
| -CGRA_COLS = 2 |
| 58 | +CGRA_ROWS = 3 |
| 59 | +CGRA_COLS = 3 |
58 | 60 | ROWS = 4
|
59 | 61 | COLS = 4
|
60 | 62 | INTERVAL = 10
|
@@ -1616,7 +1618,7 @@ def create_multi_cgra_panel(master, cgraRows=2, cgraCols=2):
|
1616 | 1618 | multiCgraCanvas.create_window(x, y, window=cgraFrame, height=cgraSquareLength, width=cgraSquareLength,
|
1617 | 1619 | anchor="nw")
|
1618 | 1620 | multiCgraCanvas.create_text(x + cgraSquareLength/2 + 5, y + cgraSquareLength + 10, font=customtkinter.CTkFont(weight="bold"),
|
1619 |
| - text=f"CGRA {cgraId}") |
| 1621 | + text=f"CGRA {cgraId}", fill=MULTI_CGRA_TXT_COLOR) |
1620 | 1622 | cgraId = cgraId + 1
|
1621 | 1623 |
|
1622 | 1624 | # todo
|
@@ -1740,14 +1742,14 @@ def create_multi_cgra_config_panel(master):
|
1740 | 1742 | multiCgraRowsLabel.grid(row=3, column=0, padx=5, sticky="w")
|
1741 | 1743 | multiCgraRowsLabelEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
|
1742 | 1744 | multiCgraRowsLabelEntry.grid(row=3, column=1, padx=5)
|
1743 |
| - multiCgraRowsLabelEntry.insert(0, str(2)) |
| 1745 | + multiCgraRowsLabelEntry.insert(0, str(3)) |
1744 | 1746 | widgets["multiCgraRowsLabelEntry"] = multiCgraRowsLabelEntry
|
1745 | 1747 |
|
1746 | 1748 | multiCgraColumnsLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Multi-CGRA\nColumns:')
|
1747 | 1749 | multiCgraColumnsLabel.grid(row=4, column=0, padx=5, sticky="w")
|
1748 | 1750 | multiCgraColumnsEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
|
1749 | 1751 | multiCgraColumnsEntry.grid(row=4, column=1, padx=5)
|
1750 |
| - multiCgraColumnsEntry.insert(0, str(2)) |
| 1752 | + multiCgraColumnsEntry.insert(0, str(3)) |
1751 | 1753 | widgets["multiCgraColumnsEntry"] = multiCgraColumnsEntry
|
1752 | 1754 |
|
1753 | 1755 | vectorLanesLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Vector Lanes:')
|
|
0 commit comments