-- File: Array8Sorter.vhd
-- Generated by MyHDL 0.7dev
-- Date: Thu Sep 30 16:28:52 2010


library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use std.textio.all;

use work.pck_myhdl_07dev.all;

entity Array8Sorter is
    port (
        a0: in unsigned(3 downto 0);
        a1: in unsigned(3 downto 0);
        a2: in unsigned(3 downto 0);
        a3: in unsigned(3 downto 0);
        a4: in unsigned(3 downto 0);
        a5: in unsigned(3 downto 0);
        a6: in unsigned(3 downto 0);
        a7: in unsigned(3 downto 0);
        z0: out unsigned(3 downto 0);
        z1: out unsigned(3 downto 0);
        z2: out unsigned(3 downto 0);
        z3: out unsigned(3 downto 0);
        z4: out unsigned(3 downto 0);
        z5: out unsigned(3 downto 0);
        z6: out unsigned(3 downto 0);
        z7: out unsigned(3 downto 0)
    );
end entity Array8Sorter;


architecture MyHDL of Array8Sorter is

signal sort_merge_hiMerge_hiMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_hiMerge_hiMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_hiMerge_hiMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_hiMerge_hiMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_merge_hiMerge_loMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_hiMerge_loMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_hiMerge_loMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_hiMerge_loMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_merge_hiMerge_comp_1_a1: unsigned(3 downto 0);
signal sort_merge_hiMerge_comp_1_a2: unsigned(3 downto 0);
signal sort_merge_hiMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_hiMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_merge_loMerge_hiMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_loMerge_hiMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_loMerge_hiMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_loMerge_hiMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_merge_loMerge_loMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_loMerge_loMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_merge_loMerge_loMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_loMerge_loMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_merge_loMerge_comp_1_a1: unsigned(3 downto 0);
signal sort_merge_loMerge_comp_1_a2: unsigned(3 downto 0);
signal sort_merge_loMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_loMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_merge_comp_3_a1: unsigned(3 downto 0);
signal sort_merge_comp_3_a2: unsigned(3 downto 0);
signal sort_merge_comp_2_a1: unsigned(3 downto 0);
signal sort_merge_comp_2_a2: unsigned(3 downto 0);
signal sort_merge_comp_1_a1: unsigned(3 downto 0);
signal sort_merge_comp_1_a2: unsigned(3 downto 0);
signal sort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_merge_comp_0_a2: unsigned(3 downto 0);
signal sort_hiSort_merge_hiMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_merge_hiMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_merge_hiMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_hiSort_merge_hiMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_hiSort_merge_loMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_merge_loMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_merge_loMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_hiSort_merge_loMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_hiSort_merge_comp_1_a1: unsigned(3 downto 0);
signal sort_hiSort_merge_comp_1_a2: unsigned(3 downto 0);
signal sort_hiSort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_hiSort_merge_comp_0_a2: unsigned(3 downto 0);
signal sort_hiSort_hiSort_merge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_hiSort_merge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_hiSort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_hiSort_hiSort_merge_comp_0_a2: unsigned(3 downto 0);
signal sort_hiSort_loSort_merge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_loSort_merge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_hiSort_loSort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_hiSort_loSort_merge_comp_0_a2: unsigned(3 downto 0);
signal sort_loSort_merge_hiMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_merge_hiMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_merge_hiMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_loSort_merge_hiMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_loSort_merge_loMerge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_merge_loMerge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_merge_loMerge_comp_0_a1: unsigned(3 downto 0);
signal sort_loSort_merge_loMerge_comp_0_a2: unsigned(3 downto 0);
signal sort_loSort_merge_comp_1_a1: unsigned(3 downto 0);
signal sort_loSort_merge_comp_1_a2: unsigned(3 downto 0);
signal sort_loSort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_loSort_merge_comp_0_a2: unsigned(3 downto 0);
signal sort_loSort_hiSort_merge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_hiSort_merge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_hiSort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_loSort_hiSort_merge_comp_0_a2: unsigned(3 downto 0);
signal sort_loSort_loSort_merge_hiMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_loSort_merge_loMerge_feed_a: unsigned(3 downto 0);
signal sort_loSort_loSort_merge_comp_0_a1: unsigned(3 downto 0);
signal sort_loSort_loSort_merge_comp_0_a2: unsigned(3 downto 0);

