Initial Chisel Template
This commit is contained in:
16
.bloop/bloop.settings.json
Normal file
16
.bloop/bloop.settings.json
Normal 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
1491
.bloop/root-test.json
Normal file
File diff suppressed because it is too large
Load Diff
1269
.bloop/root.json
Normal file
1269
.bloop/root.json
Normal file
File diff suppressed because it is too large
Load Diff
8
.history/micore_20241223080054.code-workspace
Normal file
8
.history/micore_20241223080054.code-workspace
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
12
.history/micore_20241223080250.code-workspace
Normal file
12
.history/micore_20241223080250.code-workspace
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"files.watcherExclude": {
|
||||||
|
"**/target": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
.metals/metals.mv.db
Normal file
BIN
.metals/metals.mv.db
Normal file
Binary file not shown.
27
GCD.sv
Normal file
27
GCD.sv
Normal 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
24
build.sbt
Normal 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
30
build.sc
Normal 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
12
micore.code-workspace
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"files.watcherExclude": {
|
||||||
|
"**/target": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
16
project/.bloop/bloop.settings.json
Normal file
16
project/.bloop/bloop.settings.json
Normal 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
|
||||||
|
}
|
||||||
1760
project/.bloop/micore-build.json
Normal file
1760
project/.bloop/micore-build.json
Normal file
File diff suppressed because it is too large
Load Diff
1
project/build.properties
Normal file
1
project/build.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
sbt.version = 1.9.7
|
||||||
8
project/metals.sbt
Normal file
8
project/metals.sbt
Normal 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
1
project/plugins.sbt
Normal file
@ -0,0 +1 @@
|
|||||||
|
logLevel := Level.Warn
|
||||||
16
project/project/.bloop/bloop.settings.json
Normal file
16
project/project/.bloop/bloop.settings.json
Normal 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
|
||||||
|
}
|
||||||
1761
project/project/.bloop/micore-build-build.json
Normal file
1761
project/project/.bloop/micore-build-build.json
Normal file
File diff suppressed because it is too large
Load Diff
8
project/project/metals.sbt
Normal file
8
project/project/metals.sbt
Normal 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
|
||||||
8
project/project/project/metals.sbt
Normal file
8
project/project/project/metals.sbt
Normal 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
|
||||||
@ -0,0 +1 @@
|
|||||||
|
sbt.internal.DslEntry
|
||||||
@ -0,0 +1 @@
|
|||||||
|
sbt.internal.DslEntry
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[[{},{}],{}]
|
||||||
@ -0,0 +1 @@
|
|||||||
|
-1633561639
|
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
644413116
|
||||||
@ -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"}}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mnot up to date. inChanged = true, force = false[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mUpdating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/project/"), "micore-build-build-build")...[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mDone updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/project/"), "micore-build-build-build")[0m
|
||||||
@ -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"]]
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0m[zinc] IncrementalCompile -----------[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mIncrementalCompile.incrementalCompile[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mprevious = Stamps for: 0 products, 0 sources, 0 libraries[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mcurrent source = Set()[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0m> initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mFull compilation, no sources in previous analysis.[0m
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mCopy resource mappings: [0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0m [0m
|
||||||
File diff suppressed because one or more lines are too long
@ -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
@ -0,0 +1,5 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mCreated transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes.bak[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mAbout to delete class files:[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mWe backup class files:[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mCreated transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/project/target/scala-2.12/sbt-1.0/classes.bak[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mRemoving 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[0m
|
||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
|
||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
File diff suppressed because one or more lines are too long
@ -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
@ -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
@ -0,0 +1 @@
|
|||||||
|
|
||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
@ -0,0 +1 @@
|
|||||||
|
sbt.internal.DslEntry
|
||||||
@ -0,0 +1 @@
|
|||||||
|
sbt.internal.DslEntry
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[[{},{}],{}]
|
||||||
@ -0,0 +1 @@
|
|||||||
|
-756073079
|
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
644413116
|
||||||
@ -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"}}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mnot up to date. inChanged = true, force = false[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mUpdating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")...[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mDone updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")[0m
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mnot up to date. inChanged = true, force = false[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mUpdating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")...[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mDone updating ProjectRef(uri("file:/home/gh0s7/project/ddca/micore/project/project/"), "micore-build-build")[0m
|
||||||
@ -0,0 +1 @@
|
|||||||
|
1606726032
|
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mOther repositories:[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mDefault repositories:[0m
|
||||||
@ -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"]]
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[]
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0m[micore-build-build] Classpath dependencies List()[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0m[micore-build-build] Dependencies from configurations List()[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mBloop wrote the configuration of project 'micore-build-build' to '/home/gh0s7/project/ddca/micore/project/project/.bloop/micore-build-build.json'[0m
|
||||||
|
[0m[[0m[32msuccess[0m] [0m[0mGenerated .bloop/micore-build-build.json[0m
|
||||||
@ -0,0 +1 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mRunning postGenerate for micore-build-build[0m
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0m[zinc] IncrementalCompile -----------[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mIncrementalCompile.incrementalCompile[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mprevious = Stamps for: 0 products, 0 sources, 0 libraries[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mcurrent source = Set()[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0m> initialChanges = InitialChanges(Changes(added = Set(), removed = Set(), changed = Set(), unmodified = ...),Set(),Set(),API Changes: Set())[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mFull compilation, no sources in previous analysis.[0m
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mCopy resource mappings: [0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0m [0m
|
||||||
File diff suppressed because one or more lines are too long
@ -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
@ -0,0 +1,5 @@
|
|||||||
|
[0m[[0m[0mdebug[0m] [0m[0mCreated transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/classes.bak[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mAbout to delete class files:[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mWe backup class files:[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mCreated transactional ClassFileManager with tempDir = /home/gh0s7/project/ddca/micore/project/project/target/scala-2.12/sbt-1.0/classes.bak[0m
|
||||||
|
[0m[[0m[0mdebug[0m] [0m[0mRemoving 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[0m
|
||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
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
Reference in New Issue
Block a user