SpinalHDL 1.0.5

This commit is contained in:
Dolu1990
2017-12-22 23:19:42 +01:00
parent d4d59c7cc1
commit 7e6510833c
3 changed files with 5 additions and 5 deletions

3
.gitignore vendored
View File

@@ -36,4 +36,5 @@ bin/
!tester/src/test/resources/*.vhd !tester/src/test/resources/*.vhd
*verilatorSim/ simWorkspace/
tmp/

View File

@@ -7,9 +7,10 @@ scalaVersion := "2.11.6"
EclipseKeys.withSource := true EclipseKeys.withSource := true
libraryDependencies ++= Seq( libraryDependencies ++= Seq(
"com.github.spinalhdl" % "spinalhdl-core_2.11" % "1.0.4", "com.github.spinalhdl" % "spinalhdl-core_2.11" % "1.0.5",
"com.github.spinalhdl" % "spinalhdl-lib_2.11" % "1.0.4" "com.github.spinalhdl" % "spinalhdl-lib_2.11" % "1.0.5"
) )
addCompilerPlugin("org.scala-lang.plugins" % "scala-continuations-plugin_2.11.6" % "1.0.2") addCompilerPlugin("org.scala-lang.plugins" % "scala-continuations-plugin_2.11.6" % "1.0.2")
scalacOptions += "-P:continuations:enable" scalacOptions += "-P:continuations:enable"
fork := true

View File

@@ -11,11 +11,9 @@ import scala.util.Random
object MyTopLevelSim { object MyTopLevelSim {
def main(args: Array[String]) { def main(args: Array[String]) {
SimConfig(new MyTopLevel).withWave.doManagedSim{dut => SimConfig(new MyTopLevel).withWave.doManagedSim{dut =>
//Fork a process to generate the reset and the clock on the dut //Fork a process to generate the reset and the clock on the dut
dut.clockDomain.forkStimulus(period = 10) dut.clockDomain.forkStimulus(period = 10)
var modelState = 0 var modelState = 0
var idx = 0 var idx = 0
while(idx < 100){ while(idx < 100){