From b73112c2e161b6d679d5f46f7839d34656c9b3fc Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 2 Dec 2024 12:16:34 -0800 Subject: [PATCH] fixing toggle rate of DMA and BRAM block to have the interval of 0.5 --- src/components/ModalWindows/BramModal.js | 2 ++ src/components/ModalWindows/DMAModal.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/ModalWindows/BramModal.js b/src/components/ModalWindows/BramModal.js index e87c1ed4..c36b19f9 100644 --- a/src/components/ModalWindows/BramModal.js +++ b/src/components/ModalWindows/BramModal.js @@ -70,6 +70,7 @@ function BramModal({ fieldType: FieldType.float, id: 'port_a_toggle_rate', text: 'Toggle Rate', + step: '0.5', value: defaultValue.port_a_toggle_rate, }, ], @@ -107,6 +108,7 @@ function BramModal({ fieldType: FieldType.float, id: 'port_b_toggle_rate', text: 'Toggle Rate', + step: '0.5', value: defaultValue.port_b_toggle_rate, }, ], diff --git a/src/components/ModalWindows/DMAModal.js b/src/components/ModalWindows/DMAModal.js index 1f95a6da..8d4d82de 100644 --- a/src/components/ModalWindows/DMAModal.js +++ b/src/components/ModalWindows/DMAModal.js @@ -51,6 +51,7 @@ function DMAModal({ fieldType: FieldType.float, id: 'toggle_rate', text: 'Toggle Rate', + step: '0.5', value: defaultValue.toggle_rate, }, ]}