diff options
Diffstat (limited to 'gui/gui.ui')
-rw-r--r-- | gui/gui.ui | 753 |
1 files changed, 438 insertions, 315 deletions
@@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>1359</width> - <height>606</height> + <height>621</height> </rect> </property> <property name="windowTitle"> @@ -16,7 +16,7 @@ <widget class="QWidget" name="centralwidget"> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> - <layout class="QGridLayout" name="gridLayout_2" rowstretch="0,0,0" columnstretch="0,3,0,1,0"> + <layout class="QGridLayout" name="gridLayout_2" rowstretch="0,0" columnstretch="0,0,0,0,0"> <item row="0" column="1"> <layout class="QVBoxLayout" name="verticalLayout_19" stretch="1,0,3"> <item> @@ -36,7 +36,7 @@ <item> <widget class="Line" name="line_25"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> </widget> </item> @@ -48,7 +48,7 @@ <item> <widget class="Line" name="line_26"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> </widget> </item> @@ -71,19 +71,26 @@ <item> <widget class="Line" name="line_27"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> </widget> </item> <item> - <widget class="QTextEdit" name="cache_table"/> + <widget class="QTextEdit" name="cache_table"> + <property name="minimumSize"> + <size> + <width>500</width> + <height>0</height> + </size> + </property> + </widget> </item> </layout> </item> <item> <widget class="Line" name="line_28"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> @@ -104,38 +111,289 @@ <item> <widget class="Line" name="line_29"> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QTextEdit" name="dram_table"> + <property name="minimumSize"> + <size> + <width>500</width> + <height>0</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </item> + <item row="0" column="3"> + <layout class="QVBoxLayout" name="verticalLayout_23"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_26"> + <item> + <widget class="QLabel" name="label_13"> + <property name="font"> + <font> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Controls</string> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_9"> + <property name="sizeConstraint"> + <enum>QLayout::SizeConstraint::SetMinimumSize</enum> + </property> + <item> + <widget class="Line" name="line_8"> + <property name="orientation"> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> <item> - <widget class="QTextEdit" name="dram_table"/> + <layout class="QVBoxLayout" name="verticalLayout_9"> + <property name="sizeConstraint"> + <enum>QLayout::SizeConstraint::SetMinimumSize</enum> + </property> + <item> + <widget class="QLabel" name="label"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>C1 2^</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>C2 2^</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_3"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>C3 2^</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_4"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + <property name="text"> + <string>C4 2^</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="DynamicWaysEntry" name="cache_way_selector" native="true"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="Line" name="line_35"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_27"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_10"> + <item> + <widget class="QCheckBox" name="enable_pipeline_checkbox"> + <property name="text"> + <string>Enable Pipeline</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_28"> + <item> + <widget class="Line" name="line_36"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_37"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_29"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_24"> + <item> + <widget class="QLabel" name="label_12"> + <property name="font"> + <font> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Upload Files</string> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_33"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_25"> + <item> + <widget class="QPushButton" name="upload_intructions_btn"> + <property name="text"> + <string>Load Instructions</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="upload_program_state_btn"> + <property name="text"> + <string>Upload Program State</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="save_program_state_btn"> + <property name="text"> + <string>Save Program State</string> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_8"/> + </item> + </layout> + </item> + <item> + <widget class="Line" name="line_7"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="config"> + <property name="text"> + <string>Initialize!</string> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line_34"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> + </layout> </item> </layout> </item> </layout> </item> + <item> + <widget class="Line" name="line_38"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> + </property> + </widget> + </item> </layout> </item> <item row="1" column="0" colspan="5"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QGroupBox" name="Fetch"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> <property name="title"> <string>Fetch</string> </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> + </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> - <widget class="QLineEdit" name="fetch_instruction_bits"> - <property name="placeholderText"> - <string>Instruction Bits</string> + <widget class="DigitLabel" name="fetch_bits"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="fetch_pc"> - <property name="placeholderText"> - <string>Program Counter</string> + <widget class="QLabel" name="fetch_squashed"> + <property name="text"> + <string/> </property> </widget> </item> @@ -145,51 +403,36 @@ <item> <widget class="Line" name="line"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> <item> <widget class="QGroupBox" name="Decode"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> <property name="title"> <string>Decode</string> </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> + </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> - <widget class="QLineEdit" name="decode_s1"> - <property name="placeholderText"> - <string>Instruction Bits</string> - </property> - </widget> - </item> - <!-- <item> - <widget class="QLineEdit" name="decode_s2"> + <widget class="DigitLabel" name="decode_bits"> <property name="text"> <string/> </property> - <property name="placeholderText"> - <string>Program COunte</string> - </property> </widget> </item> <item> - <widget class="QLineEdit" name="decode_s3"> - <property name="placeholderText"> - <string>s3</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="decode_mnemonic"> - <property name="placeholderText"> - <string>Mnemonic</string> - </property> - </widget> - </item> --> - <item> - <widget class="QLineEdit" name="decode_pc"> - <property name="placeholderText"> - <string>Program Counter</string> + <widget class="QLabel" name="decode_squashed"> + <property name="text"> + <string/> </property> </widget> </item> @@ -199,51 +442,60 @@ <item> <widget class="Line" name="line_2"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> <item> <widget class="QGroupBox" name="Execute"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> <property name="title"> <string>Execute</string> </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> + </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> - <widget class="QLineEdit" name="execute_s1"> - <property name="placeholderText"> - <string>s1</string> + <widget class="DigitLabel" name="execute_s1"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="execute_s2"> + <widget class="DigitLabel" name="execute_s2"> <property name="text"> <string/> </property> - <property name="placeholderText"> - <string>s2</string> - </property> </widget> </item> <item> - <widget class="QLineEdit" name="execute_s3"> - <property name="placeholderText"> - <string>s3</string> + <widget class="DigitLabel" name="execute_s3"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="execute_mnemonic"> - <property name="placeholderText"> - <string>Mnemonic</string> + <widget class="QLabel" name="execute_mnemonic"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="execute_pc"> - <property name="placeholderText"> - <string>Program Counter</string> + <widget class="QLabel" name="execute_squashed"> + <property name="text"> + <string/> + </property> + <property name="textFormat"> + <enum>Qt::TextFormat::MarkdownText</enum> </property> </widget> </item> @@ -253,51 +505,57 @@ <item> <widget class="Line" name="line_3"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> <item> <widget class="QGroupBox" name="Memory"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> <property name="title"> <string>Memory</string> </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> + </property> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> - <widget class="QLineEdit" name="memory_s1"> - <property name="placeholderText"> - <string>s1</string> + <widget class="DigitLabel" name="memory_s1"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="memory_s2"> + <widget class="DigitLabel" name="memory_s2"> <property name="text"> <string/> </property> - <property name="placeholderText"> - <string>s2</string> - </property> </widget> </item> <item> - <widget class="QLineEdit" name="memory_s3"> - <property name="placeholderText"> - <string>s3</string> + <widget class="DigitLabel" name="memory_s3"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="memory_mnemonic"> - <property name="placeholderText"> - <string>Mnemonic</string> + <widget class="QLabel" name="memory_mnemonic"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="memory_pc"> - <property name="placeholderText"> - <string>Program Counter</string> + <widget class="QLabel" name="memory_squashed"> + <property name="text"> + <string/> </property> </widget> </item> @@ -307,308 +565,170 @@ <item> <widget class="Line" name="line_4"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> <item> <widget class="QGroupBox" name="WriteBack"> + <property name="minimumSize"> + <size> + <width>200</width> + <height>0</height> + </size> + </property> <property name="title"> <string>Write Back</string> </property> + <property name="alignment"> + <set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignTop</set> + </property> <layout class="QVBoxLayout" name="verticalLayout_5"> <item> - <widget class="QLineEdit" name="wb_s1"> - <property name="placeholderText"> - <string>s1</string> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="wb_s2"> + <widget class="DigitLabel" name="write_s1"> <property name="text"> <string/> </property> - <property name="placeholderText"> - <string>s2</string> - </property> </widget> </item> <item> - <widget class="QLineEdit" name="wb_s3"> - <property name="placeholderText"> - <string>s3</string> + <widget class="DigitLabel" name="write_s2"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="wb_mnemonic"> - <property name="placeholderText"> - <string>Mnemonic</string> + <widget class="DigitLabel" name="write_s3"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <widget class="QLineEdit" name="wb_pc"> - <property name="placeholderText"> - <string>Program Counter</string> + <widget class="QLabel" name="write_mnemonic"> + <property name="text"> + <string/> </property> </widget> </item> </layout> </widget> </item> - </layout> - </item> - <item row="0" column="3"> - <layout class="QVBoxLayout" name="verticalLayout_23"> <item> - <layout class="QVBoxLayout" name="verticalLayout_24"> - <item> - <widget class="QLabel" name="label_12"> - <property name="font"> - <font> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Upload Files</string> - </property> - </widget> - </item> + <layout class="QVBoxLayout" name="verticalLayout_6"> <item> - <widget class="Line" name="line_33"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_25"> + <layout class="QHBoxLayout" name="horizontalLayout_13"> <item> - <widget class="QPushButton" name="upload_intructions_btn"> + <widget class="QLabel" name="state_header"> + <property name="font"> + <font> + <bold>true</bold> + </font> + </property> <property name="text"> - <string>Upload Instruction File</string> + <string>State</string> </property> </widget> </item> <item> - <layout class="QHBoxLayout" name="horizontalLayout_8"> - <item> - <widget class="QPushButton" name="upload_program_state_btn"> - <property name="text"> - <string>Upload Program State File</string> - </property> - </widget> - </item> - </layout> + <widget class="QCheckBox" name="checkBox"> + <property name="text"> + <string>Decimal</string> + </property> + </widget> </item> </layout> </item> <item> - <widget class="Line" name="line_34"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_26"> - <item> - <widget class="QLabel" name="label_13"> - <property name="font"> - <font> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Controls</string> - </property> - </widget> - </item> - <item> - <widget class="Line" name="line_35"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_27"> + <layout class="QHBoxLayout" name="horizontalLayout_11"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_9"> - <item> - <widget class="QPushButton" name="refresh_dram_btn"> - <property name="text"> - <string>Refresh DRAM</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="refresh_cache_btn"> - <property name="text"> - <string>Refresh Cache</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="refresh_registers_btn"> - <property name="text"> - <string>Refresh Registers</string> - </property> - </widget> - </item> - </layout> + <widget class="QLabel" name="pc"> + <property name="text"> + <string>PC</string> + </property> + </widget> </item> <item> - <layout class="QHBoxLayout" name="horizontalLayout_10"> - <item> - <widget class="QPushButton" name="Reset_Btn"> - <property name="text"> - <string>Reset</string> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="enable_pipeline_checkbox"> - <property name="text"> - <string>Enable Pipeline</string> - </property> - <property name="checkable"> - <bool>false</bool> - </property> - <property name="checked"> - <bool>false</bool> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="enabl_cache_checkbox"> - <property name="text"> - <string>Enable Cache</string> - </property> - <property name="checkable"> - <bool>false</bool> - </property> - </widget> - </item> - </layout> + <widget class="DigitLabel" name="p_counter"> + <property name="text"> + <string/> + </property> + </widget> </item> - </layout> - </item> - </layout> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_28"> - <item> - <widget class="Line" name="line_36"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_14"> - <property name="font"> - <font> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Run</string> - </property> - </widget> - </item> - <item> - <widget class="Line" name="line_37"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_29"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_11"> - <item> - <widget class="QLineEdit" name="number_steps_inp"> - <property name="placeholderText"> - <string># Steps</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="run_steps_btn"> - <property name="text"> - <string>Run Steps</string> - </property> - </widget> - </item> - </layout> + <widget class="QLabel" name="cycles"> + <property name="text"> + <string>Cycle</string> + </property> + </widget> </item> <item> - <widget class="QPushButton" name="step_btn"> + <widget class="DigitLabel" name="cycle_counter"> <property name="text"> - <string>Step</string> + <string/> </property> </widget> </item> </layout> </item> - </layout> - </item> - <item> - <widget class="Line" name="line_38"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QVBoxLayout" name="verticalLayout_30"> <item> - <widget class="QLabel" name="label_15"> - <property name="font"> - <font> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Program State</string> + <widget class="Line" name="line_10"> + <property name="orientation"> + <enum>Qt::Orientation::Horizontal</enum> </property> </widget> </item> <item> - <widget class="Line" name="line_39"> + <widget class="QSlider" name="step_slider"> + <property name="minimum"> + <number>0</number> + </property> + <property name="maximum"> + <number>6</number> + </property> + <property name="pageStep"> + <number>1</number> + </property> <property name="orientation"> - <enum>Qt::Horizontal</enum> + <enum>Qt::Orientation::Horizontal</enum> </property> - </widget> - </item> - <item> - <widget class="QLabel" name="cycles_label"> - <property name="text"> - <string>Clock Cycles</string> + <property name="tickPosition"> + <enum>QSlider::TickPosition::NoTicks</enum> + </property> + <property name="tickInterval"> + <number>1</number> </property> </widget> </item> <item> - <widget class="QPushButton" name="save_program_state_btn"> + <widget class="QPushButton" name="step_btn"> + <property name="minimumSize"> + <size> + <width>400</width> + <height>0</height> + </size> + </property> <property name="text"> - <string>Save Current Program State</string> + <string>Step 1</string> </property> </widget> </item> </layout> </item> + <item> + <widget class="Line" name="line_6"> + <property name="orientation"> + <enum>Qt::Orientation::Vertical</enum> + </property> + </widget> + </item> </layout> </item> <item row="0" column="2"> <widget class="Line" name="line_5"> <property name="orientation"> - <enum>Qt::Vertical</enum> + <enum>Qt::Orientation::Vertical</enum> </property> </widget> </item> @@ -616,18 +736,21 @@ </item> </layout> </widget> - <widget class="QMenuBar" name="menubar"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1359</width> - <height>26</height> - </rect> - </property> - </widget> - <widget class="QStatusBar" name="statusbar"/> + <widget class="QStatusBar" name="statusBar"/> </widget> -<resources/> + <customwidgets> + <customwidget> + <class>DynamicWaysEntry</class> + <extends>QWidget</extends> + <header>dynamicwaysentry.h</header> + <container>1</container> + </customwidget> + <customwidget> + <class>DigitLabel</class> + <extends>QLabel</extends> + <header location="global">digitlabel.h</header> + </customwidget> + </customwidgets> + <resources/> <connections/> </ui> |