22 typedef struct options{
46 void printMatrix(
int **inputMatrix,
int dim1,
int dim2);
66 void printMatrixHighlight(
int **inputMatrix,
int dim1,
int dim2,
int **highlightMatrix,
int dimH1,
int dimH2);
86 char *accessStringFromAccessType(
acc_type type);
88 int compareAddress(
void *a,
void *b);
int error
Variable used when the user arguments generate errors.
Definition: utility.h:28
int N
Horizontal size of the input matrix.
Definition: utility.h:26
scheme s
The mapping scheme used by the PRF.
Definition: utility.h:23
void printUsage(char *programName)
Prints in the console the usage informations.
int M
Vertical size of the input matrix.
Definition: utility.h:27
void printMatrixHighlight(int **inputMatrix, int dim1, int dim2, int **highlightMatrix, int dimH1, int dimH2)
Prints in the console a matrix, highlighing certain elements.
scheme
Enum containing all the available mapping scheme.
Definition: prf.h:43
void printMatrix(int **inputMatrix, int dim1, int dim2)
Prints in the console a formatted 2D matrix.
Data structure used for representing a Polymorphic Register.
Definition: prf.h:73
void performBlockRead(int index_i, int index_j, acc_type type, int **data_elements1, PolymorphicRegister *pR, int mode)
Prints the report information of a block read.
acc_type
Enum containing all the available access types.
Definition: prf.h:57
Data structure used to store the user's given arguments.
Definition: utility.h:22
void printConflicts(int **inputMatrix, int dim1, int dim2)
Prints in the console a conflict matrix, highlighting the conflicts.
int p
Horizontal size of the PRF.
Definition: utility.h:24
int q
Vertical size of the PRF.
Definition: utility.h:25
Options parseArguments(int argc, char **argv)
Parses the user arguments.