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