- From the template
- Added
.scalafmt.conf
for formatting, from the one ofSpinalHDL
but with only 80 columns (default) and with alignments 😃 - Added
project/plugin.sbt
for formatting viasbt
- Added
.vscode/SpinalHDL.code-snippets
for VSCode snippets - Updated project name in folder name and
build.*
- Using
SpinalHDL@dev
- Updated
.gitignore
- Added
tb/
folder with same structure ashw/
, for tests / simulation files - Updated
build.*
with the newtb/
folder and to add HTML report generation (insimWorkspace/test-reports
)
Use of snippets are put in comments. It is "full" use, so actually there was less keystrokes because of auto completion 😉
- Simple example of component in
hw/spinal/aes/AddRoundKey.scala
. - More snippets, shown in
hw/spinal/aes/Aes.scala
, with idioms. - Disabling formatting locally shown in
hw/spinal/aes/SBox.scala
. - Component-as-function snippet shown in
hw/spinal/aes/SBox.scala
. App
to simulate is intb/spinal/aes/Simulate.scala
.SpinalTestBench
is intb/spinal/aes/Simulate.scala
.gtkw
configurations are generated for each test, intb/gtkw/
, fromtb/gtkw/Aes.gtkw
using myderiveGtkw
script.
As a result I get:
simWorkspace/aes/aes should cipher example from class.fst
from theSpinalTestBench
simWorkspace/test-reports/index.html
fromSpinalTestBench
-
sbt scalafmtCheckAll
passed so all code is actual auto formatting.