[17] | 1 | --------------------------------------------------------------------------------- |
---|
| 2 | -- Company: |
---|
| 3 | -- Engineer: KIEGAING EMMANUEL GEL EN 5 |
---|
| 4 | -- |
---|
| 5 | -- Create Date: 03:56:34 05/06/2011 |
---|
| 6 | -- Design Name: |
---|
| 7 | -- Module Name: Sheduler - Behavioral |
---|
| 8 | -- Project Name: |
---|
| 9 | -- Target Devices: |
---|
| 10 | -- Tool versions: |
---|
| 11 | -- Description: Module de l'ordonnanceur du switch crossbar |
---|
| 12 | -- l'algorithme utilisée est le DPA (diagonal propagation arbiter) |
---|
| 13 | -- |
---|
| 14 | -- Dependencies: |
---|
| 15 | -- |
---|
| 16 | -- Revision: |
---|
| 17 | -- Revision 0.01 - File Created |
---|
| 18 | -- Additional Comments: |
---|
| 19 | -- |
---|
| 20 | ---------------------------------------------------------------------------------- |
---|
| 21 | library IEEE; |
---|
| 22 | use IEEE.STD_LOGIC_1164.ALL; |
---|
| 23 | use IEEE.STD_LOGIC_ARITH.ALL; |
---|
| 24 | use IEEE.STD_LOGIC_UNSIGNED.ALL; |
---|
| 25 | --use Work.Sheduler_package.all; |
---|
| 26 | |
---|
| 27 | ---- Uncomment the following library declaration if instantiating |
---|
| 28 | ---- any Xilinx primitives in this code. |
---|
| 29 | --library UNISIM; |
---|
| 30 | --use UNISIM.VComponents.all; |
---|
| 31 | entity Scheduler5_5 is |
---|
| 32 | Port ( Request : in STD_LOGIC_VECTOR (25 downto 1); |
---|
| 33 | Fifo_full : in STD_LOGIC_VECTOR (5 downto 1); |
---|
| 34 | clk : in STD_LOGIC; |
---|
| 35 | reset : in STD_LOGIC; |
---|
| 36 | priority_rotation : in STD_LOGIC_VECTOR (5 downto 1); |
---|
| 37 | port_grant : out STD_LOGIC_VECTOR (25 downto 1)); |
---|
| 38 | end Scheduler5_5; |
---|
| 39 | |
---|
| 40 | architecture Behavioral of Scheduler5_5 is |
---|
| 41 | --Declaration du types |
---|
| 42 | --tableau de signaux de connexion des cellules arbitres |
---|
| 43 | TYPE C_Bar_Signal_Array IS ARRAY(9 downto 1) of STD_LOGIC_VECTOR(5 downto 1); |
---|
| 44 | -- declaration du composant cellule d'arbitrage |
---|
| 45 | Component Arbiter |
---|
| 46 | PORT (P, Fifo_full,Request, West,North : in STD_LOGIC; |
---|
| 47 | Grant,East,South : out STD_LOGIC ); |
---|
| 48 | End Component;--Signaux de connexion des cellues |
---|
| 49 | SIGNAL south_2_north : C_Bar_Signal_Array; -- connexion south north |
---|
| 50 | SIGNAL east_2_west : C_Bar_Signal_Array; -- connexion east west |
---|
| 51 | SIGNAL Signal_mask : C_Bar_Signal_Array;-- connexion des masques de priorité |
---|
| 52 | SIGNAL Signal_grant : C_Bar_Signal_Array;-- connexion des signaux de validation |
---|
| 53 | SIGNAL Signal_priority : STD_LOGIC_VECTOR (9 DOWNTO 1);--signal pour la connection des vecteur de priorité |
---|
| 54 | SIGNAL High : std_logic;--niveau pour les cellules des extremités nord et ouest |
---|
| 55 | signal grant_latch : std_logic_vector(25 downto 1); |
---|
| 56 | signal priority_rotation_en : std_logic; |
---|
| 57 | signal Grant ,req_grant: std_logic_vector(25 downto 1); |
---|
| 58 | begin |
---|
| 59 | |
---|
| 60 | --validation de la rotation de priorité lorsque aucun port n'emet |
---|
| 61 | req_grant<=(request and grant_latch); |
---|
| 62 | priority_rotation_en <= '1' when unsigned(req_grant) = 0 or unsigned(priority_rotation) = 31 else '0'; |
---|
| 63 | --latch servant qui memorise le signal grant pendant a transmission |
---|
| 64 | grant_latch_process : process(clk) |
---|
| 65 | begin |
---|
| 66 | if rising_edge(clk) then |
---|
| 67 | if reset = '1' then |
---|
| 68 | grant_latch <= (others => '0'); |
---|
| 69 | elsif priority_rotation_en = '1' then |
---|
| 70 | grant_latch <= Grant; |
---|
| 71 | end if; |
---|
| 72 | end if; |
---|
| 73 | end process; |
---|
| 74 | port_grant <= grant_latch; |
---|
| 75 | Grant(1) <= Signal_grant(1)(1) or Signal_grant(6)(1); -- Grant(1,1) |
---|
| 76 | Grant(2) <= Signal_grant(2)(2) or Signal_grant(7)(2); -- Grant(1,2) |
---|
| 77 | Grant(3) <= Signal_grant(3)(3) or Signal_grant(8)(3); -- Grant(1,3) |
---|
| 78 | Grant(4) <= Signal_grant(4)(4) or Signal_grant(9)(4); -- Grant(1,4) |
---|
| 79 | Grant(5) <= Signal_grant(5)(5) ; -- Grant(1,5) |
---|
| 80 | Grant(6) <= Signal_grant(2)(1) or Signal_grant(7)(1); -- Grant(2,1) |
---|
| 81 | Grant(7) <= Signal_grant(3)(2) or Signal_grant(8)(2); -- Grant(2,2) |
---|
| 82 | Grant(8) <= Signal_grant(4)(3) or Signal_grant(9)(3); -- Grant(2,3) |
---|
| 83 | Grant(9) <= Signal_grant(5)(4) ; -- Grant(2,4) |
---|
| 84 | Grant(10) <= Signal_grant(1)(5) or Signal_grant(6)(5); -- Grant(2,5) |
---|
| 85 | Grant(11) <= Signal_grant(3)(1) or Signal_grant(8)(1); -- Grant(3,1) |
---|
| 86 | Grant(12) <= Signal_grant(4)(2) or Signal_grant(9)(2); -- Grant(3,2) |
---|
| 87 | Grant(13) <= Signal_grant(5)(3) ; -- Grant(3,3) |
---|
| 88 | Grant(14) <= Signal_grant(1)(4) or Signal_grant(6)(4); -- Grant(3,4) |
---|
| 89 | Grant(15) <= Signal_grant(2)(5) or Signal_grant(7)(5); -- Grant(3,5) |
---|
| 90 | Grant(16) <= Signal_grant(4)(1) or Signal_grant(9)(1); -- Grant(4,1) |
---|
| 91 | Grant(17) <= Signal_grant(5)(2) ; -- Grant(4,2) |
---|
| 92 | Grant(18) <= Signal_grant(1)(3) or Signal_grant(6)(3); -- Grant(4,3) |
---|
| 93 | Grant(19) <= Signal_grant(2)(4) or Signal_grant(7)(4); -- Grant(4,4) |
---|
| 94 | Grant(20) <= Signal_grant(3)(5) or Signal_grant(8)(5); -- Grant(4,5) |
---|
| 95 | Grant(21) <= Signal_grant(5)(1) ; -- Grant(5,1) |
---|
| 96 | Grant(22) <= Signal_grant(1)(2) or Signal_grant(6)(2); -- Grant(5,2) |
---|
| 97 | Grant(23) <= Signal_grant(2)(3) or Signal_grant(7)(3); -- Grant(5,3) |
---|
| 98 | Grant(24) <= Signal_grant(3)(4) or Signal_grant(8)(4); -- Grant(5,4) |
---|
| 99 | Grant(25) <= Signal_grant(4)(5) or Signal_grant(9)(5); -- Grant(5,5) |
---|
| 100 | High <= '1'; |
---|
| 101 | |
---|
| 102 | ----instantiations des cellules arbitres et interconnection |
---|
| 103 | |
---|
| 104 | -------------------------- Diagonale n° 1 |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | Arbiter_1_1 : Arbiter |
---|
| 108 | |
---|
| 109 | PORT MAP (Request => Request(1), North => High, West => High, P => Signal_priority(9), Fifo_full => Fifo_full(1), |
---|
| 110 | South => south_2_north(1)(1), East => east_2_west(1)(1) , Grant => Signal_grant(1)(1)); |
---|
| 111 | |
---|
| 112 | Arbiter_1_2 : Arbiter |
---|
| 113 | |
---|
| 114 | PORT MAP (Request => Request(22), North => High, West => High, P => Signal_priority(9), Fifo_full => Fifo_full(2), |
---|
| 115 | South => south_2_north(1)(2), East => east_2_west(1)(2) , Grant => Signal_grant(1)(2)); |
---|
| 116 | |
---|
| 117 | Arbiter_1_3 : Arbiter |
---|
| 118 | |
---|
| 119 | PORT MAP (Request => Request(18), North => High, West => High, P => Signal_priority(9), Fifo_full => Fifo_full(3), |
---|
| 120 | South => south_2_north(1)(3), East => east_2_west(1)(3) , Grant => Signal_grant(1)(3)); |
---|
| 121 | |
---|
| 122 | Arbiter_1_4 : Arbiter |
---|
| 123 | |
---|
| 124 | PORT MAP (Request => Request(14), North => High, West => High, P => Signal_priority(9), Fifo_full => Fifo_full(4), |
---|
| 125 | South => south_2_north(1)(4), East => east_2_west(1)(4) , Grant => Signal_grant(1)(4)); |
---|
| 126 | |
---|
| 127 | Arbiter_1_5 : Arbiter |
---|
| 128 | |
---|
| 129 | PORT MAP (Request => Request(10), North => High, West => High, P => Signal_priority(9), Fifo_full => Fifo_full(5), |
---|
| 130 | South => south_2_north(1)(5), East => east_2_west(1)(5) , Grant => Signal_grant(1)(5)); |
---|
| 131 | |
---|
| 132 | -------------------------- Diagonale n° 2 |
---|
| 133 | |
---|
| 134 | |
---|
| 135 | Arbiter_2_1 : Arbiter |
---|
| 136 | |
---|
| 137 | PORT MAP (Request => Request(6), North => south_2_north(1)(1), West => east_2_west(1)(5), P => Signal_priority(8), Fifo_full => Fifo_full(1), |
---|
| 138 | South => south_2_north(2)(1), East => east_2_west(2)(1) , Grant => Signal_grant(2)(1)); |
---|
| 139 | |
---|
| 140 | Arbiter_2_2 : Arbiter |
---|
| 141 | |
---|
| 142 | PORT MAP (Request => Request(2), North => south_2_north(1)(2), West => east_2_west(1)(1), P => Signal_priority(8), Fifo_full => Fifo_full(2), |
---|
| 143 | South => south_2_north(2)(2), East => east_2_west(2)(2) , Grant => Signal_grant(2)(2)); |
---|
| 144 | |
---|
| 145 | Arbiter_2_3 : Arbiter |
---|
| 146 | |
---|
| 147 | PORT MAP (Request => Request(23), North => south_2_north(1)(3), West => east_2_west(1)(2), P => Signal_priority(8), Fifo_full => Fifo_full(3), |
---|
| 148 | South => south_2_north(2)(3), East => east_2_west(2)(3) , Grant => Signal_grant(2)(3)); |
---|
| 149 | |
---|
| 150 | Arbiter_2_4 : Arbiter |
---|
| 151 | |
---|
| 152 | PORT MAP (Request => Request(19), North => south_2_north(1)(4), West => east_2_west(1)(3), P => Signal_priority(8), Fifo_full => Fifo_full(4), |
---|
| 153 | South => south_2_north(2)(4), East => east_2_west(2)(4) , Grant => Signal_grant(2)(4)); |
---|
| 154 | |
---|
| 155 | Arbiter_2_5 : Arbiter |
---|
| 156 | |
---|
| 157 | PORT MAP (Request => Request(15), North => south_2_north(1)(5), West => east_2_west(1)(4), P => Signal_priority(8), Fifo_full => Fifo_full(5), |
---|
| 158 | South => south_2_north(2)(5), East => east_2_west(2)(5) , Grant => Signal_grant(2)(5)); |
---|
| 159 | |
---|
| 160 | -------------------------- Diagonale n° 3 |
---|
| 161 | |
---|
| 162 | |
---|
| 163 | Arbiter_3_1 : Arbiter |
---|
| 164 | |
---|
| 165 | PORT MAP (Request => Request(11), North => south_2_north(2)(1), West => east_2_west(2)(5), P => Signal_priority(7), Fifo_full => Fifo_full(1), |
---|
| 166 | South => south_2_north(3)(1), East => east_2_west(3)(1) , Grant => Signal_grant(3)(1)); |
---|
| 167 | |
---|
| 168 | Arbiter_3_2 : Arbiter |
---|
| 169 | |
---|
| 170 | PORT MAP (Request => Request(7), North => south_2_north(2)(2), West => east_2_west(2)(1), P => Signal_priority(7), Fifo_full => Fifo_full(2), |
---|
| 171 | South => south_2_north(3)(2), East => east_2_west(3)(2) , Grant => Signal_grant(3)(2)); |
---|
| 172 | |
---|
| 173 | Arbiter_3_3 : Arbiter |
---|
| 174 | |
---|
| 175 | PORT MAP (Request => Request(3), North => south_2_north(2)(3), West => east_2_west(2)(2), P => Signal_priority(7), Fifo_full => Fifo_full(3), |
---|
| 176 | South => south_2_north(3)(3), East => east_2_west(3)(3) , Grant => Signal_grant(3)(3)); |
---|
| 177 | |
---|
| 178 | Arbiter_3_4 : Arbiter |
---|
| 179 | |
---|
| 180 | PORT MAP (Request => Request(24), North => south_2_north(2)(4), West => east_2_west(2)(3), P => Signal_priority(7), Fifo_full => Fifo_full(4), |
---|
| 181 | South => south_2_north(3)(4), East => east_2_west(3)(4) , Grant => Signal_grant(3)(4)); |
---|
| 182 | |
---|
| 183 | Arbiter_3_5 : Arbiter |
---|
| 184 | |
---|
| 185 | PORT MAP (Request => Request(20), North => south_2_north(2)(5), West => east_2_west(2)(4), P => Signal_priority(7), Fifo_full => Fifo_full(5), |
---|
| 186 | South => south_2_north(3)(5), East => east_2_west(3)(5) , Grant => Signal_grant(3)(5)); |
---|
| 187 | |
---|
| 188 | -------------------------- Diagonale n° 4 |
---|
| 189 | |
---|
| 190 | |
---|
| 191 | Arbiter_4_1 : Arbiter |
---|
| 192 | |
---|
| 193 | PORT MAP (Request => Request(16), North => south_2_north(3)(1), West => east_2_west(3)(5), P => Signal_priority(6), Fifo_full => Fifo_full(1), |
---|
| 194 | South => south_2_north(4)(1), East => east_2_west(4)(1) , Grant => Signal_grant(4)(1)); |
---|
| 195 | |
---|
| 196 | Arbiter_4_2 : Arbiter |
---|
| 197 | |
---|
| 198 | PORT MAP (Request => Request(12), North => south_2_north(3)(2), West => east_2_west(3)(1), P => Signal_priority(6), Fifo_full => Fifo_full(2), |
---|
| 199 | South => south_2_north(4)(2), East => east_2_west(4)(2) , Grant => Signal_grant(4)(2)); |
---|
| 200 | |
---|
| 201 | Arbiter_4_3 : Arbiter |
---|
| 202 | |
---|
| 203 | PORT MAP (Request => Request(8), North => south_2_north(3)(3), West => east_2_west(3)(2), P => Signal_priority(6), Fifo_full => Fifo_full(3), |
---|
| 204 | South => south_2_north(4)(3), East => east_2_west(4)(3) , Grant => Signal_grant(4)(3)); |
---|
| 205 | |
---|
| 206 | Arbiter_4_4 : Arbiter |
---|
| 207 | |
---|
| 208 | PORT MAP (Request => Request(4), North => south_2_north(3)(4), West => east_2_west(3)(3), P => Signal_priority(6), Fifo_full => Fifo_full(4), |
---|
| 209 | South => south_2_north(4)(4), East => east_2_west(4)(4) , Grant => Signal_grant(4)(4)); |
---|
| 210 | |
---|
| 211 | Arbiter_4_5 : Arbiter |
---|
| 212 | |
---|
| 213 | PORT MAP (Request => Request(25), North => south_2_north(3)(5), West => east_2_west(3)(4), P => Signal_priority(6), Fifo_full => Fifo_full(5), |
---|
| 214 | South => south_2_north(4)(5), East => east_2_west(4)(5) , Grant => Signal_grant(4)(5)); |
---|
| 215 | |
---|
| 216 | -------------------------- Diagonale n° 5 |
---|
| 217 | |
---|
| 218 | |
---|
| 219 | Arbiter_5_1 : Arbiter |
---|
| 220 | |
---|
| 221 | PORT MAP (Request => Request(21), North => south_2_north(4)(1), West => east_2_west(4)(5), P => Signal_priority(5), Fifo_full => Fifo_full(1), |
---|
| 222 | South => south_2_north(5)(1), East => east_2_west(5)(1) , Grant => Signal_grant(5)(1)); |
---|
| 223 | |
---|
| 224 | Arbiter_5_2 : Arbiter |
---|
| 225 | |
---|
| 226 | PORT MAP (Request => Request(17), North => south_2_north(4)(2), West => east_2_west(4)(1), P => Signal_priority(5), Fifo_full => Fifo_full(2), |
---|
| 227 | South => south_2_north(5)(2), East => east_2_west(5)(2) , Grant => Signal_grant(5)(2)); |
---|
| 228 | |
---|
| 229 | Arbiter_5_3 : Arbiter |
---|
| 230 | |
---|
| 231 | PORT MAP (Request => Request(13), North => south_2_north(4)(3), West => east_2_west(4)(2), P => Signal_priority(5), Fifo_full => Fifo_full(3), |
---|
| 232 | South => south_2_north(5)(3), East => east_2_west(5)(3) , Grant => Signal_grant(5)(3)); |
---|
| 233 | |
---|
| 234 | Arbiter_5_4 : Arbiter |
---|
| 235 | |
---|
| 236 | PORT MAP (Request => Request(9), North => south_2_north(4)(4), West => east_2_west(4)(3), P => Signal_priority(5), Fifo_full => Fifo_full(4), |
---|
| 237 | South => south_2_north(5)(4), East => east_2_west(5)(4) , Grant => Signal_grant(5)(4)); |
---|
| 238 | |
---|
| 239 | Arbiter_5_5 : Arbiter |
---|
| 240 | |
---|
| 241 | PORT MAP (Request => Request(5), North => south_2_north(4)(5), West => east_2_west(4)(4), P => Signal_priority(5), Fifo_full => Fifo_full(5), |
---|
| 242 | South => south_2_north(5)(5), East => east_2_west(5)(5) , Grant => Signal_grant(5)(5)); |
---|
| 243 | |
---|
| 244 | -------------------------- Diagonale n° 6 |
---|
| 245 | |
---|
| 246 | |
---|
| 247 | Arbiter_6_1 : Arbiter |
---|
| 248 | |
---|
| 249 | PORT MAP (Request => Request(1), North => south_2_north(5)(1), West => east_2_west(5)(5), P => Signal_priority(4), Fifo_full => Fifo_full(1), |
---|
| 250 | South => south_2_north(6)(1), East => east_2_west(6)(1) , Grant => Signal_grant(6)(1)); |
---|
| 251 | |
---|
| 252 | Arbiter_6_2 : Arbiter |
---|
| 253 | |
---|
| 254 | PORT MAP (Request => Request(22), North => south_2_north(5)(2), West => east_2_west(5)(1), P => Signal_priority(4), Fifo_full => Fifo_full(2), |
---|
| 255 | South => south_2_north(6)(2), East => east_2_west(6)(2) , Grant => Signal_grant(6)(2)); |
---|
| 256 | |
---|
| 257 | Arbiter_6_3 : Arbiter |
---|
| 258 | |
---|
| 259 | PORT MAP (Request => Request(18), North => south_2_north(5)(3), West => east_2_west(5)(2), P => Signal_priority(4), Fifo_full => Fifo_full(3), |
---|
| 260 | South => south_2_north(6)(3), East => east_2_west(6)(3) , Grant => Signal_grant(6)(3)); |
---|
| 261 | |
---|
| 262 | Arbiter_6_4 : Arbiter |
---|
| 263 | |
---|
| 264 | PORT MAP (Request => Request(14), North => south_2_north(5)(4), West => east_2_west(5)(3), P => Signal_priority(4), Fifo_full => Fifo_full(4), |
---|
| 265 | South => south_2_north(6)(4), East => east_2_west(6)(4) , Grant => Signal_grant(6)(4)); |
---|
| 266 | |
---|
| 267 | Arbiter_6_5 : Arbiter |
---|
| 268 | |
---|
| 269 | PORT MAP (Request => Request(10), North => south_2_north(5)(5), West => east_2_west(5)(4), P => Signal_priority(4), Fifo_full => Fifo_full(5), |
---|
| 270 | South => south_2_north(6)(5), East => east_2_west(6)(5) , Grant => Signal_grant(6)(5)); |
---|
| 271 | |
---|
| 272 | -------------------------- Diagonale n° 7 |
---|
| 273 | |
---|
| 274 | |
---|
| 275 | Arbiter_7_1 : Arbiter |
---|
| 276 | |
---|
| 277 | PORT MAP (Request => Request(6), North => south_2_north(6)(1), West => east_2_west(6)(5), P => Signal_priority(3), Fifo_full => Fifo_full(1), |
---|
| 278 | South => south_2_north(7)(1), East => east_2_west(7)(1) , Grant => Signal_grant(7)(1)); |
---|
| 279 | |
---|
| 280 | Arbiter_7_2 : Arbiter |
---|
| 281 | |
---|
| 282 | PORT MAP (Request => Request(2), North => south_2_north(6)(2), West => east_2_west(6)(1), P => Signal_priority(3), Fifo_full => Fifo_full(2), |
---|
| 283 | South => south_2_north(7)(2), East => east_2_west(7)(2) , Grant => Signal_grant(7)(2)); |
---|
| 284 | |
---|
| 285 | Arbiter_7_3 : Arbiter |
---|
| 286 | |
---|
| 287 | PORT MAP (Request => Request(23), North => south_2_north(6)(3), West => east_2_west(6)(2), P => Signal_priority(3), Fifo_full => Fifo_full(3), |
---|
| 288 | South => south_2_north(7)(3), East => east_2_west(7)(3) , Grant => Signal_grant(7)(3)); |
---|
| 289 | |
---|
| 290 | Arbiter_7_4 : Arbiter |
---|
| 291 | |
---|
| 292 | PORT MAP (Request => Request(19), North => south_2_north(6)(4), West => east_2_west(6)(3), P => Signal_priority(3), Fifo_full => Fifo_full(4), |
---|
| 293 | South => south_2_north(7)(4), East => east_2_west(7)(4) , Grant => Signal_grant(7)(4)); |
---|
| 294 | |
---|
| 295 | Arbiter_7_5 : Arbiter |
---|
| 296 | |
---|
| 297 | PORT MAP (Request => Request(15), North => south_2_north(6)(5), West => east_2_west(6)(4), P => Signal_priority(3), Fifo_full => Fifo_full(5), |
---|
| 298 | South => south_2_north(7)(5), East => east_2_west(7)(5) , Grant => Signal_grant(7)(5)); |
---|
| 299 | |
---|
| 300 | -------------------------- Diagonale n° 8 |
---|
| 301 | |
---|
| 302 | |
---|
| 303 | Arbiter_8_1 : Arbiter |
---|
| 304 | |
---|
| 305 | PORT MAP (Request => Request(11), North => south_2_north(7)(1), West => east_2_west(7)(5), P => Signal_priority(2), Fifo_full => Fifo_full(1), |
---|
| 306 | South => south_2_north(8)(1), East => east_2_west(8)(1) , Grant => Signal_grant(8)(1)); |
---|
| 307 | |
---|
| 308 | Arbiter_8_2 : Arbiter |
---|
| 309 | |
---|
| 310 | PORT MAP (Request => Request(7), North => south_2_north(7)(2), West => east_2_west(7)(1), P => Signal_priority(2), Fifo_full => Fifo_full(2), |
---|
| 311 | South => south_2_north(8)(2), East => east_2_west(8)(2) , Grant => Signal_grant(8)(2)); |
---|
| 312 | |
---|
| 313 | Arbiter_8_3 : Arbiter |
---|
| 314 | |
---|
| 315 | PORT MAP (Request => Request(3), North => south_2_north(7)(3), West => east_2_west(7)(2), P => Signal_priority(2), Fifo_full => Fifo_full(3), |
---|
| 316 | South => south_2_north(8)(3), East => east_2_west(8)(3) , Grant => Signal_grant(8)(3)); |
---|
| 317 | |
---|
| 318 | Arbiter_8_4 : Arbiter |
---|
| 319 | |
---|
| 320 | PORT MAP (Request => Request(24), North => south_2_north(7)(4), West => east_2_west(7)(3), P => Signal_priority(2), Fifo_full => Fifo_full(4), |
---|
| 321 | South => south_2_north(8)(4), East => east_2_west(8)(4) , Grant => Signal_grant(8)(4)); |
---|
| 322 | |
---|
| 323 | Arbiter_8_5 : Arbiter |
---|
| 324 | |
---|
| 325 | PORT MAP (Request => Request(20), North => south_2_north(7)(5), West => east_2_west(7)(4), P => Signal_priority(2), Fifo_full => Fifo_full(5), |
---|
| 326 | South => south_2_north(8)(5), East => east_2_west(8)(5) , Grant => Signal_grant(8)(5)); |
---|
| 327 | |
---|
| 328 | -------------------------- Diagonale n° 9 |
---|
| 329 | |
---|
| 330 | |
---|
| 331 | Arbiter_9_1 : Arbiter |
---|
| 332 | |
---|
| 333 | PORT MAP (Request => Request(16), North => south_2_north(8)(1), West => east_2_west(8)(5), P => Signal_priority(1), Fifo_full => Fifo_full(1), |
---|
| 334 | South => south_2_north(9)(1), East => east_2_west(9)(1) , Grant => Signal_grant(9)(1)); |
---|
| 335 | |
---|
| 336 | Arbiter_9_2 : Arbiter |
---|
| 337 | |
---|
| 338 | PORT MAP (Request => Request(12), North => south_2_north(8)(2), West => east_2_west(8)(1), P => Signal_priority(1), Fifo_full => Fifo_full(2), |
---|
| 339 | South => south_2_north(9)(2), East => east_2_west(9)(2) , Grant => Signal_grant(9)(2)); |
---|
| 340 | |
---|
| 341 | Arbiter_9_3 : Arbiter |
---|
| 342 | |
---|
| 343 | PORT MAP (Request => Request(8), North => south_2_north(8)(3), West => east_2_west(8)(2), P => Signal_priority(1), Fifo_full => Fifo_full(3), |
---|
| 344 | South => south_2_north(9)(3), East => east_2_west(9)(3) , Grant => Signal_grant(9)(3)); |
---|
| 345 | |
---|
| 346 | Arbiter_9_4 : Arbiter |
---|
| 347 | |
---|
| 348 | PORT MAP (Request => Request(4), North => south_2_north(8)(4), West => east_2_west(8)(3), P => Signal_priority(1), Fifo_full => Fifo_full(4), |
---|
| 349 | South => south_2_north(9)(4), East => east_2_west(9)(4) , Grant => Signal_grant(9)(4)); |
---|
| 350 | |
---|
| 351 | Arbiter_9_5 : Arbiter |
---|
| 352 | |
---|
| 353 | PORT MAP (Request => Request(25), North => south_2_north(8)(5), West => east_2_west(8)(4), P => Signal_priority(1), Fifo_full => Fifo_full(5), |
---|
| 354 | South => south_2_north(9)(5), East => east_2_west(9)(5) , Grant => Signal_grant(9)(5)); |
---|
| 355 | |
---|
| 356 | |
---|
| 357 | --processus permettant de roter la priorité des diagonales à chaque front d'horloge |
---|
| 358 | -- rotation round robin |
---|
| 359 | round_robin : process(clk) |
---|
| 360 | begin |
---|
| 361 | if rising_edge(clk) then |
---|
| 362 | if reset ='1' then |
---|
| 363 | Signal_priority <= "111110000"; |
---|
| 364 | elsif priority_rotation_en = '1' then |
---|
| 365 | case Signal_priority is |
---|
| 366 | when "111110000" => Signal_priority <= "011111000"; |
---|
| 367 | when "011111000" => Signal_priority <= "001111100"; |
---|
| 368 | when "001111100" => Signal_priority <= "000111110"; |
---|
| 369 | when "000111110" => Signal_priority <= "000011111"; |
---|
| 370 | when "000011111" => Signal_priority <= "111110000"; |
---|
| 371 | when others => Signal_priority <= "111110000"; |
---|
| 372 | end case; |
---|
| 373 | end if; |
---|
| 374 | end if; |
---|
| 375 | end process; |
---|
| 376 | |
---|
| 377 | end Behavioral; |
---|
| 378 | |
---|