git.joshuawise.com
/
fpgaboy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6b499d
)
Working input in GB BASIC!
author
Joshua Wise
<joshua@rebirth.joshuawise.com>
Fri, 9 May 2008 10:25:50 +0000
(06:25 -0400)
committer
Joshua Wise
<joshua@rebirth.joshuawise.com>
Fri, 9 May 2008 10:25:50 +0000
(06:25 -0400)
Buttons.v
patch
|
blob
|
blame
|
history
diff --git
a/Buttons.v
b/Buttons.v
index
4d8a171
..
f81060c
100644
(file)
--- a/
Buttons.v
+++ b/
Buttons.v
@@
-1,4
+1,4
@@
-`define ADDR_P1 16'hFF
1
0
+`define ADDR_P1 16'hFF
0
0
/* note: buttons are 'pressed' when the input is high */
@@
-20,7
+20,7
@@
module Buttons(
assign data = (rdlatch && (addrlatch == `ADDR_P1)) ? p1 : 8'bzzzzzzzz;
- wire
p1013 = (p1[4] ? 4'b1111 : ~buttons[3:0]) |
(p1[5] ? 4'b1111 : ~buttons[7:4]);
+ wire
[3:0] p1013 = (p1[4] ? 4'b1111 : ~buttons[3:0]) &
(p1[5] ? 4'b1111 : ~buttons[7:4]);
always @ (posedge core_clk) begin
if(wr) begin
This page took
0.022132 seconds
and
4
git commands to generate.