This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
15 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
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,12 @@ | ||
package ee.hrzn.chryse.platform.ecp5 | ||
|
||
import chisel3._ | ||
import chisel3.experimental.ExtModule | ||
|
||
// FD1S3AX: posedge-triggered DFF, GSR used for clear. | ||
// Q=Mux(GSR, D, 0). | ||
class FD1S3AX extends ExtModule(Map("GSR" -> "DISABLED")) { | ||
val CK = IO(Input(Clock())) | ||
val D = IO(Input(Bool())) | ||
val Q = IO(Output(Bool())) | ||
} |
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,13 @@ | ||
package ee.hrzn.chryse.platform.ecp5 | ||
|
||
import chisel3._ | ||
import chisel3.experimental.ExtModule | ||
|
||
// SGSR: synchronous-release global set/reset interface. | ||
// Active LOW; when pulsed will (re)set all FFs, latches, registers etc. | ||
// Signals are not connected to SGSR explicitly -- implicitly connected | ||
// globally. | ||
class SGSR extends ExtModule { | ||
val CLK = IO(Input(Clock())) | ||
val GSR = IO(Input(Bool())) | ||
} |