Quicksort Routine(Entity & Architecture)
GENERIC(infile : STRING := "default";
outfile : STRING := "default");
ARCHITECTURE test OF qsort IS
VARIABLE nelements, i, tempint, temppointer : integer;
VARIABLE iarray : integer_array;
VARIABLE fresult : FILE_OPEN_STATUS := STATUS_ERROR;
This is the entity and architecture that “runs” the quicksort routine on a set of data. The data is read and written from files and only variables are used to hold data. The code is sequential in that there is only one process statement and it runs one time through to completion. Therefore, there are no concurrent constructs.