Ignore:
Timestamp:
May 21, 2014, 11:36:19 AM (10 years ago)
Author:
rolagamo
Message:

Ceci est la version 16 bits de la plateforme ainsi que la version hierarchique du NoCNoC

Location:
PROJECT_CORE_MPI/MPI_HCL/BRANCHES/v2.0
Files:
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • PROJECT_CORE_MPI/MPI_HCL/BRANCHES/v2.0/NOC/CoreTypes.vhd

    r101 r139  
    99use IEEE.numeric_std.all;
    1010package CoreTypes is
    11 CONSTANT Word :POSITIVE:= 8;
     11CONSTANT Word :POSITIVE:= 16;
    1212CONSTANT ADRLEN:POSITIVE:=16;
    1313CONSTANT LZFILL :std_logic_vector(2*Word-ADRLEN to 0):=(others=>'0');--indique le nombre de zero à utiliser pour completer le bus de données lorsque la longueur restante du bus d'adresse est inférueure à la largeur du bus de données
     
    3737   array(natural range <>) of std_logic_vector( Word-1 downto 0);
    3838       
     39        type Typ_PortIO8 is
     40   array(natural range <>) of std_logic_vector( 7 downto 0);
    3941        type memory is
    4042        array (natural range <>) of std_logic_vector(word-1 downto 0);
     
    176178end component SWITCH_GEN;
    177179-- déclaration des fonctions utilisées
    178  
     180 function wor (din : std_logic_vector) return std_logic;
     181subtype resolved_or is wor std_logic;
     182
    179183 FUNCTION all_ones(s1:std_logic_vector) return std_logic;
    180184  --This function returns if the input vector has all ones and no zeros
     
    330334variable bit_image: String(1 to 3) := std_logic'image(L);
    331335begin
    332 return(bit_image(1 to 1));
     336return(bit_image(2 to 2));
    333337end function image;
    334338
     
    355359return(RetVal);
    356360end function image;
     361function wor (din : std_logic_vector) return std_logic is
     362begin
     363for i in din'range loop
     364if (din(i)='1') then
     365return din(i);
     366end if;
     367end loop;
     368return '0';
     369end function wor;
     370
    357371end CoreTypes;
Note: See TracChangeset for help on using the changeset viewer.