32-bit vectors program test
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include <avr32/io.h>
#include "compiler.h"
#include "board.h"
#include "dsp.h"
#include "dsp_debug.h"
#include "sysclk.h"
#include "cycle_counter.h"
Data Structures | |
struct | s_item_menu |
Macros | |
#define | CHECK_CONDITIONS(x_cond) |
#define | NUMBER_OF_MENU_ITEM 14 |
#define | VECT1_SIZE 16 |
#define | VECT2_SIZE 16 |
#define | VECT3_SIZE 16 |
Typedefs | |
typedef int(* | fct_item_menu )(int *) |
Functions | |
int | addition (int *size) |
Function to perform Vector Addition. More... | |
int | convolution (int *size) |
Function to perform Vector Convolution. More... | |
int | copy (int *size) |
Function to perform Vector Copy. More... | |
int | dot_division (int *size) |
Function to perform Vector Dot Division. More... | |
int | dot_multiplication (int *size) |
Function to perform Vector Dot Multiplication. More... | |
int | main (int argc, char *argv[]) |
Main Function. More... | |
int | maximum (int *size) |
Function to find Vector Maximum. More... | |
int | minimum (int *size) |
Function to find Vector Minimum. More... | |
int | negate (int *size) |
Function to perform Vector Negation. More... | |
int | partial_convolution (int *size) |
Function to perform Partial Convolution. More... | |
int | power (int *size) |
Function to perform Vector Power operation. More... | |
int | real_division (int *size) |
Function to perform Vector Real Division. More... | |
int | real_multiplication (int *size) |
Function to perform Vector Real Multiplication. More... | |
int | subtraction (int *size) |
Function to perform Vector Subtraction. More... | |
int | zero_padding (int *size) |
Function to perform Zero Padding to Vector. More... | |
Variables | |
s_item_menu | item_menu [] |
A_ALIGNED dsp32_t | vect1 [VECT1_SIZE] |
A_ALIGNED dsp32_t | vect2 [VECT2_SIZE] |
A_ALIGNED dsp32_t | vect3 [VECT3_SIZE] |
#define CHECK_CONDITIONS | ( | x_cond | ) |
#define NUMBER_OF_MENU_ITEM 14 |
#define VECT1_SIZE 16 |
Referenced by main().
#define VECT2_SIZE 16 |
#define VECT3_SIZE 16 |
typedef int(* fct_item_menu)(int *) |
int addition | ( | int * | size | ) |
Function to perform Vector Addition.
size | Pointer to store output Vector Size |
int convolution | ( | int * | size | ) |
Function to perform Vector Convolution.
size | Pointer to store output Vector Size |
int copy | ( | int * | size | ) |
Function to perform Vector Copy.
size | Pointer to store output Vector Size |
int dot_division | ( | int * | size | ) |
Function to perform Vector Dot Division.
size | Pointer to store output Vector Size |
int dot_multiplication | ( | int * | size | ) |
Function to perform Vector Dot Multiplication.
size | Pointer to store output Vector Size |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main Function.
References s_item_menu::action, dsp32_debug_sprintf(), dsp_debug_initialization, FOSC0, i, item_menu, sysclk_init(), s_item_menu::title, and VECT1_SIZE.
int maximum | ( | int * | size | ) |
Function to find Vector Maximum.
size | Pointer to store output Vector Size |
int minimum | ( | int * | size | ) |
Function to find Vector Minimum.
size | Pointer to store output Vector Size |
int negate | ( | int * | size | ) |
Function to perform Vector Negation.
size | Pointer to store output Vector Size |
int partial_convolution | ( | int * | size | ) |
Function to perform Partial Convolution.
size | Pointer to store output Vector Size |
int power | ( | int * | size | ) |
Function to perform Vector Power operation.
size | Pointer to store output Vector Size |
int real_division | ( | int * | size | ) |
Function to perform Vector Real Division.
size | Pointer to store output Vector Size |
int real_multiplication | ( | int * | size | ) |
Function to perform Vector Real Multiplication.
size | Pointer to store output Vector Size |
int subtraction | ( | int * | size | ) |
Function to perform Vector Subtraction.
size | Pointer to store output Vector Size |
int zero_padding | ( | int * | size | ) |
Function to perform Zero Padding to Vector.
size | Pointer to store output Vector Size |
s_item_menu item_menu[] |
A_ALIGNED dsp32_t vect1[VECT1_SIZE] |
A_ALIGNED dsp32_t vect2[VECT2_SIZE] |
A_ALIGNED dsp32_t vect3[VECT3_SIZE] |