1
0

tilelink2: prototype crossbar implementation

This commit is contained in:
Wesley W. Terpstra
2016-08-24 13:50:32 -07:00
parent 34f65938b6
commit e506309998
3 changed files with 213 additions and 2 deletions

View File

@ -19,7 +19,6 @@ object RegionType {
case class IdRange(start: Int, end: Int)
{
require (start >= 0)
require (end >= 0)
require (start < end) // not empty
// This is a strict partial ordering
@ -38,6 +37,7 @@ case class IdRange(start: Int, end: Int)
else { UInt(start) <= x && x < UInt(end) }
def shift(x: Int) = IdRange(start+x, end+x)
def size = end - start
}
// An potentially empty inclusive range of 2-powers [min, max] (in bytes)