begin





sort_loSort_loSort_merge_comp_0_a1 <= a0;



sort_loSort_loSort_merge_comp_0_a2 <= a1;


ARRAY8SORTER_SORT_LOSORT_LOSORT_MERGE_COMP_0_LOGIC: process (sort_loSort_loSort_merge_comp_0_a1, sort_loSort_loSort_merge_comp_0_a2) is
begin
    sort_loSort_loSort_merge_loMerge_feed_a <= sort_loSort_loSort_merge_comp_0_a1;
    sort_loSort_loSort_merge_hiMerge_feed_a <= sort_loSort_loSort_merge_comp_0_a2;
    if ('1' = to_std_logic(sort_loSort_loSort_merge_comp_0_a1 > sort_loSort_loSort_merge_comp_0_a2)) then
        sort_loSort_loSort_merge_loMerge_feed_a <= sort_loSort_loSort_merge_comp_0_a2;
        sort_loSort_loSort_merge_hiMerge_feed_a <= sort_loSort_loSort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_LOSORT_LOSORT_MERGE_COMP_0_LOGIC;



sort_loSort_merge_comp_0_a1 <= sort_loSort_loSort_merge_loMerge_feed_a;



sort_loSort_merge_comp_1_a1 <= sort_loSort_loSort_merge_hiMerge_feed_a;



sort_loSort_hiSort_merge_comp_0_a1 <= a2;



sort_loSort_hiSort_merge_comp_0_a2 <= a3;


ARRAY8SORTER_SORT_LOSORT_HISORT_MERGE_COMP_0_LOGIC: process (sort_loSort_hiSort_merge_comp_0_a1, sort_loSort_hiSort_merge_comp_0_a2) is
begin
    sort_loSort_hiSort_merge_loMerge_feed_a <= sort_loSort_hiSort_merge_comp_0_a1;
    sort_loSort_hiSort_merge_hiMerge_feed_a <= sort_loSort_hiSort_merge_comp_0_a2;
    if ('0' = to_std_logic(sort_loSort_hiSort_merge_comp_0_a1 > sort_loSort_hiSort_merge_comp_0_a2)) then
        sort_loSort_hiSort_merge_loMerge_feed_a <= sort_loSort_hiSort_merge_comp_0_a2;
        sort_loSort_hiSort_merge_hiMerge_feed_a <= sort_loSort_hiSort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_LOSORT_HISORT_MERGE_COMP_0_LOGIC;



sort_loSort_merge_comp_0_a2 <= sort_loSort_hiSort_merge_loMerge_feed_a;



sort_loSort_merge_comp_1_a2 <= sort_loSort_hiSort_merge_hiMerge_feed_a;


ARRAY8SORTER_SORT_LOSORT_MERGE_COMP_0_LOGIC: process (sort_loSort_merge_comp_0_a1, sort_loSort_merge_comp_0_a2) is
begin
    sort_loSort_merge_loMerge_comp_0_a1 <= sort_loSort_merge_comp_0_a1;
    sort_loSort_merge_hiMerge_comp_0_a1 <= sort_loSort_merge_comp_0_a2;
    if ('1' = to_std_logic(sort_loSort_merge_comp_0_a1 > sort_loSort_merge_comp_0_a2)) then
        sort_loSort_merge_loMerge_comp_0_a1 <= sort_loSort_merge_comp_0_a2;
        sort_loSort_merge_hiMerge_comp_0_a1 <= sort_loSort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_LOSORT_MERGE_COMP_0_LOGIC;


