Initial Chisel Template

This commit is contained in:
2024-12-23 10:14:20 +08:00
parent eec6e09111
commit 3ae04d1240
243 changed files with 6910 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"javaSemanticDBVersion": "0.10.3",
"semanticDBVersion": "4.12.1",
"supportedScalaVersions": [
"2.13.15",
"2.12.20",
"2.12.19",
"2.12.18",
"2.12.17",
"2.13.12",
"2.13.13",
"2.13.14",
"2.11.12"
],
"enableBestEffortMode": false
}

1491
.bloop/root-test.json Normal file

File diff suppressed because it is too large Load Diff

1269
.bloop/root.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

View File

@ -0,0 +1,12 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.watcherExclude": {
"**/target": true
}
}
}

BIN
.metals/metals.mv.db Normal file

Binary file not shown.

27
GCD.sv Normal file
View File

@ -0,0 +1,27 @@
// Generated by CIRCT firtool-1.62.0
module GCD(
input clock,
reset,
input [15:0] io_value1,
io_value2,
input io_loadingValues,
output [15:0] io_outputGCD,
output io_outputValid
);
reg [15:0] x;
reg [15:0] y;
always @(posedge clock) begin
if (io_loadingValues) begin
x <= io_value1;
y <= io_value2;
end
else if (x > y)
x <= x - y;
else
y <= y - x;
end // always @(posedge)
assign io_outputGCD = x;
assign io_outputValid = y == 16'h0;
endmodule

24
build.sbt Normal file
View File

@ -0,0 +1,24 @@
// See README.md for license details.
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / version := "0.1.0"
ThisBuild / organization := "%ORGANIZATION%"
val chiselVersion = "6.2.0"
lazy val root = (project in file("."))
.settings(
name := "%NAME%",
libraryDependencies ++= Seq(
"org.chipsalliance" %% "chisel" % chiselVersion,
"org.scalatest" %% "scalatest" % "3.2.16" % "test",
),
scalacOptions ++= Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
"-Ymacro-annotations",
),
addCompilerPlugin("org.chipsalliance" % "chisel-plugin" % chiselVersion cross CrossVersion.full),
)

30
build.sc Normal file
View File

@ -0,0 +1,30 @@
// import Mill dependency
import mill._
import mill.define.Sources
import mill.modules.Util
import mill.scalalib.TestModule.ScalaTest
import scalalib._
// support BSP
import mill.bsp._
object %NAME% extends SbtModule { m =>
override def millSourcePath = os.pwd
override def scalaVersion = "2.13.12"
override def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
)
override def ivyDeps = Agg(
ivy"org.chipsalliance::chisel:6.2.0",
)
override def scalacPluginIvyDeps = Agg(
ivy"org.chipsalliance:::chisel-plugin:6.2.0",
)
object test extends SbtModuleTests with TestModule.ScalaTest {
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"org.scalatest::scalatest::3.2.16"
)
}
}

12
micore.code-workspace Normal file
View File

@ -0,0 +1,12 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.watcherExclude": {
"**/target": true
}
}
}

View File

@ -0,0 +1,16 @@
{
"javaSemanticDBVersion": "0.10.3",
"semanticDBVersion": "4.12.1",
"supportedScalaVersions": [
"2.13.15",
"2.12.20",
"2.12.19",
"2.12.18",
"2.12.17",
"2.13.12",
"2.13.13",
"2.13.14",
"2.11.12"
],
"enableBestEffortMode": false
}

File diff suppressed because it is too large Load Diff

1
project/build.properties Normal file
View File

@ -0,0 +1 @@
sbt.version = 1.9.7

8
project/metals.sbt Normal file
View File

@ -0,0 +1,8 @@
// format: off
// DO NOT EDIT! This file is auto-generated.
// This file enables sbt-bloop to create bloop config files.
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.6")
// format: on

1
project/plugins.sbt Normal file
View File

@ -0,0 +1 @@
logLevel := Level.Warn

View File

@ -0,0 +1,16 @@
{
"javaSemanticDBVersion": "0.10.3",
"semanticDBVersion": "4.12.1",
"supportedScalaVersions": [
"2.13.15",
"2.12.20",
"2.12.19",
"2.12.18",
"2.12.17",
"2.13.12",
"2.13.13",
"2.13.14",
"2.11.12"
],
"enableBestEffortMode": false
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
// format: off
// DO NOT EDIT! This file is auto-generated.
// This file enables sbt-bloop to create bloop config files.
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.6")
// format: on

View File

@ -0,0 +1,8 @@
// format: off
// DO NOT EDIT! This file is auto-generated.
// This file enables sbt-bloop to create bloop config files.
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "2.0.6")
// format: on

View File

@ -0,0 +1 @@
sbt.internal.DslEntry

View File

@ -0,0 +1 @@
sbt.internal.DslEntry

View File

