15 Commits

Author SHA1 Message Date
Dolu1990
324e3dce52 SpinalHDL 1.12.3 2025-08-15 12:31:10 +02:00
Dolu1990
976ceca3a3 Update Config.scala
onlyStdLogicVectorAtTopLevelIo = false as it prevent VHDL / GHDL sim
2025-04-06 14:58:20 +02:00
Dolu1990
2aefabbbad SpinalHDL 1.12.0 2025-03-19 07:53:23 +01:00
Dolu1990
52417f9d8c SpinalHDL 1.11.0 2024-12-17 11:00:48 +01:00
Dolu1990
1629b51311 Merge pull request #42 from samuelgruetter/update_build_tools
update mill and sbt version
2024-10-14 10:16:44 +02:00
Samuel Gruetter
fc9ca1ffd9 update mill and sbt version 2024-10-10 14:26:47 +02:00
Dolu1990
d7575b9a5d Merge pull request #41 from cheungxi/master
upgrade scala version to 2.13.14
2024-09-03 17:53:48 +02:00
Zhang Xi
c2950be884 upgrade scala version to 2.13.14 2024-09-02 17:50:22 +08:00
Dolu1990
8456715b1c SpinalHDL 1.10.2a 2024-07-04 10:10:06 +02:00
Dolu1990
4b7dfe2d2b SpinalHDL 1.10.2 2024-06-13 11:12:43 +02:00
Dolu1990
3b84555158 SpinalHDL 1.10.1 2024-02-01 10:35:36 +01:00
Dolu1990
51249d4c6e SpinalHDL 1.10.0 2024-01-04 10:10:33 +01:00
Dolu1990
17607424ab Merge pull request #36 from IanBoyanZhang/patch-1
Fix typo in README
2023-11-06 11:46:07 +01:00
Ian Zhang
f3256ed4e1 Fix typo in README 2023-11-04 16:35:54 -07:00
Dolu1990
766b80b3f1 SpinalHDL 1.9.4 2023-11-01 09:41:06 +01:00
12 changed files with 11 additions and 237 deletions

View File

@@ -1 +1 @@
0.9.8
0.11.11

View File

@@ -1,40 +1,5 @@
version = 3.6.0
runner.dialect = scala212
align.preset = some
align.tokens."+" = [
{
code = "="
owners = [{
regex = "Defn\\.Val"
}]
}
{
code = ":="
owners = [{
regex = "Term\\.ApplyInfix"
parents = ["Term\\.Block|Template"]
}]
}
{
code = "#="
owners = [{
regex = "Term\\.ApplyInfix"
parents = ["Term\\.Block|Template"]
}]
}
{
code = "port"
owners = [{
regex = "Term\\.ApplyInfix"
parents = ["Defn\\.Val"]
}]
}
{
code = "->"
owners = [{
regex = "Term\\.ApplyInfix"
}]
}
]
maxColumn = 120
docstrings.wrap = no
docstrings.oneline = fold

View File

