spinalhdl-exercises/SpinalTest
marton bognar 2256bc29f7 Updates
2025-03-12 13:34:09 +01:00
..
src/main/scala/spinaltest Add exercises 2022-10-13 11:52:00 +02:00
build.sbt Updates 2025-03-12 13:34:09 +01:00
README.md Updates 2025-03-12 13:34:09 +01:00

Prerequisites

More info can be found in the SpinalHDL documentation.

Test installation

To test code generation (this should create a file called Counter.v):

sbt 'runMain spinaltest.Gen'

To test simulation:

sbt 'runMain spinaltest.Sim'

This should print something like the following at the end:

[info] [Progress] Simulation workspace in /.../SpinalTest/./simWorkspace/Counter
[info] [Progress] Verilator compilation started
[info] [Progress] Verilator compilation done in 2986.102 ms
[info] [Progress] Start Counter test simulation with seed 267472656
[info] counter: 9
[info] [Done] Simulation done in 23.684 ms
[success] Total time: 4 s, completed Oct 13, 2022, 11:00:52 AM