diff --git a/example_soc/fpga/fpga_icebreaker.f b/example_soc/fpga/fpga_icebreaker.f index 03f19af..256f5c9 100644 --- a/example_soc/fpga/fpga_icebreaker.f +++ b/example_soc/fpga/fpga_icebreaker.f @@ -1,5 +1,6 @@ file fpga_icebreaker.v file ../libfpga/common/reset_sync.v file ../libfpga/common/fpga_reset.v +list ../libfpga/common/activity_led.f list ../soc/soc.f diff --git a/example_soc/fpga/fpga_icebreaker.v b/example_soc/fpga/fpga_icebreaker.v index c9ac1cf..cf3d3ef 100644 --- a/example_soc/fpga/fpga_icebreaker.v +++ b/example_soc/fpga/fpga_icebreaker.v @@ -29,6 +29,8 @@ module fpga_icebreaker ( input wire tdi, output wire tdo, + output wire led, + output wire mirror_tck, output wire mirror_tms, output wire mirror_tdi, @@ -61,6 +63,16 @@ reset_sync trst_sync_u ( .rst_n_out (trst_n) ); +activity_led #( + .WIDTH (1 << 16), + .ACTIVE_LEVEL (1'b0) +) tck_led_u ( + .clk (clk_sys), + .rst_n (rst_n_sys), + .i (tck), + .o (led) +); + example_soc #( .MUL_FAST (1), .EXTENSION_C (0) @@ -69,7 +81,7 @@ example_soc #( .rst_n (rst_n_sys), .tck (tck), - .trst_n (rst_n_sys), //fixme! + .trst_n (trst_n), .tms (tms), .tdi (tdi), .tdo (tdo), diff --git a/example_soc/libfpga b/example_soc/libfpga index f594448..0b647a3 160000 --- a/example_soc/libfpga +++ b/example_soc/libfpga @@ -1 +1 @@ -Subproject commit f59444817ea754d65fb3c0a0eaf7255da5c77c6b +Subproject commit 0b647a3f8e82d93b4b1e78ec72c33ff487f00d33 diff --git a/example_soc/synth/fpga_icebreaker.pcf b/example_soc/synth/fpga_icebreaker.pcf index 38b2d57..25dfe3e 100644 --- a/example_soc/synth/fpga_icebreaker.pcf +++ b/example_soc/synth/fpga_icebreaker.pcf @@ -20,6 +20,8 @@ set_io tms 19 # FTDI BDBUS3 set_io uart_rx 15 # FTDI ADBUS0, flash SCK, iCE SCK set_io uart_tx 14 # FTDI ADBUS1, flash MOSI, iCE SO (if jumper J15 connected) +set_io led 37 # Green on main board + # SPI flash # set_io flash_mosi 14 # set_io flash_miso 17