Bennett/General User Manual: Difference between revisions

From Engineering Wiki
Jump to navigation Jump to search
gravatar B47633cw [usereditorPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+ZWRpdG9yPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs)
gravatar B47633cw [usereditorPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+ZWRpdG9yPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs)
 
Line 38: Line 38:
# By using F11, or the button in the top right of the UI, a file directory finder appears
# By using F11, or the button in the top right of the UI, a file directory finder appears
# Select one of the supported files from above
# Select one of the supported files from above
# If selected hex or binary file, enter a memory address in hex, and hit Enter / Load (optional)
# If selected hex or binary file, enter a memory address in hex, and hit Enter / Load <small>(optional)</small>
# You have successfully loaded your first file into Bennett
# You have successfully loaded your first file into Bennett


=== Exporting Data and files ===
=== Exporting Data and files ===

Latest revision as of 11:12, 4 April 2025

Bennett User Guide

Starting Bennnett

User interface

Expression evaluation

Registers

Memories

Controlling Hardware

Basic controls

Breakpoints

Watchpoints

Loading Data and Files

The ‘Load Program’ button, in the top right of Bennett, encompasses all the file loaders that are used. This is a feature implemented to improve user experience (UX), replacing the ‘Assemble’ tab in the Bennett menu and opening up the possibility of loading a variety of files. Clicking this button will prompt you to select a file to load into Bennett. Currently Bennett supports the loading of the following files:

Binary files (.bin)

Assembly files (.s)

KMD files (.kmd)

Hex files (.txt)

(We are looking to add support for elf files, and expand the ranges of accepted binary and hex files such as JPEG).

Bennett extracts the file extension and uses this to match the appropriate loader. Once a match is found, the system verifies whether the file is memory relocatable. For file types that are memory addressable/relocatable (so far hex and binary), a window pops up allowing you to specify where you want to load your program into, this number must end in 0/4/8/C to keep it consistent with RISC-V memory architecture, or else a warning box pops up to reinstate this rule.

How to Load Files Into Bennett

Loading files couldn't be any easier!

  1. By using F11, or the button in the top right of the UI, a file directory finder appears
  2. Select one of the supported files from above
  3. If selected hex or binary file, enter a memory address in hex, and hit Enter / Load (optional)
  4. You have successfully loaded your first file into Bennett

Exporting Data and files