Add activity LED to iCEBreaker
This commit is contained in:
		
							parent
							
								
									91edd62ea1
								
							
						
					
					
						commit
						5976a8a9b7
					
				|  | @ -1,5 +1,6 @@ | ||||||
| file fpga_icebreaker.v | file fpga_icebreaker.v | ||||||
| file ../libfpga/common/reset_sync.v | file ../libfpga/common/reset_sync.v | ||||||
| file ../libfpga/common/fpga_reset.v | file ../libfpga/common/fpga_reset.v | ||||||
|  | list ../libfpga/common/activity_led.f | ||||||
| 
 | 
 | ||||||
| list ../soc/soc.f | list ../soc/soc.f | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ module fpga_icebreaker ( | ||||||
| 	input  wire       tdi, | 	input  wire       tdi, | ||||||
| 	output wire       tdo, | 	output wire       tdo, | ||||||
| 
 | 
 | ||||||
|  | 	output wire       led, | ||||||
|  | 
 | ||||||
| 	output wire       mirror_tck, | 	output wire       mirror_tck, | ||||||
| 	output wire       mirror_tms, | 	output wire       mirror_tms, | ||||||
| 	output wire       mirror_tdi, | 	output wire       mirror_tdi, | ||||||
|  | @ -61,6 +63,16 @@ reset_sync trst_sync_u ( | ||||||
| 	.rst_n_out (trst_n) | 	.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 #( | example_soc #( | ||||||
| 	.MUL_FAST    (1), | 	.MUL_FAST    (1), | ||||||
| 	.EXTENSION_C (0) | 	.EXTENSION_C (0) | ||||||
|  | @ -69,7 +81,7 @@ example_soc #( | ||||||
| 	.rst_n   (rst_n_sys), | 	.rst_n   (rst_n_sys), | ||||||
| 
 | 
 | ||||||
| 	.tck     (tck), | 	.tck     (tck), | ||||||
| 	.trst_n  (rst_n_sys), //fixme! | 	.trst_n  (trst_n), | ||||||
| 	.tms     (tms), | 	.tms     (tms), | ||||||
| 	.tdi     (tdi), | 	.tdi     (tdi), | ||||||
| 	.tdo     (tdo), | 	.tdo     (tdo), | ||||||
|  |  | ||||||
|  | @ -1 +1 @@ | ||||||
| Subproject commit f59444817ea754d65fb3c0a0eaf7255da5c77c6b | Subproject commit 0b647a3f8e82d93b4b1e78ec72c33ff487f00d33 | ||||||
|  | @ -20,6 +20,8 @@ set_io tms 19 # FTDI BDBUS3 | ||||||
| set_io uart_rx 15 # FTDI ADBUS0, flash SCK, iCE SCK | 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 uart_tx 14 # FTDI ADBUS1, flash MOSI, iCE SO (if jumper J15 connected) | ||||||
| 
 | 
 | ||||||
|  | set_io led 37 # Green on main board | ||||||
|  | 
 | ||||||
| # SPI flash | # SPI flash | ||||||
| # set_io flash_mosi 14 | # set_io flash_mosi 14 | ||||||
| # set_io flash_miso 17 | # set_io flash_miso 17 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue