URL
https://opencores.org/ocsvn/s6soc/s6soc/trunk
[/] [s6soc/] [trunk/] [rtl/] [spio.v] - Diff between revs 8 and 46
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 8 |
Rev 46 |
Line 55... |
Line 55... |
output reg o_kp_int, o_btn_int;
|
output reg o_kp_int, o_btn_int;
|
|
|
initial o_kp_col = 4'h0;
|
initial o_kp_col = 4'h0;
|
initial o_led = 4'h0;
|
initial o_led = 4'h0;
|
always @(posedge i_clk)
|
always @(posedge i_clk)
|
if ((i_wb_cyc)&&(i_wb_stb)&&(i_wb_we))
|
if ((i_wb_stb)&&(i_wb_we))
|
begin
|
begin
|
o_kp_col <= ((o_kp_col)&(~i_wb_data[11:8]))
|
o_kp_col <= ((o_kp_col)&(~i_wb_data[11:8]))
|
|((i_wb_data[15:12])&(i_wb_data[11:8]));
|
|((i_wb_data[15:12])&(i_wb_data[11:8]));
|
// o_led <= ((o_led)&(~i_wb_data[7:4]))
|
// o_led <= ((o_led)&(~i_wb_data[7:4]))
|
// |((i_wb_data[3:0])&(i_wb_data[7:4]));
|
// |((i_wb_data[3:0])&(i_wb_data[7:4]));
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.