ARRAY8SORTER_SORT_LOSORT_MERGE_COMP_1_LOGIC: process (sort_loSort_merge_comp_1_a1, sort_loSort_merge_comp_1_a2) is
begin
    sort_loSort_merge_loMerge_comp_0_a2 <= sort_loSort_merge_comp_1_a1;
    sort_loSort_merge_hiMerge_comp_0_a2 <= sort_loSort_merge_comp_1_a2;
    if ('1' = to_std_logic(sort_loSort_merge_comp_1_a1 > sort_loSort_merge_comp_1_a2)) then
        sort_loSort_merge_loMerge_comp_0_a2 <= sort_loSort_merge_comp_1_a2;
        sort_loSort_merge_hiMerge_comp_0_a2 <= sort_loSort_merge_comp_1_a1;
    end if;
end process ARRAY8SORTER_SORT_LOSORT_MERGE_COMP_1_LOGIC;


ARRAY8SORTER_SORT_LOSORT_MERGE_LOMERGE_COMP_0_LOGIC: process (sort_loSort_merge_loMerge_comp_0_a1, sort_loSort_merge_loMerge_comp_0_a2) is
begin
    sort_loSort_merge_loMerge_loMerge_feed_a <= sort_loSort_merge_loMerge_comp_0_a1;
    sort_loSort_merge_loMerge_hiMerge_feed_a <= sort_loSort_merge_loMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_loSort_merge_loMerge_comp_0_a1 > sort_loSort_merge_loMerge_comp_0_a2)) then
        sort_loSort_merge_loMerge_loMerge_feed_a <= sort_loSort_merge_loMerge_comp_0_a2;
        sort_loSort_merge_loMerge_hiMerge_feed_a <= sort_loSort_merge_loMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_LOSORT_MERGE_LOMERGE_COMP_0_LOGIC;



sort_merge_comp_0_a1 <= sort_loSort_merge_loMerge_loMerge_feed_a;



sort_merge_comp_1_a1 <= sort_loSort_merge_loMerge_hiMerge_feed_a;


ARRAY8SORTER_SORT_LOSORT_MERGE_HIMERGE_COMP_0_LOGIC: process (sort_loSort_merge_hiMerge_comp_0_a1, sort_loSort_merge_hiMerge_comp_0_a2) is
begin
    sort_loSort_merge_hiMerge_loMerge_feed_a <= sort_loSort_merge_hiMerge_comp_0_a1;
    sort_loSort_merge_hiMerge_hiMerge_feed_a <= sort_loSort_merge_hiMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_loSort_merge_hiMerge_comp_0_a1 > sort_loSort_merge_hiMerge_comp_0_a2)) then
        sort_loSort_merge_hiMerge_loMerge_feed_a <= sort_loSort_merge_hiMerge_comp_0_a2;
        sort_loSort_merge_hiMerge_hiMerge_feed_a <= sort_loSort_merge_hiMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_LOSORT_MERGE_HIMERGE_COMP_0_LOGIC;



sort_merge_comp_2_a1 <= sort_loSort_merge_hiMerge_loMerge_feed_a;



sort_merge_comp_3_a1 <= sort_loSort_merge_hiMerge_hiMerge_feed_a;



sort_hiSort_loSort_merge_comp_0_a1 <= a4;



sort_hiSort_loSort_merge_comp_0_a2 <= a5;


ARRAY8SORTER_SORT_HISORT_LOSORT_MERGE_COMP_0_LOGIC: process (sort_hiSort_loSort_merge_comp_0_a1, sort_hiSort_loSort_merge_comp_0_a2) is
begin
    sort_hiSort_loSort_merge_loMerge_feed_a <= sort_hiSort_loSort_merge_comp_0_a1;
    sort_hiSort_loSort_merge_hiMerge_feed_a <= sort_hiSort_loSort_merge_comp_0_a2;
    if ('1' = to_std_logic(sort_hiSort_loSort_merge_comp_0_a1 > sort_hiSort_loSort_merge_comp_0_a2)) then
        sort_hiSort_loSort_merge_loMerge_feed_a <= sort_hiSort_loSort_merge_comp_0_a2;
        sort_hiSort_loSort_merge_hiMerge_feed_a <= sort_hiSort_loSort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_HISORT_LOSORT_MERGE_COMP_0_LOGIC;



sort_hiSort_merge_comp_0_a1 <= sort_hiSort_loSort_merge_loMerge_feed_a;



sort_hiSort_merge_comp_1_a1 <= sort_hiSort_loSort_merge_hiMerge_feed_a;



