Fix polarity of buttons and dips on the ml507
This commit is contained in:
parent
f4ae1d469f
commit
5db71d11c2
@ -72,20 +72,20 @@ abstract class ML507Shell(implicit val p: Parameters) extends RawModule {
|
|||||||
val sdio_dat = IO(Analog(4.W))
|
val sdio_dat = IO(Analog(4.W))
|
||||||
|
|
||||||
//Buttons
|
//Buttons
|
||||||
val btn_0 = IO(Analog(1.W))
|
val btn_0 = IO(Input(Bool()))
|
||||||
val btn_1 = IO(Analog(1.W))
|
val btn_1 = IO(Input(Bool()))
|
||||||
val btn_2 = IO(Analog(1.W))
|
val btn_2 = IO(Input(Bool()))
|
||||||
val btn_3 = IO(Analog(1.W))
|
val btn_3 = IO(Input(Bool()))
|
||||||
|
|
||||||
//Sliding switches
|
//Sliding switches
|
||||||
val sw_0 = IO(Analog(1.W))
|
val sw_0 = IO(Input(Bool()))
|
||||||
val sw_1 = IO(Analog(1.W))
|
val sw_1 = IO(Input(Bool()))
|
||||||
val sw_2 = IO(Analog(1.W))
|
val sw_2 = IO(Input(Bool()))
|
||||||
val sw_3 = IO(Analog(1.W))
|
val sw_3 = IO(Input(Bool()))
|
||||||
val sw_4 = IO(Analog(1.W))
|
val sw_4 = IO(Input(Bool()))
|
||||||
val sw_5 = IO(Analog(1.W))
|
val sw_5 = IO(Input(Bool()))
|
||||||
val sw_6 = IO(Analog(1.W))
|
val sw_6 = IO(Input(Bool()))
|
||||||
val sw_7 = IO(Analog(1.W))
|
val sw_7 = IO(Input(Bool()))
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user