tilelink2: prototype crossbar implementation

This commit is contained in:
Wesley W. Terpstra committed 2016-09-05 20:58:37 -07:00
1 parent 34f65938b6
commit e506309998
3 files changed
+213 -2

No files matched your search

@@ -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)