diff core/src/PathTypes.bsv @ 4:c4438eca4bc4 pygar svn.5

[svn r5] Updates to PathTypes and addition of RoutingTable
author punk
date Wed, 21 Apr 2010 06:51:11 -0400
parents 996f1d6cd010
children 7393cd19371e
line wrap: on
line diff
     1.1 --- a/core/src/PathTypes.bsv	Tue Apr 20 20:09:46 2010 -0400
     1.2 +++ b/core/src/PathTypes.bsv	Wed Apr 21 06:51:11 2010 -0400
     1.3 @@ -20,15 +20,12 @@
     1.4  
     1.5  // Path is array of path ids
     1.6  typedef Vector#(`MAX_PATH_LENGTH,  PathId) CorePath;
     1.7 +CorePath emptyCore = replicate(endId);
     1.8 +
     1.9  typedef struct
    1.10  {
    1.11 +  VoiceId   voice;
    1.12    MemAddr   startAddr;
    1.13    CorePath  route;
    1.14 - } FullPath deriving(Eq, Bits);
    1.15 -	     
    1.16 -vector#(`MAX_VOICES, FullPath) routeTable;
    1.17 -CorePath aroute = {1, 2};
    1.18 -routeTable  =  {{12, aroute},{1, aroute}};
    1.19 +} FullPath deriving (Bits, Eq);
    1.20  
    1.21 - 
    1.22 -