From a512d8657dde2e5fff38429cbc3ef89ba0fee152 Mon Sep 17 00:00:00 2001 From: Conghui Date: Mon, 30 May 2022 14:11:26 +0800 Subject: [PATCH] config-tools: add tooltips Add tooltips for vUART, IVSHMEM and CAT. Other tiny fix. Tracked-On: #7639 Signed-off-by: Conghui --- .../configurator/src/pages/Config.vue | 1 - .../Config/ConfigForm/CustomWidget/CAT.vue | 35 ++++++++++-- .../CustomWidget/IVSHMEM_REGION.vue | 51 ++++++++++++++--- .../Config/ConfigForm/CustomWidget/VUART.vue | 56 ++++++++++++++++--- 4 files changed, 119 insertions(+), 24 deletions(-) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue index f2847b0a1..30fdb9af2 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config.vue @@ -147,7 +147,6 @@ export default { // update the info in title this.currentBoardFile = 'Current file: ' + this.board['name'] let boardContent = this.board.content - let reg = /(?<=Manufacturer).+(?=\\n)/ let result = boardContent.match(/Manufacturer.+\n/gm) console.log(result) if (result && result.length > 0) { diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/CAT.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/CAT.vue index e7790c5c6..e2f0ce734 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/CAT.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/CAT.vue @@ -7,7 +7,12 @@ v-model="SSRAM_ENABLED" :value="'y'" :uncheckedValue="'n'" :disabled="RDT_ENABLED==='y'" > - Software SRAM (for real-time apps) + + + + Software SRAM (for real-time apps)
@@ -16,18 +21,33 @@ v-model="RDT_ENABLED" :value="'y'" :uncheckedValue="'n'" :disabled="SSRAM_ENABLED==='y'" > - Cache Allocation Technology (requires CPU Afinity configuration in each desired VM) + + + + Cache Allocation Technology (requires CPU Afinity configuration in each desired VM)
- Code and Data Prioritization + + + + Code and Data Prioritization - Virtual Cache Allocation Technology (VCAT) + + + + Virtual Cache Allocation Technology (VCAT)
@@ -102,6 +122,7 @@ import _ from "lodash"; import {vueUtils, fieldProps} from "@lljj/vue3-form-naive"; import HexBlockRangeSelector from "./CAT/HexBlockRangeSelector.vue"; +import IconInfo from '@lljj/vjsf-utils/icons/IconInfo.vue'; function count(source, target) { return (source.match(new RegExp(target, 'g')) || []).length; @@ -111,7 +132,7 @@ function count(source, target) { // noinspection JSUnresolvedVariable export default { name: "CAT", - components: {HexBlockRangeSelector}, + components: {HexBlockRangeSelector, IconInfo}, props: { ...fieldProps }, @@ -174,7 +195,9 @@ export default { data() { return { CAT_INFO: null, - cat_level_region_sum: {} + cat_level_region_sum: {}, + SSRAMInfo: this.rootSchema.definitions['SSRAMInfo'], + RDTType: this.rootSchema.definitions['RDTType'] } }, methods: { diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue index d82e841a3..d2c14d656 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue @@ -6,7 +6,12 @@ - Region name: + + + + Region name: @@ -15,7 +20,14 @@ - + @@ -24,7 +36,14 @@ - + @@ -36,13 +55,25 @@

Select all VMs that will use this shared memory region

- Virtual BDF: + + + + Virtual BDF: - - + + @@ -106,11 +137,11 @@ import _ from 'lodash'; import {Icon} from "@vicons/utils"; import {Plus, Minus} from '@vicons/fa' import {fieldProps, vueUtils} from '@lljj/vue3-form-naive'; - +import IconInfo from '@lljj/vjsf-utils/icons/IconInfo.vue'; export default { name: 'IVSHMEM_REGION', - components: {Icon, Plus, Minus}, + components: {Icon, Plus, Minus, IconInfo}, props: { ...fieldProps, // Todo: use ui:fieldProps to pass getScenarioData function @@ -132,7 +163,9 @@ export default { data() { return { providerType: this.rootSchema.definitions['ProviderType']['enum'], - IVSHMEMSize: this.rootSchema.definitions['IVSHMEMSize']['enum'], + IVSHMEMRegionType: this.rootSchema.definitions['IVSHMEMRegionType'], + IVSHMEMVM: this.rootSchema.definitions['IVSHMEMVM'], + VMConfigType: this.rootSchema.definitions['VMConfigType'], defaultVal: vueUtils.getPathVal(this.rootFormData, this.curNodePath) }; }, diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue index 7311cfa2f..9153ecfc4 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/VUART.vue @@ -6,7 +6,14 @@ - + @@ -24,7 +31,14 @@ - + @@ -36,7 +50,14 @@ - + @@ -53,8 +74,23 @@ Virtual UART port: - I/O address: - VBDF + + + + + + I/O address: + + + + + {{this.VuartEndpointType.vbdf.description}} + VBDF + Connection_{{ index + 1 }}-{{ VUARTConn.endpoint[0].vm_name }} @@ -104,11 +140,12 @@ import _ from 'lodash'; import {Icon} from "@vicons/utils"; import {Plus, Minus} from '@vicons/fa' import {fieldProps, vueUtils} from '@lljj/vue3-form-naive'; +import IconInfo from '@lljj/vjsf-utils/icons/IconInfo.vue'; export default { name: 'VUART', - components: {Icon, Plus, Minus}, + components: {Icon, Plus, Minus, IconInfo}, props: { ...fieldProps, // Todo: use ui:fieldProps to pass getScenarioData function @@ -130,7 +167,10 @@ export default { data() { return { VuartType: this.rootSchema.definitions['VuartType']['enum'], + VuartEndpointType: this.rootSchema.definitions['VuartEndpointType']['properties'], IOPortDefault: this.rootSchema.definitions['VuartEndpointType']['properties']['io_port']['default'], + VMConfigType: this.rootSchema.definitions['VMConfigType'], + VuartConnectionType: this.rootSchema.definitions['VuartConnectionType'], defaultVal: vueUtils.getPathVal(this.rootFormData, this.curNodePath) }; }, @@ -168,12 +208,12 @@ export default { "endpoint": [ { "vm_name": "", - "io_port": this.IOPortDefault, + "io_port": "", "vbdf": "", }, { "vm_name": "", - "io_port": this.IOPortDefault, + "io_port": "", "vbdf": "", } ]