sort_hiSort_hiSort_merge_comp_0_a1 <= a6;



sort_hiSort_hiSort_merge_comp_0_a2 <= a7;


ARRAY8SORTER_SORT_HISORT_HISORT_MERGE_COMP_0_LOGIC: process (sort_hiSort_hiSort_merge_comp_0_a1, sort_hiSort_hiSort_merge_comp_0_a2) is
begin
    sort_hiSort_hiSort_merge_loMerge_feed_a <= sort_hiSort_hiSort_merge_comp_0_a1;
    sort_hiSort_hiSort_merge_hiMerge_feed_a <= sort_hiSort_hiSort_merge_comp_0_a2;
    if ('0' = to_std_logic(sort_hiSort_hiSort_merge_comp_0_a1 > sort_hiSort_hiSort_merge_comp_0_a2)) then
        sort_hiSort_hiSort_merge_loMerge_feed_a <= sort_hiSort_hiSort_merge_comp_0_a2;
        sort_hiSort_hiSort_merge_hiMerge_feed_a <= sort_hiSort_hiSort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_HISORT_HISORT_MERGE_COMP_0_LOGIC;



sort_hiSort_merge_comp_0_a2 <= sort_hiSort_hiSort_merge_loMerge_feed_a;



sort_hiSort_merge_comp_1_a2 <= sort_hiSort_hiSort_merge_hiMerge_feed_a;


ARRAY8SORTER_SORT_HISORT_MERGE_COMP_0_LOGIC: process (sort_hiSort_merge_comp_0_a1, sort_hiSort_merge_comp_0_a2) is
begin
    sort_hiSort_merge_loMerge_comp_0_a1 <= sort_hiSort_merge_comp_0_a1;
    sort_hiSort_merge_hiMerge_comp_0_a1 <= sort_hiSort_merge_comp_0_a2;
    if ('0' = to_std_logic(sort_hiSort_merge_comp_0_a1 > sort_hiSort_merge_comp_0_a2)) then
        sort_hiSort_merge_loMerge_comp_0_a1 <= sort_hiSort_merge_comp_0_a2;
        sort_hiSort_merge_hiMerge_comp_0_a1 <= sort_hiSort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_HISORT_MERGE_COMP_0_LOGIC;


ARRAY8SORTER_SORT_HISORT_MERGE_COMP_1_LOGIC: process (sort_hiSort_merge_comp_1_a1, sort_hiSort_merge_comp_1_a2) is
begin
    sort_hiSort_merge_loMerge_comp_0_a2 <= sort_hiSort_merge_comp_1_a1;
    sort_hiSort_merge_hiMerge_comp_0_a2 <= sort_hiSort_merge_comp_1_a2;
    if ('0' = to_std_logic(sort_hiSort_merge_comp_1_a1 > sort_hiSort_merge_comp_1_a2)) then
        sort_hiSort_merge_loMerge_comp_0_a2 <= sort_hiSort_merge_comp_1_a2;
        sort_hiSort_merge_hiMerge_comp_0_a2 <= sort_hiSort_merge_comp_1_a1;
    end if;
end process ARRAY8SORTER_SORT_HISORT_MERGE_COMP_1_LOGIC;


ARRAY8SORTER_SORT_HISORT_MERGE_LOMERGE_COMP_0_LOGIC: process (sort_hiSort_merge_loMerge_comp_0_a1, sort_hiSort_merge_loMerge_comp_0_a2) is
begin
    sort_hiSort_merge_loMerge_loMerge_feed_a <= sort_hiSort_merge_loMerge_comp_0_a1;
    sort_hiSort_merge_loMerge_hiMerge_feed_a <= sort_hiSort_merge_loMerge_comp_0_a2;
    if ('0' = to_std_logic(sort_hiSort_merge_loMerge_comp_0_a1 > sort_hiSort_merge_loMerge_comp_0_a2)) then
        sort_hiSort_merge_loMerge_loMerge_feed_a <= sort_hiSort_merge_loMerge_comp_0_a2;
        sort_hiSort_merge_loMerge_hiMerge_feed_a <= sort_hiSort_merge_loMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_HISORT_MERGE_LOMERGE_COMP_0_LOGIC;