@ -0,0 +1 @@
[[{},{}],{}]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"{\"organization\":\"org.scala-lang\",\"name\":\"scala-library\",\"revision\":\"2.12.18\",\"configurations\":\"provided\",\"isChanging\":false,\"isTransitive\":true,\"isForce\":false,\"explicitArtifacts\":[],\"inclusions\":[],\"exclusions\":[],\"extraAttributes\":{},\"crossVersion\":{\"type\":\"Disabled\"}}":{"value":{"$fields":["path","range"],"path":"/home/gh0s7/project/ddca/micore/project/project/project/metals.sbt","range":{"$fields":["start","end"],"start":6,"end":7}},"type":"RangePosition"},"{\"organization\":\"ch.epfl.scala\",\"name\":\"sbt-bloop\",\"revision\":\"2.0.6\",\"isChanging\":false,\"isTransitive\":true,\"isForce\":false,\"explicitArtifacts\":[],\"inclusions\":[],\"exclusions\":[],\"extraAttributes\":{\"e:sbtVersion\":\"1.0\",\"e:scalaVersion\":\"2.12\"},\"crossVersion\":{\"type\":\"Disabled\"}}":{"value":{"$fields":["path","range"],"path":"/home/gh0s7/project/ddca/micore/project/project/project/metals.sbt","range":{"$fields":["start","end"],"start":6,"end":7}},"type":"RangePosition"}}

View File

@ -0,0 +1,3 @@
[debug] not up to date. inChanged = true, force = false
[debug] Updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/project/"), "micore-build-build-build")...
[debug] Done updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/project/"), "micore-build-build-build")

View File

@ -0,0 +1 @@
["sbt.Task[scala.collection.Seq[java.nio.file.Path]]",["/home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/zinc/inc_compile_2.12.zip"]]

View File

@ -0,0 +1,6 @@
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 0 products, 0 sources, 0 libraries
[debug] current source = Set()
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] Full compilation, no sources in previous analysis.

View File

@ -0,0 +1,2 @@
[debug] Copy resource mappings: 
[debug]  

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
[debug] Created transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes.bak
[debug] About to delete class files:
[debug] We backup class files:
[debug] Created transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes.bak
[debug] Removing the temporary directory used for backing up class files: /home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes.bak

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
sbt.internal.DslEntry

View File

@ -0,0 +1 @@
sbt.internal.DslEntry

View File

@ -0,0 +1 @@
[[{},{}],{}]

View File

@ -0,0 +1 @@
-756073079

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"{\"organization\":\"org.scala-lang\",\"name\":\"scala-library\",\"revision\":\"2.12.18\",\"configurations\":\"provided\",\"isChanging\":false,\"isTransitive\":true,\"isForce\":false,\"explicitArtifacts\":[],\"inclusions\":[],\"exclusions\":[],\"extraAttributes\":{},\"crossVersion\":{\"type\":\"Disabled\"}}":{"value":{"$fields":["path","range"],"path":"/home/gh0s7/project/ddca/micore/project/project/metals.sbt","range":{"$fields":["start","end"],"start":6,"end":7}},"type":"RangePosition"},"{\"organization\":\"ch.epfl.scala\",\"name\":\"sbt-bloop\",\"revision\":\"2.0.6\",\"isChanging\":false,\"isTransitive\":true,\"isForce\":false,\"explicitArtifacts\":[],\"inclusions\":[],\"exclusions\":[],\"extraAttributes\":{\"e:sbtVersion\":\"1.0\",\"e:scalaVersion\":\"2.12\"},\"crossVersion\":{\"type\":\"Disabled\"}}":{"value":{"$fields":["path","range"],"path":"/home/gh0s7/project/ddca/micore/project/project/metals.sbt","range":{"$fields":["start","end"],"start":6,"end":7}},"type":"RangePosition"}}

View File

@ -0,0 +1,3 @@
[debug] not up to date. inChanged = true, force = false
[debug] Updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")...
[debug] Done updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")

View File

@ -0,0 +1,3 @@
[debug] not up to date. inChanged = true, force = false
[debug] Updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")...
[debug] Done updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
[debug] Other repositories:
[debug] Default repositories:

View File

@ -0,0 +1 @@
["sbt.Task[scala.collection.Seq[java.nio.file.Path]]",["/home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/zinc/inc_compile_2.12.zip"]]

View File

@ -0,0 +1,4 @@
[debug] [micore-build-build] Classpath dependencies List()
[debug] [micore-build-build] Dependencies from configurations List()
[debug] Bloop wrote the configuration of project 'micore-build-build' to '/home/gh0s7/project/ddca/micore/project/project/.bloop/micore-build-build.json'
[success] Generated .bloop/micore-build-build.json

View File

@ -0,0 +1 @@
[debug] Running postGenerate for micore-build-build

View File

@ -0,0 +1,6 @@
[debug] [zinc] IncrementalCompile -----------
[debug] IncrementalCompile.incrementalCompile
[debug] previous = Stamps for: 0 products, 0 sources, 0 libraries
[debug] current source = Set()
[debug] > initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())
[debug] Full compilation, no sources in previous analysis.

View File

@ -0,0 +1,2 @@
[debug] Copy resource mappings: 
[debug]  

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/classes

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
[debug] Created transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/classes.bak
[debug] About to delete class files:
[debug] We backup class files:
[debug] Created transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/classes.bak
[debug] Removing the temporary directory used for backing up class files: /home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/classes.bak

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More