Skip to content

Commit

Permalink
4.0: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamarmas committed Sep 14, 2023
1 parent 824acf6 commit 5ee2edc
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 19 deletions.
2 changes: 1 addition & 1 deletion architecture/RISC_V_RV32IMFD.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"name": "Description",
"value": "RISC-V is an instruction set architecture (ISA) is based on the RISC type and its hardware is free. This architecture was created in 2010 at the University of California, Berkeley."
"value": "RISC-V is an instruction set architecture (ISA) based on the RISC type and its hardware is free. This architecture was created in 2010 at the University of California, Berkeley."
},
{
"name": "Data Format",
Expand Down
2 changes: 1 addition & 1 deletion architecture/available_arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"alt": "RISC-V",
"id": "select_confRISV",
"examples":["default"],
"description": "RISC-V is an instruction set architecture (ISA) is based on the RISC type and its hardware is free. This architecture was created in 2010 at the University of California, Berkeley.",
"description": "RISC-V is an instruction set architecture (ISA) based on the RISC type and its hardware is free. This architecture was created in 2010 at the University of California, Berkeley.",
"guide":"./docs/risc_v_reference_guide.pdf",
"available": 1
},
Expand Down
56 changes: 44 additions & 12 deletions components/general/creator_uielto_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

props: {
id: { type: String, required: true },
default_architecture: { type: String, required: true },
stack_total_list: { type: Number, required: true },
autoscroll: { type: Boolean, required: true },
notification_time: { type: Number, required: true },
Expand All @@ -36,6 +37,11 @@

data: function () {
return {
architectures = [
{ text: 'None', value: 'none' },
{ text: 'RISC-V (RV32IMFD)', value: 'RISC_V_RV32IMFD' },
{ text: 'MIPS-32', value: 'MIPS_32' },
]

}
},
Expand All @@ -61,6 +67,22 @@
}
},


//Debug Mode
change_default_architecture()
{

this._props.default_architecture = this.default_architecture;
app._data.default_architecture = this._props.default_architecture;

localStorage.setItem("conf_default_architecture", this._props.default_architecture);

//Google Analytics
creator_ga('configuration', 'configuration.default_architecture', 'configuration.default_architecture.' + this._props.default_architecture);
},



//Verify if dark mode was activated from cache
get_dark_mode()
{
Expand Down Expand Up @@ -229,7 +251,7 @@
//Debug Mode
change_debug_mode()
{
this._props.c_debug= !this._props.c_debug;
this._props.c_debug = !this._props.c_debug;
app._data.c_debug = this._props.c_debug;

//Google Analytics
Expand All @@ -243,6 +265,16 @@
' ' +
' <b-list-group>' +
' <b-list-group-item class="justify-content-between align-items-center m-1">' +
' <label for="range-5">Default Architecture:</label>' +
' <b-form-select v-model="default_architecture" ' +
' :options="architectures" ' +
' size="sm"' +
' @change="change_default_architecture" ' +
' title="Default Architecture">' +
' </b-form-select>' +
' </b-list-group-item>' +
' ' +
' <b-list-group-item class="justify-content-between align-items-center m-1">' +
' <label for="range-1">Maximum stack values listed:</label>' +
' <b-input-group>' +
' <b-input-group-prepend>' +
Expand All @@ -264,17 +296,6 @@
' </b-list-group-item>' +
' ' +
' <b-list-group-item class="justify-content-between align-items-center m-1">' +
' <label for="range-2">Execution Autoscroll:</label>' +
' <b-form-checkbox id="range-2"' +
' v-model="autoscroll" ' +
' name="check-button" ' +
' switch ' +
' size="lg" ' +
' @change="change_autoscroll">' +
' </b-form-checkbox>' +
' </b-list-group-item>' +
' ' +
' <b-list-group-item class="justify-content-between align-items-center m-1">' +
' <label for="range-3">Notification Time:</label>' +
' <b-input-group>' +
' <b-input-group-prepend>' +
Expand Down Expand Up @@ -316,6 +337,17 @@
' </b-input-group>' +
' </b-list-group-item>' +
' ' +
' <b-list-group-item class="justify-content-between align-items-center m-1">' +
' <label for="range-2">Execution Autoscroll:</label>' +
' <b-form-checkbox id="range-2"' +
' v-model="autoscroll" ' +
' name="check-button" ' +
' switch ' +
' size="lg" ' +
' @change="change_autoscroll">' +
' </b-form-checkbox>' +
' </b-list-group-item>' +
' ' +
/*' <b-list-group-item class="justify-content-between align-items-center m-1">' +
' <label for="range-4">Font Size:</label>' +
' <b-input-group>' +
Expand Down
8 changes: 4 additions & 4 deletions examples/ag-uc3m-ec/asm-rv32_l3a_s36.s
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# li t0, -1
# mul t4, t4, t0

addi t4 t2 -10
mul t4 t4 t1
add t4 t4 t3
add t4 x0 t4
addi t4, t2, -10
mul t4, t4, t1
add t4, t4, t3
add t4, x0, t4
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@

<!-- Configuration modal -->
<form-configuration id="configuration"
:default_architecture="default_architecture"
:stack_total_list="stack_total_list"
:autoscroll="autoscroll"
:instruction_help_size="instruction_help_size"
Expand Down
4 changes: 4 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ try
// Configuration
//

//Stack total list values
default_architecture: "none",

//Stack total list values
stack_total_list: 40,

Expand Down Expand Up @@ -352,6 +355,7 @@ try
target_board: "esp32c3", //TODO: include into flash component - modal info
target_port: "", //TODO: include into flash component - modal info
flash_url: "http://localhost:8080", //TODO: include into flash component - modal info

},


Expand Down
2 changes: 1 addition & 1 deletion js/min.creator_web.js

Large diffs are not rendered by default.

0 comments on commit 5ee2edc

Please sign in to comment.