sort_merge_comp_0_a2 <= sort_hiSort_merge_loMerge_loMerge_feed_a;



sort_merge_comp_1_a2 <= sort_hiSort_merge_loMerge_hiMerge_feed_a;


ARRAY8SORTER_SORT_HISORT_MERGE_HIMERGE_COMP_0_LOGIC: process (sort_hiSort_merge_hiMerge_comp_0_a1, sort_hiSort_merge_hiMerge_comp_0_a2) is
begin
    sort_hiSort_merge_hiMerge_loMerge_feed_a <= sort_hiSort_merge_hiMerge_comp_0_a1;
    sort_hiSort_merge_hiMerge_hiMerge_feed_a <= sort_hiSort_merge_hiMerge_comp_0_a2;
    if ('0' = to_std_logic(sort_hiSort_merge_hiMerge_comp_0_a1 > sort_hiSort_merge_hiMerge_comp_0_a2)) then
        sort_hiSort_merge_hiMerge_loMerge_feed_a <= sort_hiSort_merge_hiMerge_comp_0_a2;
        sort_hiSort_merge_hiMerge_hiMerge_feed_a <= sort_hiSort_merge_hiMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_HISORT_MERGE_HIMERGE_COMP_0_LOGIC;



sort_merge_comp_2_a2 <= sort_hiSort_merge_hiMerge_loMerge_feed_a;



sort_merge_comp_3_a2 <= sort_hiSort_merge_hiMerge_hiMerge_feed_a;


ARRAY8SORTER_SORT_MERGE_COMP_0_LOGIC: process (sort_merge_comp_0_a1, sort_merge_comp_0_a2) is
begin
    sort_merge_loMerge_comp_0_a1 <= sort_merge_comp_0_a1;
    sort_merge_hiMerge_comp_0_a1 <= sort_merge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_comp_0_a1 > sort_merge_comp_0_a2)) then
        sort_merge_loMerge_comp_0_a1 <= sort_merge_comp_0_a2;
        sort_merge_hiMerge_comp_0_a1 <= sort_merge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_COMP_0_LOGIC;


ARRAY8SORTER_SORT_MERGE_COMP_1_LOGIC: process (sort_merge_comp_1_a1, sort_merge_comp_1_a2) is
begin
    sort_merge_loMerge_comp_1_a1 <= sort_merge_comp_1_a1;
    sort_merge_hiMerge_comp_1_a1 <= sort_merge_comp_1_a2;
    if ('1' = to_std_logic(sort_merge_comp_1_a1 > sort_merge_comp_1_a2)) then
        sort_merge_loMerge_comp_1_a1 <= sort_merge_comp_1_a2;
        sort_merge_hiMerge_comp_1_a1 <= sort_merge_comp_1_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_COMP_1_LOGIC;


ARRAY8SORTER_SORT_MERGE_COMP_2_LOGIC: process (sort_merge_comp_2_a1, sort_merge_comp_2_a2) is
begin
    sort_merge_loMerge_comp_0_a2 <= sort_merge_comp_2_a1;
    sort_merge_hiMerge_comp_0_a2 <= sort_merge_comp_2_a2;
    if ('1' = to_std_logic(sort_merge_comp_2_a1 > sort_merge_comp_2_a2)) then
        sort_merge_loMerge_comp_0_a2 <= sort_merge_comp_2_a2;
        sort_merge_hiMerge_comp_0_a2 <= sort_merge_comp_2_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_COMP_2_LOGIC;


ARRAY8SORTER_SORT_MERGE_COMP_3_LOGIC: process (sort_merge_comp_3_a1, sort_merge_comp_3_a2) is
begin
    sort_merge_loMerge_comp_1_a2 <= sort_merge_comp_3_a1;
    sort_merge_hiMerge_comp_1_a2 <= sort_merge_comp_3_a2;
    if ('1' = to_std_logic(sort_merge_comp_3_a1 > sort_merge_comp_3_a2)) then
        sort_merge_loMerge_comp_1_a2 <= sort_merge_comp_3_a2;
        sort_merge_hiMerge_comp_1_a2 <= sort_merge_comp_3_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_COMP_3_LOGIC;


