mirror of
https://github.com/SpinalHDL/SpinalTemplateSbt.git
synced 2025-10-22 23:58:44 +08:00
SpinalHDL 1.0.5
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -36,4 +36,5 @@ bin/
|
|||||||
!tester/src/test/resources/*.vhd
|
!tester/src/test/resources/*.vhd
|
||||||
|
|
||||||
|
|
||||||
*verilatorSim/
|
simWorkspace/
|
||||||
|
tmp/
|
||||||
|
@@ -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
|
||||||
|
@@ -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){
|
||||||
|
Reference in New Issue
Block a user