Skip to content

Commit 4ec1560

Browse files
committed
Reversed Heuristic and Exhaustive buttons #54: add vector lanes and data bitwidth and some minor adjustment
1 parent f02efc0 commit 4ec1560

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

mode_dark_light.py

+20-8
Original file line numberDiff line numberDiff line change
@@ -1709,21 +1709,21 @@ def create_multi_cgra_config_panel(master):
17091709
multiCgraConfigPanel = customtkinter.CTkFrame(master, width=240)
17101710
multiCgraConfigPanel.grid_propagate(0)
17111711
multiCgraConfigPanel.grid(row=0, column=1, sticky="nsew")
1712-
for i in range(6):
1712+
for i in range(8):
17131713
multiCgraConfigPanel.rowconfigure(i, weight=1)
1714-
multiCgraConfigPanel.rowconfigure(6, weight=10)
1714+
multiCgraConfigPanel.rowconfigure(8, weight=10)
17151715
for i in range(2):
17161716
multiCgraConfigPanel.columnconfigure(i, weight=1)
17171717

17181718
multiCgraConfigLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Multi-CGRA Modeling',
17191719
font=customtkinter.CTkFont(size=FRAME_LABEL_FONT_SIZE, weight="bold"))
17201720
multiCgraConfigLabel.grid(row=0, column=0, columnspan=2, ipadx=5, pady=(5, 0), sticky="nw")
17211721

1722-
totalSRAMSizeLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Total SRAM (KBs):')
1722+
totalSRAMSizeLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Per-CGRA\nSRAM (KBs):')
17231723
totalSRAMSizeLabel.grid(row=1, column=0, padx=5, sticky="w")
17241724
totalSRAMSizeLabelEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
17251725
totalSRAMSizeLabelEntry.grid(row=1, column=1, padx=5)
1726-
totalSRAMSizeLabelEntry.insert(0, str(4))
1726+
totalSRAMSizeLabelEntry.insert(0, str(32))
17271727

17281728
interCgraTopologyLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Inter-CGRA\ntopology:')
17291729
interCgraTopologyLabel.grid(row=2, column=0, padx=5, sticky="w")
@@ -1750,8 +1750,20 @@ def create_multi_cgra_config_panel(master):
17501750
multiCgraColumnsEntry.insert(0, str(2))
17511751
widgets["multiCgraColumnsEntry"] = multiCgraColumnsEntry
17521752

1753+
vectorLanesLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Vector Lanes:')
1754+
vectorLanesLabel.grid(row=5, column=0, padx=5, sticky="w")
1755+
vectorLanesEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
1756+
vectorLanesEntry.grid(row=5, column=1, padx=5)
1757+
vectorLanesEntry.insert(0, str(4))
1758+
1759+
dataBitwidthLabel = customtkinter.CTkLabel(multiCgraConfigPanel, text='Data Bitwidth:')
1760+
dataBitwidthLabel.grid(row=6, column=0, padx=5, sticky="w")
1761+
dataBitwidthEntry = customtkinter.CTkEntry(multiCgraConfigPanel, justify=tkinter.CENTER)
1762+
dataBitwidthEntry.grid(row=6, column=1, padx=5)
1763+
dataBitwidthEntry.insert(0, str(32))
1764+
17531765
multiCgraConfigUpdateButton = customtkinter.CTkButton(multiCgraConfigPanel, text="Update", command=partial(clickMultiCgraUpdate, master))
1754-
multiCgraConfigUpdateButton.grid(row=5, column=0, columnspan=2, sticky="ew", padx=5, pady=5)
1766+
multiCgraConfigUpdateButton.grid(row=7, column=0, columnspan=2, sticky="ew", padx=5, pady=5)
17551767

17561768

17571769
def clickMultiCgraUpdate(root):
@@ -1969,7 +1981,7 @@ def place_xbar_options(master):
19691981
def create_param_pannel(master):
19701982
# paramPannel = tkinter.LabelFrame(master, text='Configuration', bd=BORDER, relief='groove')
19711983
paramPannel = customtkinter.CTkFrame(master, width=550, height=480)
1972-
paramPannel.grid(row=0, column=4, columnspan=2, padx=(0, 5), sticky="nsew")
1984+
paramPannel.grid(row=0, column=4, columnspan=2, sticky="nsew")
19731985

19741986
# Use columnconfigure and rowconfigure to partition the columns, so that each column and row will fill the corresponding space
19751987
# The 'weight' represents the weight of the corresponding row/column length
@@ -1979,7 +1991,7 @@ def create_param_pannel(master):
19791991
paramPannel.columnconfigure(i, weight=1)
19801992
paramPannel.grid_propagate(0)
19811993
configurationLabel = customtkinter.CTkLabel(paramPannel, text='Per-CGRA Modeling', font=customtkinter.CTkFont(size=FRAME_LABEL_FONT_SIZE, weight="bold"))
1982-
configurationLabel.grid(row=0, column=0, ipadx=5, pady=(5,0), sticky="nw")
1994+
configurationLabel.grid(row=0, column=0, columnspan=2, padx=(5,0), pady=(5,0), sticky="nw")
19831995

19841996
rowsLabel = customtkinter.CTkLabel(paramPannel, text='Rows Columns:')
19851997
rowsLabel.grid(row=1, column=0)
@@ -2480,7 +2492,7 @@ def display_layout_image(image_path):
24802492
def create_mapping_pannel(master):
24812493
# mappingPannel = tkinter.LabelFrame(master, text='Mapping', bd=BORDER, relief='groove')
24822494
mappingPannel = customtkinter.CTkFrame(master)
2483-
mappingPannel.grid(row=1, column=1, rowspan=1, columnspan=3, pady=(5, 0), sticky="nsew")
2495+
mappingPannel.grid(row=1, column=1, rowspan=1, columnspan=3, padx=(0, 5), pady=(5, 0), sticky="nsew")
24842496
mappingPannelLabel = customtkinter.CTkLabel(mappingPannel, text='Mapping ',
24852497
# width=100,
24862498
font=customtkinter.CTkFont(size=FRAME_LABEL_FONT_SIZE,

0 commit comments

Comments
 (0)