1
0

Add dip switches and clean up top interface

This commit is contained in:
Klemens Schölhorn 2018-05-01 00:07:58 +02:00
parent 5bcc4e82fd
commit 79b53cf2ae

View File

@ -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()))