aboutsummaryrefslogtreecommitdiff
path: root/top_count/src/Config.scala
diff options
context:
space:
mode:
Diffstat (limited to 'top_count/src/Config.scala')
-rw-r--r--top_count/src/Config.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/top_count/src/Config.scala b/top_count/src/Config.scala
new file mode 100644
index 0000000..c498303
--- /dev/null
+++ b/top_count/src/Config.scala
@@ -0,0 +1,17 @@
+package top_count
+
+import spinal.core._
+import spinal.core.sim._
+
+object Config {
+ def spinal = SpinalConfig(
+ targetDirectory = sys.props.getOrElse("spinalTargetDir", "top_count/gen"),
+ defaultConfigForClockDomains = ClockDomainConfig(
+ resetKind = ASYNC,
+ resetActiveLevel = LOW
+ ),
+ onlyStdLogicVectorAtTopLevelIo = false
+ )
+
+ def sim = SimConfig.withGhdl.withConfig(spinal).withFstWave
+}