summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel
diff options
context:
space:
mode:
authorPalmer Dabbelt2016-01-11 13:59:11 -0800
committerPalmer Dabbelt2016-01-11 13:59:11 -0800
commite1ec4646e8551fdbe90e0ce2e957e455f0c8733d (patch)
tree0e413f1d5662e01dbda06098d11f29b1398e51a5 /src/main/scala/Chisel
parenta98dab0c5726434c2aaa457787ef32c380c5556d (diff)
Add a dummy chiselMain
We don't have this in Chisel3, but for compatibility with berkeley-hardfloat I want a function header. This lets me keep the test harness in upstream hardfloat so I don't have to fork it for Chisel3 testing.
Diffstat (limited to 'src/main/scala/Chisel')
-rw-r--r--src/main/scala/Chisel/Main.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/scala/Chisel/Main.scala b/src/main/scala/Chisel/Main.scala
new file mode 100644
index 00000000..23abc763
--- /dev/null
+++ b/src/main/scala/Chisel/Main.scala
@@ -0,0 +1,8 @@
+// See LICENSE for details
+
+package Chisel
+
+@deprecated("chiselMain doesn't exist in Chisel3", "3.0") object chiselMain {
+ def apply[T <: Module](args: Array[String], gen: () => T) =
+ Predef.assert(false)
+}