From 79b53cf2ae2478f20ef9716ed0b63444ee7e48d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Tue, 1 May 2018 00:07:58 +0200 Subject: [PATCH] Add dip switches and clean up top interface --- src/main/scala/shell/xilinx/ML507Shell.scala | 21 ++++---------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/main/scala/shell/xilinx/ML507Shell.scala b/src/main/scala/shell/xilinx/ML507Shell.scala index ca1e3e6..ecb2116 100644 --- a/src/main/scala/shell/xilinx/ML507Shell.scala +++ b/src/main/scala/shell/xilinx/ML507Shell.scala @@ -60,7 +60,10 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule { val reset = IO(Input(Bool())) // LED - val led = IO(Vec(8, Output(Bool()))) + val led = IO(Output(Vec(8, Bool()))) + + // DIP switches + val dip = IO(Input(Vec(8, Bool()))) // UART val uart_tx = IO(Output(Bool())) @@ -71,22 +74,6 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule { val sdio_cmd = IO(Analog(1.W)) val sdio_dat = IO(Analog(4.W)) - //Buttons - val btn_0 = IO(Input(Bool())) - val btn_1 = IO(Input(Bool())) - val btn_2 = IO(Input(Bool())) - val btn_3 = IO(Input(Bool())) - - //Sliding switches - val sw_0 = IO(Input(Bool())) - val sw_1 = IO(Input(Bool())) - val sw_2 = IO(Input(Bool())) - val sw_3 = IO(Input(Bool())) - val sw_4 = IO(Input(Bool())) - val sw_5 = IO(Input(Bool())) - 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()))