Skip to content

Commit

Permalink
Merge pull request #245 from xmos/release/v0.4.0
Browse files Browse the repository at this point in the history
Release/v0.4.0
  • Loading branch information
shuchitak authored Mar 31, 2022
2 parents 893b930 + 58edc1a commit af0afb5
Show file tree
Hide file tree
Showing 142 changed files with 258 additions and 181 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Avona Reference Design Change Log
=================================

0.4.0
-----

* CHANGED: Increased ASR AGC amplitude target
* ADDED: -Os compile option for modules, examples and tests

0.3.0
-----

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(PROJECT_IS_TOP_LEVEL)
find_package( Python3 COMPONENTS Interpreter )

## Compile flags for C/C++ for all apps (for all platforms)
list(APPEND COMPILE_FLAGS -MMD )
list(APPEND COMPILE_FLAGS -Os -MMD )
list(APPEND COMPILE_FLAGS -Wno-format -Wall )

message( STATUS "System name ${CMAKE_SYSTEM_NAME}" )
Expand Down
24 changes: 14 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
description: 'Force a full test. This increases the number of iterations/scope in some tests')
booleanParam(name: 'PIPELINE_FULL_RUN',
defaultValue: false,
description: 'Enables pipelines characterisation test which takes 2.5hrs by itself. Normally run nightly')
description: 'Enables pipelines characterisation test which takes 5.0hrs by itself. Normally run nightly')
}
environment {
REPO = 'sw_avona'
Expand Down Expand Up @@ -419,11 +419,15 @@ pipeline {
dir("${REPO}/test/lib_adec/test_delay_estimator") {
viewEnv() {
withVenv {
sh 'mkdir -p ./input_wavs/'
sh 'mkdir -p ./output_files/'
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
runPython("python print_stats.py")
withMounts([["projects", "projects/hydra_audio", "hydra_audio_test_de"]]) {
withEnv(["hydra_audio_PATH=$hydra_audio_test_de_PATH"]) {
sh 'mkdir -p ./input_wavs/'
sh 'mkdir -p ./output_files/'
sh "pytest -n 2 --junitxml=pytest_result.xml"
junit "pytest_result.xml"
runPython("python print_stats.py")
}
}
}
}
}
Expand Down Expand Up @@ -553,8 +557,7 @@ pipeline {
sh "pytest -n 4 --junitxml=pytest_result.xml -vv"
// sh "pytest -s --junitxml=pytest_result.xml" //Debug, run single threaded with STDIO captured
junit "pytest_result.xml"
archiveArtifacts artifacts: "results_*.csv", fingerprint: true
archiveArtifacts artifacts: "keyword_input_*/*.wav", fingerprint: true
// Archive below (always section) even if fails
}
}
}
Expand All @@ -565,12 +568,13 @@ pipeline {
}//stages
post {
always {
//All build files
// archiveArtifacts artifacts: "${REPO}/build/**/*", fingerprint: true
//AEC aretfacts
archiveArtifacts artifacts: "${REPO}/test/lib_adec/test_adec_profile/**/adec_prof*.log", fingerprint: true
//NS artefacts
archiveArtifacts artifacts: "${REPO}/test/lib_ns/test_ns_profile/ns_prof.log", fingerprint: true
//Pipelines tests
archiveArtifacts artifacts: "${REPO}/test/pipeline/results_*.csv", fingerprint: true
archiveArtifacts artifacts: "${REPO}/test/pipeline/keyword_input_*/*.wav", fingerprint: true
}
cleanup {
cleanWs()
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/aec_1_thread/src/aec_app.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/aec_2_threads/src/aec_app.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <stdlib.h>
Expand Down
Binary file modified examples/bare-metal/doc/ic_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion examples/bare-metal/ic/doit.sh

This file was deleted.

Binary file modified examples/bare-metal/ic/input.wav
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/bare-metal/ic/src/ic_test_task.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#if !X86_BUILD
#ifdef __XC__
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/pipeline_multi_threaded/src/pipeline.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <string.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/shared_src/aec/aec_memory_pool.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AEC_MEMORY_POOL_H
#define AEC_MEMORY_POOL_H
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <string.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/shared_src/file_utils/wav_utils.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/shared_src/file_utils/wav_utils.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef WAV_UTILS_H
#define WAV_UTILS_H
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/shared_src/profile/profile.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <platform.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/shared_src/profile/profile.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/bare-metal/shared_src/python/run_xcoreai.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2021 XMOS LIMITED.
# Copyright 2022 XMOS LIMITED.
# This Software is subject to the terms of the XMOS Public Licence: Version 1.
import xscope_fileio
import argparse
Expand Down
Binary file not shown.
5 changes: 5 additions & 0 deletions modules/lib_adec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ target_include_directories(avona_module_lib_adec
api
)

target_compile_options(avona_module_lib_adec
PRIVATE
"-Os"
)

target_link_libraries(avona_module_lib_adec
PUBLIC
sdk::lib_xs3_math
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_adec/api/adec_api.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include "adec_state.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/lib_adec/api/adec_defines.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef ADEC_DEFINES_H
#define ADEC_DEFINES_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_adec/api/adec_state.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef __ADEC_TYPES_H__
#define __ADEC_TYPES_H__
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_adec/src/de_impl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.

#include "aec_api.h"
Expand Down
5 changes: 5 additions & 0 deletions modules/lib_aec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ target_include_directories(avona_module_lib_aec
src ## this is needed for the IC
)

target_compile_options(avona_module_lib_aec
PRIVATE
"-Os"
)

target_link_libraries(avona_module_lib_aec
PUBLIC
sdk::lib_xs3_math
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/api/aec_api.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AEC_API_H
#define AEC_API_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/api/aec_defines.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AEC_DEFINES_H
#define AEC_DEFINES_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/api/aec_state.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AEC_STATE_H
#define AEC_STATE_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/src/aec_impl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/src/aec_l2_impl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/src/aec_priv.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AEC_PRIV_H
#define AEC_PRIV_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_aec/src/aec_priv_impl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stdio.h>
#include <string.h>
Expand Down
5 changes: 5 additions & 0 deletions modules/lib_agc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ target_include_directories(avona_module_lib_agc
api
)

target_compile_options(avona_module_lib_agc
PRIVATE
"-Os"
)

target_link_libraries(avona_module_lib_agc
PUBLIC
sdk::lib_xs3_math
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_agc/api/agc_api.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2022 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AGC_API_H
#define AGC_API_H
Expand Down
7 changes: 4 additions & 3 deletions modules/lib_agc/api/agc_profiles.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2022 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AGC_PROFILES_H
#define AGC_PROFILES_H
Expand Down Expand Up @@ -31,8 +31,8 @@
.gain = float_to_float_s32(500), \
.max_gain = float_to_float_s32(1000), \
.min_gain = float_to_float_s32(0), \
.upper_threshold = float_to_float_s32(0.7079), \
.lower_threshold = float_to_float_s32(0.1905), \
.upper_threshold = float_to_float_s32(0.9999), \
.lower_threshold = float_to_float_s32(0.7000), \
.gain_inc = float_to_float_s32(1.197), \
.gain_dec = float_to_float_s32(0.87), \
.lc_enabled = 0, \
Expand Down Expand Up @@ -83,4 +83,5 @@
.lc_gain_min = float_to_float_s32(0), \
}


#endif
2 changes: 1 addition & 1 deletion modules/lib_agc/src/agc_defines.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef AGC_DEFINES_H
#define AGC_DEFINES_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_agc/src/agc_impl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <limits.h>
#include "agc_defines.h"
Expand Down
5 changes: 5 additions & 0 deletions modules/lib_ic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ target_include_directories(avona_module_lib_ic
api
)

target_compile_options(avona_module_lib_ic
PRIVATE
"-Os"
)

target_link_libraries(avona_module_lib_ic
PUBLIC
sdk::lib_xs3_math
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ic/src/ic.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.

#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ic/src/ic_low_level.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.

#include "ic_low_level.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ic/src/ic_low_level.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.

#ifndef IC_LOW_LEVEL_H
Expand Down
5 changes: 5 additions & 0 deletions modules/lib_ns/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ target_include_directories(avona_module_lib_ns
src
)

target_compile_options(avona_module_lib_ns
PRIVATE
"-Os"
)

target_link_libraries(avona_module_lib_ns
PUBLIC
sdk::lib_xs3_math
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ns/api/ns_api.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.

#ifndef NS_API_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ns/api/ns_state.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef NS_STATE_H
#define NS_STATE_H
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ns/src/ns_impl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <string.h>
#include <limits.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ns/src/ns_low_level.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <string.h>
#include <bfp_math.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/lib_ns/src/ns_priv.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 XMOS LIMITED.
// Copyright 2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef _NS_PRIV_H
#define _NS_PRIV_H
Expand Down
5 changes: 5 additions & 0 deletions modules/lib_vad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ target_include_directories(avona_module_lib_vad
src
)

target_compile_options(avona_module_lib_vad
PRIVATE
"-Os"
)

target_link_libraries(avona_module_lib_vad
PUBLIC
sdk::lib_xs3_math
Expand Down
2 changes: 1 addition & 1 deletion settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "Avona Voice Reference Design",
"project": "Avona",
"version": "0.3.0"
"version": "0.4.0"
}
2 changes: 1 addition & 1 deletion test/lib_adec/de_unit_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018-2021 XMOS LIMITED.
# Copyright 2022 XMOS LIMITED.
# This Software is subject to the terms of the XMOS Public Licence: Version 1.
from builtins import str
import os.path
Expand Down
Loading

0 comments on commit af0afb5

Please sign in to comment.