|
|
@ -205,8 +205,24 @@ module Top ( |
|
|
|
* TEST_SPI_REG * |
|
|
|
*******************************************************************************/ |
|
|
|
zutils_register16 #( |
|
|
|
.REG_START_ADD(`REG_ADD_OFF_FPGA_TEST) |
|
|
|
) core_board_debug_led_reg ( |
|
|
|
.REG_START_ADD(`REG_ADD_OFF_FPGA_TEST), |
|
|
|
.REG0_INIT(31'h0000_0000), |
|
|
|
.REG1_INIT(31'h1111_1111), |
|
|
|
.REG2_INIT(31'h2222_2222), |
|
|
|
.REG3_INIT(31'h3333_3333), |
|
|
|
.REG4_INIT(31'h4444_4444), |
|
|
|
.REG5_INIT(31'h5555_5555), |
|
|
|
.REG6_INIT(31'h6666_6666), |
|
|
|
.REG7_INIT(31'h7777_7777), |
|
|
|
.REG8_INIT(31'h8888_8888), |
|
|
|
.REG9_INIT(31'h9999_9999), |
|
|
|
.REGA_INIT(31'haaaa_aaaa), |
|
|
|
.REGB_INIT(31'hbbbb_bbbb), |
|
|
|
.REGC_INIT(31'hcccc_cccc), |
|
|
|
.REGD_INIT(31'hdddd_dddd), |
|
|
|
.REGE_INIT(31'heeee_eeee), |
|
|
|
.REGF_INIT(31'hffff_ffff) |
|
|
|
) test_reg ( |
|
|
|
.clk(sys_clk), |
|
|
|
.rst_n(rst_n), |
|
|
|
.addr(reg_reader_bus_addr), |
|
|
@ -299,38 +315,38 @@ module Top ( |
|
|
|
// ); |
|
|
|
|
|
|
|
|
|
|
|
// rd_data_router rd_data_router_inst ( |
|
|
|
// .addr(reg_reader_bus_addr), |
|
|
|
|
|
|
|
// .stm32_rd_data(stm32_rd_data), |
|
|
|
// .fpga_test_rd_data(fpga_test_rd_data), |
|
|
|
// .control_sensor_rd_data(control_sensor_rd_data), |
|
|
|
// .ttlin1_rd_data(ttlin1_rd_data), |
|
|
|
// .ttlin2_rd_data(ttlin2_rd_data), |
|
|
|
// .ttlin3_rd_data(ttlin3_rd_data), |
|
|
|
// .ttlin4_rd_data(ttlin4_rd_data), |
|
|
|
// .timecode_in_rd_data(timecode_in_rd_data), |
|
|
|
// .genlock_in_rd_data(genlock_in_rd_data), |
|
|
|
|
|
|
|
// .ttlout1_rd_data(ttlout1_rd_data), // ok |
|
|
|
// .ttlout2_rd_data(ttlout2_rd_data), // ok |
|
|
|
// .ttlout3_rd_data(ttlout3_rd_data), // ok |
|
|
|
// .ttlout4_rd_data(ttlout4_rd_data), // ok |
|
|
|
|
|
|
|
// .timecode_out_rd_data(timecode_out_rd_data), |
|
|
|
// .genlock_out_rd_data(genlock_out_rd_data), |
|
|
|
// .stm32_if_rd_data(stm32_if_rd_data), |
|
|
|
// .debuger_rd_data(debuger_rd_data), |
|
|
|
// rd_data_router rd_data_router_inst ( |
|
|
|
// .addr(reg_reader_bus_addr), |
|
|
|
|
|
|
|
// .rd_data_out(reg_reader_bus_rd_data) |
|
|
|
// ); |
|
|
|
assign fpga_test_rd_data = reg_reader_bus_rd_data; |
|
|
|
// .stm32_rd_data(stm32_rd_data), |
|
|
|
// .fpga_test_rd_data(fpga_test_rd_data), |
|
|
|
// .control_sensor_rd_data(control_sensor_rd_data), |
|
|
|
// .ttlin1_rd_data(ttlin1_rd_data), |
|
|
|
// .ttlin2_rd_data(ttlin2_rd_data), |
|
|
|
// .ttlin3_rd_data(ttlin3_rd_data), |
|
|
|
// .ttlin4_rd_data(ttlin4_rd_data), |
|
|
|
// .timecode_in_rd_data(timecode_in_rd_data), |
|
|
|
// .genlock_in_rd_data(genlock_in_rd_data), |
|
|
|
|
|
|
|
// .ttlout1_rd_data(ttlout1_rd_data), // ok |
|
|
|
// .ttlout2_rd_data(ttlout2_rd_data), // ok |
|
|
|
// .ttlout3_rd_data(ttlout3_rd_data), // ok |
|
|
|
// .ttlout4_rd_data(ttlout4_rd_data), // ok |
|
|
|
|
|
|
|
// .timecode_out_rd_data(timecode_out_rd_data), |
|
|
|
// .genlock_out_rd_data(genlock_out_rd_data), |
|
|
|
// .stm32_if_rd_data(stm32_if_rd_data), |
|
|
|
// .debuger_rd_data(debuger_rd_data), |
|
|
|
|
|
|
|
// .rd_data_out(reg_reader_bus_rd_data) |
|
|
|
// ); |
|
|
|
assign reg_reader_bus_rd_data[31:0] = fpga_test_rd_data[31:0]; |
|
|
|
|
|
|
|
assign debug_signal_output[0] = spi2_cs_pin; |
|
|
|
assign debug_signal_output[1] = spi2_clk_pin; |
|
|
|
assign debug_signal_output[2] = spi2_rx_pin; |
|
|
|
assign debug_signal_output[3] = spi2_tx_pin; |
|
|
|
assign core_board_debug_led = 1; |
|
|
|
assign core_board_debug_led = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|