/cmsis-dsp-latest/Testing/FrameworkSource/ |
D | Error.cpp | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2019 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 54 if (fabs(pa - pb) > threshold) in assert_near_equal() 57 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold,pa,pb); in assert_near_equal() 65 if (fabs(pa - pb) > threshold) in assert_near_equal() 68 sprintf(details,"diff %g > %g (%g,%g)",fabs(pa - pb) , threshold, pa, pb); in assert_near_equal() [all …]
|
D | IORunner.cpp | 1 /* ---------------------------------------------------------------------- 12 * Target Processor: Cortex-M cores 13 * -------------------------------------------------------------------- */ 15 * Copyright (C) 2010-2019 ARM Limited or its affiliates. All rights reserved. 17 * SPDX-License-Identifier: Apache-2.0 23 * www.apache.org/licenses/LICENSE-2.0 58 this->m_runningMode = runningMode; in IORunner() 62 mgr->setDumpMode(); in IORunner() 66 mgr->setTestAndDumpMode(); in IORunner() 127 if (!m_mgr->HasMemError()) in IORunner() [all …]
|
/cmsis-dsp-latest/Testing/TestScripts/doc/ |
D | Format.py | 22 CORTEXCATEGORIES=["Cortex-M","Cortex-R","Cortex-A"] 23 CORECATEGORIES={"Cortex-M":["m0","m4", "m7", "m33" , "m55 scalar", "m55 mve","m55 autovec"], 24 "Cortex-R":["r8","r52"], 25 "Cortex-A":["a32"] 60 sepStr="".join(joinit([":-:" for x in cols],"|")) 84 self._id = self._id - 1 103 margin-top:5px; 104 margin-bottom:10px; 108 font-size: 16px; 112 background-color: #E5ECEB; [all …]
|
/cmsis-dsp-latest/Source/TransformFunctions/ |
D | arm_rfft_fast_f16.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 44 const float16_t * pCoeff = S->pTwiddleRFFT; /* Points to RFFT Twiddle factors */ in stage_rfft_f16() 62 k = (S->Sint).fftLen - 1; in stage_rfft_f16() 77 // U2 = XB(1) - XA(1); % It is imaginary in stage_rfft_f16() 80 // real(tw * (xB - xA)) = twR * (xBR - xAR) - twI * (xBI - xAI); in stage_rfft_f16() [all …]
|
D | arm_rfft_fast_f32.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 39 const float32_t * pCoeff = S->pTwiddleRFFT; /* Points to RFFT Twiddle factors */ in stage_rfft_f32() 52 vecStridesBkwd = -vecStridesFwd; in stage_rfft_f32() 57 k = (S->Sint).fftLen - 1; in stage_rfft_f32() 72 // U2 = XB(1) - XA(1); % It is imaginary in stage_rfft_f32() [all …]
|
D | arm_rfft_fast_f64.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 38 const float64_t * pCoeff = S->pTwiddleRFFT; /* Points to RFFT Twiddle factors */ in stage_rfft_f64() 46 k = (S->Sint).fftLen - 1; in stage_rfft_f64() 61 // U2 = XB(1) - XA(1); % It is imaginary in stage_rfft_f64() 64 // real(tw * (xB - xA)) = twR * (xBR - xAR) - twI * (xBI - xAI); in stage_rfft_f64() [all …]
|
/cmsis-dsp-latest/Testing/TestScripts/ |
D | Parser.py | 48 g="Test" 50 g="Suite" 52 g="Group" 53 a = str("%s -> %s%s(%d)\n" % (g,' ' * self.ident, str(self.data),self.id)) 143 def addGroup(self,g): argument 147 g (TreeElem) : group to add 153 g.parent = self 154 self._children.append(g) 284 #print("-%s-" % leftSpaces) 290 regPat = r'^[ \t]+Pattern[ \t]+([a-zA-Z0-9_]+)[ \t]*:[ \t]*(.+)$' [all …]
|
/cmsis-dsp-latest/dsppp/ |
D | run_all.py | 59 print("--------------",file=err) 86 parser.add_argument('-c', nargs='?',type = str, default="M55",help="M55/M4/M0") 87 parser.add_argument('-p', nargs='?',type = str, default="VHT",help="VHT/MPS3") 88 parser.add_argument('-a', action='store_true', help="Generate allocator definitions") 89 parser.add_argument('-i', action='store_true', help="Refresh global allocator index") 90 parser.add_argument('-b', action='store_true', help="Only benchmarks") 91 parser.add_argument('-d', action='store_true', help="Dry run") 92 parser.add_argument('-g', nargs='?',type = str, default="AC6",help="AC6 / CLANG / GCC") 93 parser.add_argument('-u', nargs='?',type = str, default="L85986697A",help="Debug UUID") 94 parser.add_argument('-t', action='store_true', help="Enable test mode") [all …]
|
/cmsis-dsp-latest/PythonWrapper/examples/kws_example/ |
D | appnodes.py | 9 # Target Processor: Cortex-M and Cortex-A cores 10 # -------------------------------------------------------------------- */ 12 # Copyright (C) 2010-2022 ARM Limited or its affiliates. All rights reserved. 14 # SPDX-License-Identifier: Apache-2.0 20 # www.apache.org/licenses/LICENSE-2.0 43 if i[0] == -1: 74 …# Negate can saturate so we use CMSIS-DSP function which is working on array (and we have a scalar) 78 f=w[:-1] 79 g=w[1:] 80 ….count_nonzero(np.logical_and(np.logical_or(np.logical_and(f>0,g<0), np.logical_and(f<0,g>0)),g>f)) [all …]
|
D | kws.ipynb | 8 "# Simple keyword spotting with CMSIS-DSP Python wrapper and Arduino" 16 …"The goal of this notebook is to demonstrate how to use the CMSIS-DSP Python wrapper on an example… 22 "* Testing the CMSIS-DSP algorithm directly in Python\n", 24 …"* Implementation of the compute graph and streaming computation from the CMSIS-DSP Synchronous Da… 38 …"The machine learning is using scikit-learn. For scientific computations, we are using SciPy, NumP… 97 …"You can add other keywords but the CMSIS-DSP implementation in this notebook is only supporting o… 120 …"The below code is generating a label ID for a command. The ID will be -1 for any command not in t… 130 "UNKNOWN_CLASS = -1\n", 132 " return(pathlib.PurePath(name).parts[-2])\n", 161 " w = w-np.mean(w)\n", [all …]
|
/cmsis-dsp-latest/Testing/PatternGeneration/ |
D | BIQUAD.py | 35 coefs=np.reshape(np.hstack((np.insert(sos[:,:3],1,0.0,axis=1),-sos[:,4:])),n*6) 37 coefs=np.reshape(np.hstack((sos[:,:3],-sos[:,4:])),n*5) 63 g = 0.02 65 sos = signal.zpk2sos(zeros,poles,g) 91 g = 0.02 96 ,g)
|
/cmsis-dsp-latest/PythonWrapper/examples/kws_example/kws/ |
D | AppNodes.h | 1 /* ---------------------------------------------------------------------- 8 * Target Processor: Cortex-M and Cortex-A cores 9 * -------------------------------------------------------------------- */ 11 * Copyright (C) 2010-2022 ARM Limited or its affiliates. All rights reserved. 13 * SPDX-License-Identifier: Apache-2.0 19 * www.apache.org/licenses/LICENSE-2.0 41 // Buffer to read samples into, each sample is 16-bits 63 q15_t *b=this->getReadBuffer(); in run() 65 if (b[0]==-1) in run() 98 q15_t *b=this->getWriteBuffer(); in run() [all …]
|
/cmsis-dsp-latest/PythonWrapper/examples/ |
D | Noise suppression.ipynb | 16 …e CMSIS-DSP Python wrapper and how it can help translating a float algorithm to a fixed point one … 24 …"The CMSIS-DSP package must first be installed. This command will take some time to execute since … 114 …"test_pattern_url=\"https://github.com/ARM-software/VHT-SystemModeling/blob/main/EchoCanceller/sou… 143 "application/vnd.jupyter.widget-view+json": { 207 …g/0v/UP+CAFT/cf/F/wv/sP7l//H+iACo/h3/3v77/u/+q/+s/jP/2P57ALr/fP8WAFsA5P9PAOn+CwD8/oAADAEOALn/wv8tA… 266 …InDxebmGp7rjjXPxnAlabXwikAPjNV16kAzhGRtqbafg6Aqea5z0XkFPO+XOk2VqPOUZaN76lj+0G/f9m2kTcRGQ7gPwGMUNVd… 300 "winDuration=30e-3\n", 301 "winOverlap=15e-3\n", 366 " w = window - np.mean(window)\n", 371 " if signal_energy(window)>-11:\n", [all …]
|
D | example.py | 10 elif x < -0x80000000: 40 g = 0.02 variable 47 ,g) 64 coefs=np.reshape(np.hstack((sos[:,:3],-sos[:,4:])),15)
|
/cmsis-dsp-latest/Documentation/Doxygen/style_template/ |
D | darkmode_toggle.js | 4 https://github.com/jothepro/doxygen-awesome-css 8 Copyright (c) 2021 - 2022 jothepro 31 …g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><rect width="1" height="3" x="12"… 32 …g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><rect width="1" height="3" x="12"… 35 static prefersLightModeInDarkModeKey = "prefers-light-mode-in-dark-mode" 36 static prefersDarkModeInLightModeKey = "prefers-dark-mode-in-light-mode" 42 window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => { 57 var tbuttons = document.getElementsByTagName("dark-mode-toggle"); 61 var mainMenu = document.getElementById("main-menu"); 65 toggleButton = document.createElement('dark-mode-toggle') [all …]
|
D | navtree.js | 6 Copyright (C) 1997-2020 by Dimitri van Heesch 33 return eval(n.replace(/\-/g,'_')); 46 return m ? uri.substring(i-6) : s; 51 return $(location).attr('hash').substring(1).replace(/[^\w\-]/g,''); 61 return $(location).attr('pathname').replace(/[^-A-Za-z0-9+&@#/%?=~_|!:,.;\(\)]/g, ''); 76 if (!$("#nav-sync").hasClass('sync') && localStorageSupported()) { 110 var level=-1; 145 var pos, docContent = $('#doc-content'); 159 pos-docContent.offset().top, 160 docContent[0].scrollHeight- [all …]
|
/cmsis-dsp-latest/Include/dsp/ |
D | debug.h | 6 * Target Processor: Cortex-M and Cortex-A cores 9 * Copyright (c) 2010-2020 Arm Limited or its affiliates. All rights reserved. 11 * SPDX-License-Identifier: Apache-2.0 17 * www.apache.org/licenses/LICENSE-2.0 67 for(unsigned int row=0;row<(M)->numRows;row++) \ 73 PROW_f16((M)->pData + row * (M)->numCols, (M)->numCols);\ 100 for(unsigned int row=0;row<(M)->numRows;row++) \ 106 PROW_f32((M)->pData + row * (M)->numCols, (M)->numCols);\ 113 printf("{%.20g",(double)(S)[0]); \ 116 printf(",%.20g",(double)(S)[i]);\ [all …]
|
/cmsis-dsp-latest/dsppp/tests/ |
D | matrix_test.cpp | 95 constexpr static float abserr_cholesky = 3e-4; 96 constexpr static float relerr_cholesky = 1e-4; 112 constexpr static float abserr_cholesky = 3e-4; 113 constexpr static float relerr_cholesky = 1e-4; 120 constexpr static float abserr_inv = 4.0e-6; 121 constexpr static float relerr_inv = 5.0e-6; 130 constexpr static float abserr_cholesky = 2e-1; 131 constexpr static float relerr_cholesky = 2e-1; 133 constexpr static float abserr_householder = 2e-4; 134 constexpr static float relerr_householder = 2e-3; [all …]
|
/cmsis-dsp-latest/Testing/cmsis_build/ |
D | runall.py | 11 parser.add_argument('-avh', nargs='?',type = str, default="C:/Keil_v5/ARM/avh-fvp/bin/models", help… 12 parser.add_argument('-d', action='store_true', help="Debug log") 13 parser.add_argument('-n', action='store_true', help="No force rebuild") 14 parser.add_argument('-r', action='store_true', help="Raw results only") 15 parser.add_argument('-c', action='store_true', help="Display cycles (so passing test are displayed)… 16 parser.add_argument('-g', nargs='?',type = str,help="AC6 / CLANG / GCC") 17 parser.add_argument('-s', action='store_true', help="Take into account AVH error code") 129 "CS310":"FVP_Corstone_SSE-310_Ethos-U65", 130 "CS300":"FVP_Corstone_SSE-300_Ethos-U55", 131 "M55":"FVP_MPS2_Cortex-M55", [all …]
|
/cmsis-dsp-latest/Source/SupportFunctions/ |
D | arm_bitonic_sort_f32.c | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M and Cortex-A cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 44 rightPtr = pSrc+n-1; in arm_bitonic_sort_core_f32() 57 rightPtr--; // Move left in arm_bitonic_sort_core_f32() 92 * +---+---+---+---+ in arm_bitonic_resort_8_f32() 94 * +---+---+---+---+ in arm_bitonic_resort_8_f32() [all …]
|
/cmsis-dsp-latest/PythonWrapper/build/ |
D | create.bat | 1 cmake -DHOST=YES ^ 2 -DLOOPUNROLL=ON ^ 3 -DWRAPPER=YES ^ 4 -DCMSISDSP="path to CMSIS-DSP folder" ^ 5 -DCMAKE_C_FLAGS_RELEASE="-std=c11 -Ofast -ffast-math -DNDEBUG -Wall -Wextra" ^ 6 …-DCMAKE_CXX_FLAGS_RELEASE="-fno-rtti -std=c++11 -Ofast -ffast-math -DNDEBUG -Wall -Wextra -Wno-unu… 7 -G "Unix Makefiles" ..
|
/cmsis-dsp-latest/PythonWrapper/build_linux/ |
D | create.sh | 1 cmake -DHOST=YES \ 2 -DLOOPUNROLL=ON \ 3 -DWRAPPER=YES \ 4 -DCMAKE_POSITION_INDEPENDENT_CODE=YES \ 5 -DCMSISDSP=".." \ 6 -DCMAKE_C_FLAGS_RELEASE="-std=c11 -Ofast -ffast-math -DNDEBUG -Wall -Wextra" \ 7 …-DCMAKE_CXX_FLAGS_RELEASE="-fno-rtti -std=c++11 -Ofast -ffast-math -DNDEBUG -Wall -Wextra -Wno-unu… 8 -G "Unix Makefiles" .. 11 # -arch x86_64 -arch arm64 -mmacosx-version-min=11.0
|
/cmsis-dsp-latest/PythonWrapper/build_darwin/ |
D | create.sh | 1 cmake -DHOST=YES \ 2 -DLOOPUNROLL=ON \ 3 -DWRAPPER=YES \ 4 -DCMAKE_POSITION_INDEPENDENT_CODE=YES \ 5 -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \ 6 -DCMAKE_OSX_DEPLOYMENT_TARGET="10.9" \ 7 -DCMSISDSP="path to CMSIS-DSP folder" \ 8 -DCMAKE_C_FLAGS_RELEASE="-std=c11 -Ofast -ffast-math -DNDEBUG -Wall -Wextra" \ 9 …-DCMAKE_CXX_FLAGS_RELEASE="-fno-rtti -std=c++11 -Ofast -ffast-math -DNDEBUG -Wall -Wextra -Wno-unu… 10 -G "Unix Makefiles" .. [all …]
|
/cmsis-dsp-latest/Testing/FrameworkInclude/ |
D | IORunner.h | 1 /* ---------------------------------------------------------------------- 9 * Target Processor: Cortex-M cores 10 * -------------------------------------------------------------------- */ 12 * Copyright (C) 2010-2019 ARM Limited or its affiliates. All rights reserved. 14 * SPDX-License-Identifier: Apache-2.0 20 * www.apache.org/licenses/LICENSE-2.0 42 virtual Testing::TestStatus run(Group *g);
|
/cmsis-dsp-latest/.github/workflows/ |
D | runtest.yaml | 11 security-events: write 16 fail-fast: false 19 runs-on: ubuntu-latest 22 - name: Checkout 25 - name: Setup Python 3.10 26 uses: actions/setup-python@v5 28 python-version: '3.10' 30 cache-dependency-path: Testing/requirements.txt 32 - name: Install system packages 34 sudo add-apt-repository ppa:deadsnakes/ppa [all …]
|