Skip to content

Commit 529a265

Browse files
authored
Merge pull request #331 from DFiantHDL/scala3p8
update documentation for v0.17.0
2 parents 8d09c3b + 34cf296 commit 529a265

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//> using scala 3.7.4
2-
//> using dep io.github.dfianthdl::dfhdl::0.16.0
3-
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.16.0
4-
//> using option -deprecation -language:implicitConversions
1+
//> using scala 3.8.1
2+
//> using dep io.github.dfianthdl::dfhdl::0.17.0
3+
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.17.0

docs/getting-started/hello-world/scala-single-file/Counter8.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
//> using scala 3.7.4
2-
//> using dep io.github.dfianthdl::dfhdl::0.16.0
3-
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.16.0
4-
//> using option -deprecation -language:implicitConversions
1+
//> using scala 3.8.1
2+
//> using dep io.github.dfianthdl::dfhdl::0.17.0
3+
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.17.0
54

65
import dfhdl.* //import all the DFHDL goodness
76

docs/getting-started/initial-setup/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Initial Setup {#getting-started}
22

3-
DFHDL is a domain specific language (DSL) library written in the [Scala programming language](https://www.scala-lang.org){target="_blank"} (Scala 3.7.4), and as such it lets you utilize the entire Scala ecosystem, including IDEs, various tools, and other libraries.
3+
DFHDL is a domain specific language (DSL) library written in the [Scala programming language](https://www.scala-lang.org){target="_blank"} (Scala 3.8.1), and as such it lets you utilize the entire Scala ecosystem, including IDEs, various tools, and other libraries.
44

55
Is your system already fit for Scala development? [Jump to the DFHDL hello-world section][hello-world]
66

77
## Installing Scala and Other Dependencies
88

9-
We recommend directly installing Scala 3.7.4 (no need to install either [Coursier](https://get-coursier.io/){target="_blank"}, [Scala CLI](https://scala-cli.virtuslab.org/){target="_blank"}, or [sbt](https://www.scala-sbt.org/){target="_blank"}):
9+
We recommend directly installing Scala 3.8.1 (no need to install either [Coursier](https://get-coursier.io/){target="_blank"}, [Scala CLI](https://scala-cli.virtuslab.org/){target="_blank"}, or [sbt](https://www.scala-sbt.org/){target="_blank"}):
1010

1111
<div class="grid cards" markdown>
1212

@@ -18,7 +18,7 @@ We recommend directly installing Scala 3.7.4 (no need to install either [Coursie
1818
Run the following in Windows command or powershell:
1919

2020
```{.cmd .copy linenums="0"}
21-
choco install scala --version=3.7.4
21+
choco install scala --version=3.8.1
2222
```
2323
///
2424
@@ -30,7 +30,7 @@ We recommend directly installing Scala 3.7.4 (no need to install either [Coursie
3030
Run the following in your shell:
3131
3232
```{.sh-session .copy linenums="0"}
33-
sdk install scala 3.7.4
33+
sdk install scala 3.8.1
3434
```
3535
///
3636

docs/javascripts/scastie.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
let dfhdlVersion = "0.16.0";
2-
let scalaVersion = "3.7.4";
1+
let dfhdlVersion = "0.17.0";
2+
let scalaVersion = "3.8.1";
33

44
let sbtConfig = `
55
val dfhdlVersion = "${dfhdlVersion}"
66
scalacOptions ++= Seq(
77
"-deprecation",
88
"-feature",
9-
"-language:implicitConversions",
109
"-language:strictEquality",
1110
)
1211
addCompilerPlugin(

docs/user-guide/conditionals/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ y match
112112
// Use part1 and part2 bits
113113

114114
// Store extracted bits in variables
115-
val h"DEAD${extracted: B[32]}BEEF" = input: @unchecked
115+
val h"DEAD${extracted: B[32]}BEEF" = input.runtimeChecked
116116

117117
// Extract multiple sections into variables
118-
val h"DE${first: B[16]}ADBE${second: B[16]}EF" = input: @unchecked
118+
val h"DE${first: B[16]}ADBE${second: B[16]}EF" = input.runtimeChecked
119119

120120
// Using guards with extracted bit fields
121121
y match

0 commit comments

Comments
 (0)