Mercurial > pygar
diff modules/bluespec/Pygar/lab4/FPGATypes.bsv @ 8:74716e9a81cc pygar svn.9
[svn r9] Pygar now has the proper directory structure to play nicely with awb. Also, the apm file for audio-core willcompile successfully.
author | rlm |
---|---|
date | Fri, 23 Apr 2010 02:32:05 -0400 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/modules/bluespec/Pygar/lab4/FPGATypes.bsv Fri Apr 23 02:32:05 2010 -0400 1.3 @@ -0,0 +1,24 @@ 1.4 +typedef 30 AvalonAddressWidth; 1.5 +typedef 32 AvalonDataWidth; 1.6 + 1.7 +// need length + 1 spacing between CBusGet/Puts 1.8 +// Be warned - consider the word size of each address before 1.9 +// assigning new ones!!! 1.10 +// These are word addresses 1.11 +// Multiply by 4 to get byte address 1.12 +typedef 0 ToHostRegAddr; 1.13 +typedef 4 FromHostRegAddr; 1.14 +typedef 8 BreakpointRegAddr; 1.15 +typedef 12 BreakpointClearedAddr; 1.16 +typedef 16 PCRegAddr; 1.17 +typedef 20 StatsEnRegAddr; 1.18 +typedef 24 DCacheNumAccessesRegAddr; 1.19 +typedef 28 DCacheNumMissesRegAddr; 1.20 +typedef 32 DCacheNumWriteBacksRegAddr; 1.21 +typedef 36 ICacheNumAccessesRegAddr; 1.22 +typedef 40 ICacheNumMissesRegAddr; 1.23 +typedef 44 ICacheNumWriteBacksRegAddr; 1.24 +typedef 48 NumCyclesRegAddr; 1.25 +typedef 52 NumInstRegAddr; 1.26 +typedef 256 RegFileAddr; // The regfile is super long. Be careful of assigning conflicting addresses. 1.27 +