Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
doofin committed Apr 22, 2024
1 parent 29ec833 commit c9ad4cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ This is a sbt project for Scala 3
run : `sbt run`
compile : `sbt compile`

an simple adder example:

```scala
class Adder1(using GlobalInfo) extends UserModule {
val a = newIO[2](VarType.Input)
val b = newIO[2](VarType.Input)
val y = newIO[2](VarType.Output)

y := a + b
}
```

# test

many tests under src/test can be run by
Expand Down

0 comments on commit c9ad4cd

Please sign in to comment.