OpenCores
URL https://opencores.org/ocsvn/async_sdm_noc/async_sdm_noc/trunk

Subversion Repositories async_sdm_noc

[/] [async_sdm_noc/] [trunk/] [common/] [src/] [mnma.v] - Diff between revs 22 and 28

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 22 Rev 28
Line 25... Line 25...
 
 
*/
*/
 
 
module mnma(/*AUTOARG*/
module mnma(/*AUTOARG*/
   // Outputs
   // Outputs
   cfg,
   ra, cfg,
   // Inputs
   // Inputs
   r
   r
   );
   );
   parameter N = 2;             // number of input requests
   parameter N = 2;             // number of input requests
   parameter M = 2;             // number of resources
   parameter M = 2;             // number of resources
 
 
   input [N-1:0][M-1:0]       r;  // input requests
   input [N-1:0][M-1:0]       r;  // input requests
 
   output [N-1:0]              ra;       // ack to input requests
   output [M-1:0][N-1:0]      cfg;        // configuration to the crssbar
   output [M-1:0][N-1:0]      cfg;        // configuration to the crssbar
 
 
   wire [M-1:0][N-1:0]          OPr;
   wire [M-1:0][N-1:0]          OPr;
   wire [M-1:0][N-1:0]          OPg;
   wire [M-1:0][N-1:0]          OPg;
   wire [M-1:0][N-1:0][M-1:0] OPren;
   wire [M-1:0][N-1:0][M-1:0] OPren;
Line 64... Line 65...
         mutex_arb #(M)
         mutex_arb #(M)
         A (
         A (
            .req    ( IPr[i]  ),
            .req    ( IPr[i]  ),
            .gnt    ( IPg[i]  )
            .gnt    ( IPg[i]  )
            );
            );
 
 
 
         // the input ack
 
         assign ra[i] = |IPg[i];
      end
      end
   endgenerate
   endgenerate
 
 
   //--------------------------------------
   //--------------------------------------
   // connections
   // connections

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.