mirror of
https://github.com/SpinalHDL/SpinalTemplateSbt.git
synced 2025-10-22 15:48:45 +08:00
new MyTopLevel -> MyTopLevel()
This commit is contained in:
@@ -9,7 +9,7 @@ object MyTopLevelFormal extends App {
|
||||
FormalConfig
|
||||
.withBMC(10)
|
||||
.doVerify(new Component {
|
||||
val dut = FormalDut(new MyTopLevel)
|
||||
val dut = FormalDut(MyTopLevel())
|
||||
|
||||
// Ensure the formal test start with a reset
|
||||
assumeInitial(clockDomain.isResetActive)
|
||||
|
@@ -4,12 +4,12 @@ import spinal.core._
|
||||
|
||||
object MyTopLevelVerilog extends App {
|
||||
// Generate the MyTopLevel's Verilog
|
||||
SpinalVerilog(new MyTopLevel)
|
||||
SpinalVerilog(MyTopLevel())
|
||||
}
|
||||
|
||||
object MyTopLevelVhdl extends App {
|
||||
// Generate the MyTopLevel's VHDL
|
||||
SpinalVhdl(new MyTopLevel)
|
||||
SpinalVhdl(MyTopLevel())
|
||||
}
|
||||
|
||||
// Custom SpinalHDL configuration with synchronous reset instead of the default asynchronous one
|
||||
@@ -21,5 +21,5 @@ object MySpinalConfig
|
||||
|
||||
object MyTopLevelVerilogWithCustomConfig extends App {
|
||||
// Generate the MyTopLevel's Verilog using the above custom configuration.
|
||||
MySpinalConfig.generateVerilog(new MyTopLevel)
|
||||
MySpinalConfig.generateVerilog(MyTopLevel())
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@ import spinal.core._
|
||||
import spinal.core.sim._
|
||||
|
||||
object MyTopLevelSim extends App {
|
||||
SimConfig.withWave.doSim(new MyTopLevel) { dut =>
|
||||
SimConfig.withWave.doSim(MyTopLevel()) { dut =>
|
||||
// Fork a process to generate the reset and the clock on the dut
|
||||
dut.clockDomain.forkStimulus(period = 10)
|
||||
|
||||
|
Reference in New Issue
Block a user