Mercurial > pygar
view common/InterfaceTypes.bsv @ 27:e5448315b892 pygar svn.28
[svn r28] Cleaning up duplicate files.
author | punk |
---|---|
date | Fri, 30 Apr 2010 09:09:59 -0400 |
parents | 91a1f76ddd62 |
children |
line wrap: on
line source
1 import Trace::*;3 `define MAX_VOICES 44 `define MAX_CORES 165 `define MAX_PATH_LENGTH 87 // The path is hardwired and so should never be stored in a register. Therefore int type rather than Bit type9 typedef Bit#(32) MemAddr;10 typedef Int#(TLog#(MAX_CORES+2)) PathId;12 //The mixer is identified as PathId 0, path end is max13 PathId mixerId = 0;14 PathId endId = MAX_CORES+1;16 // Path is array of path ids17 typedef Vector#(MAX_PATH_LENGTH, PathId) CorePath;18 typedef struct19 {20 MemAddr startAddr;21 CorePath route;22 } FullPath deriving(Eq, Bits);24 Vector#(MAX_VOICES, FullPath) routeTable;25 routeTable[0] = {startAddr: 12, route: {1, 2, 3, 0, endId, endId, endId, endId}}