ARRAY8SORTER_SORT_MERGE_LOMERGE_COMP_0_LOGIC: process (sort_merge_loMerge_comp_0_a1, sort_merge_loMerge_comp_0_a2) is
begin
    sort_merge_loMerge_loMerge_comp_0_a1 <= sort_merge_loMerge_comp_0_a1;
    sort_merge_loMerge_hiMerge_comp_0_a1 <= sort_merge_loMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_loMerge_comp_0_a1 > sort_merge_loMerge_comp_0_a2)) then
        sort_merge_loMerge_loMerge_comp_0_a1 <= sort_merge_loMerge_comp_0_a2;
        sort_merge_loMerge_hiMerge_comp_0_a1 <= sort_merge_loMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_LOMERGE_COMP_0_LOGIC;


ARRAY8SORTER_SORT_MERGE_LOMERGE_COMP_1_LOGIC: process (sort_merge_loMerge_comp_1_a1, sort_merge_loMerge_comp_1_a2) is
begin
    sort_merge_loMerge_loMerge_comp_0_a2 <= sort_merge_loMerge_comp_1_a1;
    sort_merge_loMerge_hiMerge_comp_0_a2 <= sort_merge_loMerge_comp_1_a2;
    if ('1' = to_std_logic(sort_merge_loMerge_comp_1_a1 > sort_merge_loMerge_comp_1_a2)) then
        sort_merge_loMerge_loMerge_comp_0_a2 <= sort_merge_loMerge_comp_1_a2;
        sort_merge_loMerge_hiMerge_comp_0_a2 <= sort_merge_loMerge_comp_1_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_LOMERGE_COMP_1_LOGIC;


ARRAY8SORTER_SORT_MERGE_LOMERGE_LOMERGE_COMP_0_LOGIC: process (sort_merge_loMerge_loMerge_comp_0_a1, sort_merge_loMerge_loMerge_comp_0_a2) is
begin
    sort_merge_loMerge_loMerge_loMerge_feed_a <= sort_merge_loMerge_loMerge_comp_0_a1;
    sort_merge_loMerge_loMerge_hiMerge_feed_a <= sort_merge_loMerge_loMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_loMerge_loMerge_comp_0_a1 > sort_merge_loMerge_loMerge_comp_0_a2)) then
        sort_merge_loMerge_loMerge_loMerge_feed_a <= sort_merge_loMerge_loMerge_comp_0_a2;
        sort_merge_loMerge_loMerge_hiMerge_feed_a <= sort_merge_loMerge_loMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_LOMERGE_LOMERGE_COMP_0_LOGIC;



z0 <= sort_merge_loMerge_loMerge_loMerge_feed_a;



z1 <= sort_merge_loMerge_loMerge_hiMerge_feed_a;


ARRAY8SORTER_SORT_MERGE_LOMERGE_HIMERGE_COMP_0_LOGIC: process (sort_merge_loMerge_hiMerge_comp_0_a1, sort_merge_loMerge_hiMerge_comp_0_a2) is
begin
    sort_merge_loMerge_hiMerge_loMerge_feed_a <= sort_merge_loMerge_hiMerge_comp_0_a1;
    sort_merge_loMerge_hiMerge_hiMerge_feed_a <= sort_merge_loMerge_hiMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_loMerge_hiMerge_comp_0_a1 > sort_merge_loMerge_hiMerge_comp_0_a2)) then
        sort_merge_loMerge_hiMerge_loMerge_feed_a <= sort_merge_loMerge_hiMerge_comp_0_a2;
        sort_merge_loMerge_hiMerge_hiMerge_feed_a <= sort_merge_loMerge_hiMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_LOMERGE_HIMERGE_COMP_0_LOGIC;



z2 <= sort_merge_loMerge_hiMerge_loMerge_feed_a;



z3 <= sort_merge_loMerge_hiMerge_hiMerge_feed_a;


