URL
https://opencores.org/ocsvn/openarty/openarty/trunk
[/] [openarty/] [trunk/] [rtl/] [fastio.v] - Diff between revs 17 and 19
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 17 |
Rev 19 |
Line 178... |
Line 178... |
always @(posedge i_clk)
|
always @(posedge i_clk)
|
last_cyc <= i_wb_cyc;
|
last_cyc <= i_wb_cyc;
|
initial r_leds = 4'h0;
|
initial r_leds = 4'h0;
|
always @(posedge i_clk)
|
always @(posedge i_clk)
|
if ((last_wb_stb)&&(last_wb_addr == 5'h5))
|
if ((last_wb_stb)&&(last_wb_addr == 5'h5))
|
r_leds <= last_wb_data[3:0];
|
r_leds <= ((last_wb_data[7:4])&(last_wb_data[3:0]))
|
|
|((~last_wb_data[7:4])&(r_leds));
|
assign o_led = r_leds;
|
assign o_led = r_leds;
|
assign w_ledreg = { 28'h0, r_leds };
|
assign w_ledreg = { 28'h0, r_leds };
|
|
|
//
|
//
|
// GPIO
|
// GPIO
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.