newStep.v
This commit is contained in:
1 parent
a84b8fcfde
commit
6e38a6c1af
85 files changed
+25646
-6801
No files matched your search
@@ -0,0 +1,16 @@
|
||||
// femtorv32, a minimalistic RISC-V RV32I core
|
||||
// Bruno Levy, 2020-2021
|
||||
//
|
||||
// This file: driver for the buttons (does nearly nothing,
|
||||
// could include some filtering here).
|
||||
|
||||
module Buttons(
|
||||
input wire sel, // select (read/write ignored if low)
|
||||
output wire [31:0] rdata, // read data
|
||||
|
||||
input wire[5:0] BUTTONS // the six pins wired to the buttons
|
||||
);
|
||||
|
||||
assign rdata = (sel ? {26'b0, BUTTONS} : 32'b0);
|
||||
|
||||
endmodule
|
||||
Reference in new issue
Block a user