-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task 5 (Hazard Detection & Forwarding) added
- Loading branch information
Showing
7 changed files
with
701 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
scalaVersion := "2.12.13" | ||
|
||
scalacOptions ++= Seq( | ||
"-deprecation", | ||
"-feature", | ||
"-unchecked", | ||
"-Xfatal-warnings", | ||
"-language:reflectiveCalls", | ||
) | ||
|
||
resolvers ++= Seq( | ||
Resolver.sonatypeRepo("snapshots"), | ||
Resolver.sonatypeRepo("releases") | ||
) | ||
|
||
// Chisel 3.5 | ||
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.5.0" cross CrossVersion.full) | ||
libraryDependencies += "edu.berkeley.cs" %% "chisel3" % "3.5.0" | ||
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "0.5.0" |
25 changes: 25 additions & 0 deletions
25
05_pipelined_RISC-V_core_hazardDetection/src/main/scala/HazardDetectionRISCV32I.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// ADS I Class Project | ||
// Pipelined RISC-V Core with Hazard Detetcion and Resolution | ||
// | ||
// Chair of Electronic Design Automation, RPTU in Kaiserslautern | ||
// File created on 05/21/2024 by Andro Mazmishvili (@Andrew8846) | ||
|
||
package HazardDetectionRV32I | ||
|
||
import chisel3._ | ||
import chisel3.util._ | ||
|
||
import core_tile._ | ||
|
||
class HazardDetectionRV32I (BinaryFile: String) extends Module { | ||
|
||
val io = IO(new Bundle { | ||
val result = Output(UInt(32.W)) | ||
}) | ||
|
||
val core = Module(new HazardDetectionRV32Icore(BinaryFile)) | ||
|
||
io.result := core.io.check_res | ||
|
||
} | ||
|
18 changes: 18 additions & 0 deletions
18
05_pipelined_RISC-V_core_hazardDetection/src/main/scala/MakeVerilog.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// ADS I Class Project | ||
// Pipelined RISC-V Core with Hazard Detetcion and Resolution | ||
// | ||
// Chair of Electronic Design Automation, RPTU in Kaiserslautern | ||
// File created on 05/21/2024 by Andro Mazmishvili (@Andrew8846) | ||
|
||
package makeverilog | ||
|
||
import chisel3._ | ||
import chiseltest._ | ||
import org.scalatest.flatspec.AnyFlatSpec | ||
|
||
import HazardDetectionRV32I._ | ||
|
||
|
||
object Verilog_Gen extends App { | ||
emitVerilog(new HazardDetectionRV32I("src/test/programs/BinaryFile"), Array("--target-dir", "generated-src") | ||
)} |
Oops, something went wrong.