aboutsummaryrefslogtreecommitdiff
path: root/top_count/src/Config.scala
blob: c49830379f4e6c82e71ff0d6ad2c44008fb1e237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}