summaryrefslogtreecommitdiff
path: root/core/src/main/scala/chisel3/package.scala
diff options
context:
space:
mode:
authormergify[bot]2023-01-11 22:40:32 +0000
committerGitHub2023-01-11 22:40:32 +0000
commitd4570fb9d29371c35641ba79b76662f99677f192 (patch)
tree4be8bcb00e0cdbc8307eb7d2ad5e951189f0c7fe /core/src/main/scala/chisel3/package.scala
parent9a7945fd86fcad02da0556d8f4a30daa4b005f9d (diff)
Promote ChiselEnum user APIs from experimental (backport #2929) (#2931)
* Promote ChiselEnum user APIs from experimental (#2929) They are commonly used and if we were ever to change them, we will need to go through a deprecation process anyway. Note that the EnumAnnotations remain in chisel3.experimental because, like all Chisel annotation support, they are slated to be deprecated and removed. (cherry picked from commit 424e9446f1675fe0168e22bdfbbe85db997376e6) # Conflicts: # docs/src/cookbooks/verilog-vs-chisel.md # docs/src/explanations/chisel-enum.md * Maintain binary compatbility, use aliases in chisel3 package * Deprecate the actual classes in chisel3.experimental * Also fix backport conflicts Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'core/src/main/scala/chisel3/package.scala')
-rw-r--r--core/src/main/scala/chisel3/package.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/scala/chisel3/package.scala b/core/src/main/scala/chisel3/package.scala
index 87024683..afffad1c 100644
--- a/core/src/main/scala/chisel3/package.scala
+++ b/core/src/main/scala/chisel3/package.scala
@@ -14,6 +14,10 @@ package object chisel3 {
import scala.language.implicitConversions
+ type ChiselEnum = experimental.ChiselEnum
+ type EnumType = experimental.EnumType
+ val suppressEnumCastWarning = experimental.suppressEnumCastWarning
+
/**
* These implicit classes allow one to convert [[scala.Int]] or [[scala.BigInt]] to
* Chisel.UInt|Chisel.SInt by calling .asUInt|.asSInt on them, respectively.