@@ -1,190 +0,0 @@
{
"Import spinal.core": {
"scope": "scala",
"prefix": "importcore",
"body": ["import spinal.core._", ""]
},
"Import spinal.lib": {
"scope": "scala",
"prefix": "importlib",
"body": ["import spinal.lib.${1:_}", ""]
},
"Import spinal.core.sim": {
"scope": "scala",
"prefix": "importsim",
"body": ["import spinal.core.sim._", ""]
},
"New component": {
"scope": "scala",
"prefix": "component",
"body": [
"case class $1($2) extends Component {",
" val io = new Bundle {",
" $0",
" }",
"",
" ",
"}"
],
},
"Component to function": {
"scope": "scala",
"prefix": "fncomp",
"body": [
"object ${1/\\(.*//} {",
" def apply($2: $3): $4 = {",
" val ${1/([^(]*).*/${1:/camelcase}/} = $1($6)",
" ${1/([^(]*).*/${1:/camelcase}/}.io.$2 := $2",
" ${1/([^(]*).*/${1:/camelcase}/}.io.$5",
" }",
"}"
],
},
"Component to function2": {
"scope": "scala",
"prefix": "fncomp2",
"body": [
"object ${1/\\(.*//} {",
" def apply($2: $3, $4: $5): $6 = {",
" val ${1/([^(]*).*/${1:/camelcase}/} = $1($8)",
" ${1/([^(]*).*/${1:/camelcase}/}.io.$2 := $2",
" ${1/([^(]*).*/${1:/camelcase}/}.io.$4 := $4",
" ${1/([^(]*).*/${1:/camelcase}/}.io.$7",
" }",
"}"
],
},
"New configurable component": {
"scope": "scala",
"prefix": "compcfg",
"body": [
"case class ${2:${1}Cfg} (",
" $3",
")",
"",
"class $1(cfg: $2) extends Component {",
" val io = new Bundle {",
" $0",
" }",
"",
" ",
"}"
],
},
"New entity/architecture-like": {
"scope": "scala",
"prefix": "entarch",
"body": [
"abstract class $1$2 extends Component {",
" val io = new Bundle {",
" $0",
" }",
"}",
"",
"class $1$3 extends $1$4 {",
" ",
"}",
],
},
"New input": {
"scope": "scala",
"prefix": "pin",
"body": "val $1 = in port ",
},
"New output": {
"scope": "scala",
"prefix": "pout",
"body": "val $1 = out port ",
},
"New master port": {
"scope": "scala",
"prefix": "pmaster",
"body": "val $1 = master port ",
},
"New slave port": {
"scope": "scala",
"prefix": "pslave",
"body": "val $1 = slave port ",
},
"Bits": {
"scope": "scala",
"prefix": "nbits",
"body": "Bits($1 bits)",
},
"UInt": {
"scope": "scala",
"prefix": "nuint",
"body": "UInt($1 bits)",
},
"SInt": {
"scope": "scala",
"prefix": "nsint",
"body": "SInt($1 bits)",
},
"...ing flag": {
"scope": "scala",
"prefix": "doing",
"body": ["val ${2:${1}ing} = False", "def $1(): Unit = $2 := True", ""]
},
"...Flag flag": {
"scope": "scala",
"prefix": "flag",
"body": ["val ${2:${1}Flag} = False", "def $1(): Unit = $2 := True", ""]
},
"'def' function mux": {
"scope": "scala",
"prefix": "fnmux",
"body": ["$1 := $2", "def $3(): Unit = $1 := $0"]
},
"BlackBox wrapper": {
"scope": "scala",
"prefix": "blackboxwrapper",
"body": [
"class $1 extends Area {",
" val io = new Bundle {",
" ${0:// Direction-less Spinal ports}",
" }",
"",
" class $1 extends BlackBox {",
" // Ports of the blackboxed item",
" }",
"",
" val bb = new $1",
" bb.setPartialName(\"\")",
"",
" // Connection logic",
"}"
]
},
"State machine": {
"scope": "scala",
"prefix": "fsm",
"body": [
"val $1 = new StateMachine {",
" val $2, $3 = new State",
" setEntry($2)",
"",
" $0",
"}"
]
}
}

View File

@@ -13,7 +13,7 @@ More specifically:
* instructions to get this repository locally are available in the [Create a SpinalHDL project](https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Getting%20Started/Install%20and%20setup.html#create-a-spinalhdl-project) section.
### TL;DR Things have arleady been set up in my environment, how do I run things to try SpinalHDL?
### TL;DR Things have already been set up in my environment, how do I run things to try SpinalHDL?
Once in the `SpinalTemplateSbt` directory, when tools are installed, the commands below can be run to use `sbt`.

View File

@@ -1,16 +1,16 @@
ThisBuild / version := "1.0"
ThisBuild / scalaVersion := "2.12.16"
ThisBuild / scalaVersion := "2.13.14"
ThisBuild / organization := "org.example"
val spinalVersion = "1.9.3"
val spinalVersion = "1.12.3"
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
lazy val projectname = (project in file("."))
.settings(
name := "myproject",
Compile / scalaSource := baseDirectory.value / "hw" / "spinal",
Test / scalaSource := baseDirectory.value / "tb" / "spinal",
libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin)
)

View File

@@ -1,13 +1,12 @@
import mill._, scalalib._
val spinalVersion = "1.9.0"
val spinalVersion = "1.12.3"
object projectname extends SbtModule {
def scalaVersion = "2.12.16"
def scalaVersion = "2.13.14"
override def millSourcePath = os.pwd
def sources = T.sources(
millSourcePath / "hw" / "spinal",
millSourcePath / "tb" / "spinal"
millSourcePath / "hw" / "spinal"
)
def ivyDeps = Agg(
ivy"com.github.spinalhdl::spinalhdl-core:$spinalVersion",

View File

@@ -9,7 +9,7 @@ object Config {
defaultConfigForClockDomains = ClockDomainConfig(
resetActiveLevel = HIGH
),
onlyStdLogicVectorAtTopLevelIo = true
onlyStdLogicVectorAtTopLevelIo = false
)
def sim = SimConfig.withConfig(spinal).withFstWave

View File

@@ -1 +1 @@
sbt.version=1.6.0
sbt.version=1.10.2

View File

0
tb/vhdl/.gitignore vendored
View File