From 5db71d11c245d35256b7e019fa3239fdbe92e333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Thu, 19 Apr 2018 01:28:36 +0200 Subject: [PATCH] Fix polarity of buttons and dips on the ml507 --- src/main/scala/shell/xilinx/ML507Shell.scala | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/scala/shell/xilinx/ML507Shell.scala b/src/main/scala/shell/xilinx/ML507Shell.scala index f141e39..4a51bd4 100644 --- a/src/main/scala/shell/xilinx/ML507Shell.scala +++ b/src/main/scala/shell/xilinx/ML507Shell.scala @@ -72,20 +72,20 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule { val sdio_dat = IO(Analog(4.W)) //Buttons - val btn_0 = IO(Analog(1.W)) - val btn_1 = IO(Analog(1.W)) - val btn_2 = IO(Analog(1.W)) - val btn_3 = IO(Analog(1.W)) + 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(Analog(1.W)) - val sw_1 = IO(Analog(1.W)) - val sw_2 = IO(Analog(1.W)) - val sw_3 = IO(Analog(1.W)) - val sw_4 = IO(Analog(1.W)) - val sw_5 = IO(Analog(1.W)) - val sw_6 = IO(Analog(1.W)) - val sw_7 = IO(Analog(1.W)) + 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())) //-----------------------------------------------------------------------