From b2b19cc82223703f72a4d98796e5cab0bd393d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Thu, 19 Apr 2018 01:29:15 +0200 Subject: [PATCH] Add clock and proper reset feedback to ml507 --- src/main/scala/shell/xilinx/ML507Shell.scala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/scala/shell/xilinx/ML507Shell.scala b/src/main/scala/shell/xilinx/ML507Shell.scala index 4a51bd4..cfaca4f 100644 --- a/src/main/scala/shell/xilinx/ML507Shell.scala +++ b/src/main/scala/shell/xilinx/ML507Shell.scala @@ -57,7 +57,6 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule { // active high reset val reset = IO(Input(Bool())) - val reset_led = IO(Output(Bool())) // LED 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_7 = IO(Input(Bool())) + // Feedback + val clock_led = IO(Output(Clock())) + val reset_led = IO(Output(Bool())) //----------------------------------------------------------------------- // 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 sys_reset := reset | dut_ndreset - // Status LED for reset - reset_led := reset - //----------------------------------------------------------------------- // Clock Generator //----------------------------------------------------------------------- @@ -152,6 +151,9 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule { safe_reset.io.clock4 := dut_clock dut_reset := safe_reset.io.reset4 + // Setup feedback + clock_led := dut_clock + reset_led := dut_reset //----------------------------------------------------------------------- // UART