Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/getting-started/hello-world/scala-project/project.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//> using scala 3.7.4
//> using dep io.github.dfianthdl::dfhdl::0.16.0
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.16.0
//> using option -deprecation -language:implicitConversions
//> using scala 3.8.1
//> using dep io.github.dfianthdl::dfhdl::0.17.0
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.17.0
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//> using scala 3.7.4
//> using dep io.github.dfianthdl::dfhdl::0.16.0
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.16.0
//> using option -deprecation -language:implicitConversions
//> using scala 3.8.1
//> using dep io.github.dfianthdl::dfhdl::0.17.0
//> using plugin io.github.dfianthdl:::dfhdl-plugin:0.17.0

import dfhdl.* //import all the DFHDL goodness

Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started/initial-setup/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Initial Setup {#getting-started}

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.
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.

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

## Installing Scala and Other Dependencies

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"}):
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"}):

<div class="grid cards" markdown>

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

```{.cmd .copy linenums="0"}
choco install scala --version=3.7.4
choco install scala --version=3.8.1
```
///

Expand All @@ -30,7 +30,7 @@ We recommend directly installing Scala 3.7.4 (no need to install either [Coursie
Run the following in your shell:

```{.sh-session .copy linenums="0"}
sdk install scala 3.7.4
sdk install scala 3.8.1
```
///

Expand Down
5 changes: 2 additions & 3 deletions docs/javascripts/scastie.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
let dfhdlVersion = "0.16.0";
let scalaVersion = "3.7.4";
let dfhdlVersion = "0.17.0";
let scalaVersion = "3.8.1";

let sbtConfig = `
val dfhdlVersion = "${dfhdlVersion}"
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-language:implicitConversions",
"-language:strictEquality",
)
addCompilerPlugin(
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/conditionals/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ y match
// Use part1 and part2 bits

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

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

// Using guards with extracted bit fields
y match
Expand Down