Mercurial > pygar
comparison core/src/PathTypes.bsv @ 7:7393cd19371e pygar svn.8
[svn r8] added volume to routing table and types
author | punk |
---|---|
date | Wed, 21 Apr 2010 23:37:12 -0400 |
parents | c4438eca4bc4 |
children |
comparison
equal
deleted
inserted
replaced
6:cdad17407328 | 7:7393cd19371e |
---|---|
10 | 10 |
11 typedef Bit#(32) MemAddr; | 11 typedef Bit#(32) MemAddr; |
12 typedef Int#(TLog#(`MAX_PATH_IDS)) PathId; | 12 typedef Int#(TLog#(`MAX_PATH_IDS)) PathId; |
13 typedef Int#(24) Sample; | 13 typedef Int#(24) Sample; |
14 typedef Int#(TLog#(`MAX_VOICES)) VoiceId; | 14 typedef Int#(TLog#(`MAX_VOICES)) VoiceId; |
15 | 15 typedef Bit#(8) Volume; // This is arbitrarily set to 8 bits or max val 256 |
16 | 16 |
17 //The mixer is identified as PathId 0, path end is max | 17 //The mixer is identified as PathId 0, path end is max |
18 PathId mixerId = 0; | 18 PathId mixerId = 0; |
19 PathId endId = `MAX_CORES+1; | 19 PathId endId = `MAX_CORES+1; |
20 | 20 |
25 typedef struct | 25 typedef struct |
26 { | 26 { |
27 VoiceId voice; | 27 VoiceId voice; |
28 MemAddr startAddr; | 28 MemAddr startAddr; |
29 CorePath route; | 29 CorePath route; |
30 Volume outVol; | |
30 } FullPath deriving (Bits, Eq); | 31 } FullPath deriving (Bits, Eq); |
31 | 32 |