summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel/package.scala
diff options
context:
space:
mode:
authorducky2016-06-01 12:46:05 -0700
committerducky2016-06-08 16:22:28 -0700
commit69c984607e87cb62c82c99056b2664f11b968267 (patch)
tree170bce1cf0f4f3e9ec27ea47660daf10bfc4aeea /src/main/scala/chisel/package.scala
parent66301b9042530a5265c18c97a0dab9022a0efc50 (diff)
Package split chisel core
Diffstat (limited to 'src/main/scala/chisel/package.scala')
-rw-r--r--src/main/scala/chisel/package.scala50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/main/scala/chisel/package.scala b/src/main/scala/chisel/package.scala
index b6036c75..f7ed6b13 100644
--- a/src/main/scala/chisel/package.scala
+++ b/src/main/scala/chisel/package.scala
@@ -5,6 +5,56 @@ package object chisel {
import internal.sourceinfo.{SourceInfo, SourceInfoTransform}
import util.BitPat
+
+ type Direction = chisel.core.Direction
+ val INPUT = chisel.core.INPUT
+ val OUTPUT = chisel.core.OUTPUT
+ val NO_DIR = chisel.core.NO_DIR
+ type Flipped = chisel.core.Flipped
+ type Data = chisel.core.Data
+ val Wire = chisel.core.Wire
+ val Clock = chisel.core.Clock
+ type Clock = chisel.core.Clock
+
+ type Aggregate = chisel.core.Aggregate
+ val Vec = chisel.core.Vec
+ type Vec[T <: Data] = chisel.core.Vec[T]
+ type VecLike[T <: Data] = chisel.core.VecLike[T]
+ type Bundle = chisel.core.Bundle
+
+ val assert = chisel.core.assert
+
+ type Element = chisel.core.Element
+ type Bits = chisel.core.Bits
+ val Bits = chisel.core.Bits
+ type Num[T <: Data] = chisel.core.Num[T]
+ type UInt = chisel.core.UInt
+ val UInt = chisel.core.UInt
+ type SInt = chisel.core.SInt
+ val SInt = chisel.core.SInt
+ type Bool = chisel.core.Bool
+ val Bool = chisel.core.Bool
+ val Mux = chisel.core.Mux
+
+ type BlackBox = chisel.core.BlackBox
+
+ val Mem = chisel.core.Mem
+ type MemBase[T <: Data] = chisel.core.MemBase[T]
+ type Mem[T <: Data] = chisel.core.Mem[T]
+ val SeqMem = chisel.core.SeqMem
+ type SeqMem[T <: Data] = chisel.core.SeqMem[T]
+
+ val Module = chisel.core.Module
+ type Module = chisel.core.Module
+
+ val printf = chisel.core.printf
+
+ val Reg = chisel.core.Reg
+
+ val when = chisel.core.when
+ type WhenContext = chisel.core.WhenContext
+
+
implicit class fromBigIntToLiteral(val x: BigInt) extends AnyVal {
def U: UInt = UInt(x, Width())
def S: SInt = SInt(x, Width())