From 1a87eef3e253b94d5026cc1f56726db2695964d1 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Tue, 30 Aug 2016 10:40:14 -0700 Subject: [PATCH] tilelink2: add atomic message types --- uncore/src/main/scala/tilelink2/Bundles.scala | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/uncore/src/main/scala/tilelink2/Bundles.scala b/uncore/src/main/scala/tilelink2/Bundles.scala index 1e405955..a599b36e 100644 --- a/uncore/src/main/scala/tilelink2/Bundles.scala +++ b/uncore/src/main/scala/tilelink2/Bundles.scala @@ -85,10 +85,19 @@ object TLPermissions object TLAtomics { // Arithmetic types - def isArithmetic(x: UInt) = Bool(true) + val MIN = UInt(0) + val MAX = UInt(1) + val MINU = UInt(2) + val MAXU = UInt(3) + val ADD = UInt(4) + def isArithmetic(x: UInt) = x <= ADD // Logical types - def isLogical(x: UInt) = Bool(true) + val XOR = UInt(0) + val OR = UInt(1) + val AND = UInt(2) + val SWAP = UInt(3) + def isLogical(x: UInt) = x <= SWAP } class Bogus