ARRAY8SORTER_SORT_MERGE_HIMERGE_COMP_0_LOGIC: process (sort_merge_hiMerge_comp_0_a1, sort_merge_hiMerge_comp_0_a2) is
begin
    sort_merge_hiMerge_loMerge_comp_0_a1 <= sort_merge_hiMerge_comp_0_a1;
    sort_merge_hiMerge_hiMerge_comp_0_a1 <= sort_merge_hiMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_hiMerge_comp_0_a1 > sort_merge_hiMerge_comp_0_a2)) then
        sort_merge_hiMerge_loMerge_comp_0_a1 <= sort_merge_hiMerge_comp_0_a2;
        sort_merge_hiMerge_hiMerge_comp_0_a1 <= sort_merge_hiMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_HIMERGE_COMP_0_LOGIC;


ARRAY8SORTER_SORT_MERGE_HIMERGE_COMP_1_LOGIC: process (sort_merge_hiMerge_comp_1_a1, sort_merge_hiMerge_comp_1_a2) is
begin
    sort_merge_hiMerge_loMerge_comp_0_a2 <= sort_merge_hiMerge_comp_1_a1;
    sort_merge_hiMerge_hiMerge_comp_0_a2 <= sort_merge_hiMerge_comp_1_a2;
    if ('1' = to_std_logic(sort_merge_hiMerge_comp_1_a1 > sort_merge_hiMerge_comp_1_a2)) then
        sort_merge_hiMerge_loMerge_comp_0_a2 <= sort_merge_hiMerge_comp_1_a2;
        sort_merge_hiMerge_hiMerge_comp_0_a2 <= sort_merge_hiMerge_comp_1_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_HIMERGE_COMP_1_LOGIC;


ARRAY8SORTER_SORT_MERGE_HIMERGE_LOMERGE_COMP_0_LOGIC: process (sort_merge_hiMerge_loMerge_comp_0_a1, sort_merge_hiMerge_loMerge_comp_0_a2) is
begin
    sort_merge_hiMerge_loMerge_loMerge_feed_a <= sort_merge_hiMerge_loMerge_comp_0_a1;
    sort_merge_hiMerge_loMerge_hiMerge_feed_a <= sort_merge_hiMerge_loMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_hiMerge_loMerge_comp_0_a1 > sort_merge_hiMerge_loMerge_comp_0_a2)) then
        sort_merge_hiMerge_loMerge_loMerge_feed_a <= sort_merge_hiMerge_loMerge_comp_0_a2;
        sort_merge_hiMerge_loMerge_hiMerge_feed_a <= sort_merge_hiMerge_loMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_HIMERGE_LOMERGE_COMP_0_LOGIC;



z4 <= sort_merge_hiMerge_loMerge_loMerge_feed_a;



z5 <= sort_merge_hiMerge_loMerge_hiMerge_feed_a;


ARRAY8SORTER_SORT_MERGE_HIMERGE_HIMERGE_COMP_0_LOGIC: process (sort_merge_hiMerge_hiMerge_comp_0_a1, sort_merge_hiMerge_hiMerge_comp_0_a2) is
begin
    sort_merge_hiMerge_hiMerge_loMerge_feed_a <= sort_merge_hiMerge_hiMerge_comp_0_a1;
    sort_merge_hiMerge_hiMerge_hiMerge_feed_a <= sort_merge_hiMerge_hiMerge_comp_0_a2;
    if ('1' = to_std_logic(sort_merge_hiMerge_hiMerge_comp_0_a1 > sort_merge_hiMerge_hiMerge_comp_0_a2)) then
        sort_merge_hiMerge_hiMerge_loMerge_feed_a <= sort_merge_hiMerge_hiMerge_comp_0_a2;
        sort_merge_hiMerge_hiMerge_hiMerge_feed_a <= sort_merge_hiMerge_hiMerge_comp_0_a1;
    end if;
end process ARRAY8SORTER_SORT_MERGE_HIMERGE_HIMERGE_COMP_0_LOGIC;



z6 <= sort_merge_hiMerge_hiMerge_loMerge_feed_a;



z7 <= sort_merge_hiMerge_hiMerge_hiMerge_feed_a;

end architecture MyHDL;
