1
0

Add clock and proper reset feedback to ml507

This commit is contained in:
Klemens Schölhorn 2018-04-19 01:29:15 +02:00
parent 5db71d11c2
commit b2b19cc822

View File

@ -57,7 +57,6 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule {
// active high reset // active high reset
val reset = IO(Input(Bool())) val reset = IO(Input(Bool()))
val reset_led = IO(Output(Bool()))
// LED // LED
val led = IO(Vec(8, Output(Bool()))) val led = IO(Vec(8, Output(Bool())))
@ -87,6 +86,9 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule {
val sw_6 = IO(Input(Bool())) val sw_6 = IO(Input(Bool()))
val sw_7 = IO(Input(Bool())) val sw_7 = IO(Input(Bool()))
// Feedback
val clock_led = IO(Output(Clock()))
val reset_led = IO(Output(Bool()))
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Wire declrations // Wire declrations
@ -120,9 +122,6 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule {
// Allow the debug module to reset everything. Resets the MIG // Allow the debug module to reset everything. Resets the MIG
sys_reset := reset | dut_ndreset sys_reset := reset | dut_ndreset
// Status LED for reset
reset_led := reset
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Clock Generator // Clock Generator
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
@ -152,6 +151,9 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule {
safe_reset.io.clock4 := dut_clock safe_reset.io.clock4 := dut_clock
dut_reset := safe_reset.io.reset4 dut_reset := safe_reset.io.reset4
// Setup feedback
clock_led := dut_clock
reset_led := dut_reset
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// UART // UART