|
|
@ -280,8 +280,8 @@ module Top ( |
|
|
|
assign sys_sig_delay_in[3] = sync_ttl_in4; // |
|
|
|
assign sys_sig_delay_in[4] = timecode_headphone_in; // |
|
|
|
assign sys_sig_delay_in[5] = timecode_bnc_in; // |
|
|
|
assign sys_sig_delay_in[6] = genlock_in_hsync; // |
|
|
|
assign sys_sig_delay_in[7] = genlock_in_vsync; // |
|
|
|
assign sys_sig_delay_in[6] = genlock_in_hsync; // |
|
|
|
assign sys_sig_delay_in[8] = genlock_in_fsync; // |
|
|
|
assign sys_sig_delay_in[9] = before_delay__sync_ttl_out1; // |
|
|
|
assign sys_sig_delay_in[10] = before_delay__sync_ttl_out2; // |
|
|
@ -297,8 +297,8 @@ module Top ( |
|
|
|
assign af_delay__sync_ttl_in4 = sys_sig_delay_out[3]; |
|
|
|
assign af_delay__timecode_headphone_in = sys_sig_delay_out[4]; |
|
|
|
assign af_delay__timecode_bnc_in = sys_sig_delay_out[5]; |
|
|
|
assign af_delay__genlock_in_hsync = sys_sig_delay_out[6]; |
|
|
|
assign af_delay__genlock_in_vsync = sys_sig_delay_out[7]; |
|
|
|
assign af_delay__genlock_in_hsync = sys_sig_delay_out[6]; |
|
|
|
assign af_delay__genlock_in_fsync = sys_sig_delay_out[8]; |
|
|
|
assign sync_ttl_out1 = sys_sig_delay_out[9]; |
|
|
|
assign sync_ttl_out2 = sys_sig_delay_out[10]; |
|
|
@ -312,7 +312,8 @@ module Top ( |
|
|
|
|
|
|
|
sys_signal_delayer #( |
|
|
|
.REG_START_ADD (`REGADDOFF__DELAYER), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ), |
|
|
|
.SIG_BUS_WIDTH(15) |
|
|
|
) sys_signal_delayer_ins ( |
|
|
|
.clk (sys_clk), |
|
|
|
.rst_n(sys_rst_n), |
|
|
@ -328,6 +329,7 @@ module Top ( |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal_sig_generator_en_contrler #( |
|
|
|
.REG_START_ADD (`REGADDOFF__INTERNAL_SIG_EN_CONTRLER), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
@ -451,12 +453,9 @@ module Top ( |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
genlock_input_module #( |
|
|
|
.REG_START_ADD (`REGADDOFF__GENLOCK_IN), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
@ -494,6 +493,24 @@ module Top ( |
|
|
|
.genlock_freq_signal(signal_internal_genlock_freq) |
|
|
|
); |
|
|
|
|
|
|
|
sys_genlock #( |
|
|
|
.REG_START_ADD (`REGADDOFF__SYS_GENLOCK), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
|
) sys_genlock0 ( |
|
|
|
.clk (sys_clk), |
|
|
|
.rst_n(sys_rst_n), |
|
|
|
|
|
|
|
.addr (RegReaderBus_addr), |
|
|
|
.wr_data(RegReaderBus_wr_data), |
|
|
|
.wr_en (RegReaderBus_wr_en), |
|
|
|
.rd_data(rd_data_module_sys_genlock), |
|
|
|
|
|
|
|
.internal_genlock_sig(signal_internal_genlock_freq), |
|
|
|
.external_genlock_sig(signal_ext_genlock_freq), |
|
|
|
|
|
|
|
.sys_genlock_tigger_sig(signal_sys_genlock_output) |
|
|
|
); |
|
|
|
|
|
|
|
internal_clock_generator #( |
|
|
|
.REG_START_ADD (`REGADDOFF__INTERNAL_CLOCK), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
@ -542,23 +559,6 @@ module Top ( |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
sys_genlock #( |
|
|
|
.REG_START_ADD (`REGADDOFF__SYS_GENLOCK), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
|
) sys_genlock0 ( |
|
|
|
.clk (sys_clk), |
|
|
|
.rst_n(sys_rst_n), |
|
|
|
|
|
|
|
.addr (RegReaderBus_addr), |
|
|
|
.wr_data(RegReaderBus_wr_data), |
|
|
|
.wr_en (RegReaderBus_wr_en), |
|
|
|
.rd_data(rd_data_module_sys_genlock), |
|
|
|
|
|
|
|
.internal_genlock_sig(signal_internal_genlock_freq), |
|
|
|
.external_genlock_sig(signal_ext_genlock_freq), |
|
|
|
|
|
|
|
.sys_genlock_tigger_sig(signal_sys_genlock_output) |
|
|
|
); |
|
|
|
sys_clock #( |
|
|
|
.REG_START_ADD (`REGADDOFF__SYS_CLOCK), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ) |
|
|
@ -600,8 +600,7 @@ module Top ( |
|
|
|
.stm32if_record_state_change_sig(before_delay__stm32if_start_signal_out), |
|
|
|
.stm32if_timecode_tigger_sig (before_delay__stm32if_timecode_sync_out) |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// /* |
|
|
|
|
|
|
|
ttl_output #( |
|
|
|
.REG_START_ADD(`REGADDOFF__TTLOUT1), |
|
|
@ -621,7 +620,6 @@ module Top ( |
|
|
|
.ttloutput (before_delay__sync_ttl_out1), |
|
|
|
.ttloutput_state_led(sync_ttl_out1_state_led) |
|
|
|
); |
|
|
|
|
|
|
|
ttl_output #( |
|
|
|
.REG_START_ADD(`REGADDOFF__TTLOUT2), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ), |
|
|
@ -640,6 +638,9 @@ module Top ( |
|
|
|
.ttloutput (before_delay__sync_ttl_out2), |
|
|
|
.ttloutput_state_led(sync_ttl_out2_state_led) |
|
|
|
); |
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
ttl_output #( |
|
|
|
.REG_START_ADD(`REGADDOFF__TTLOUT3), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ), |
|
|
@ -658,6 +659,7 @@ module Top ( |
|
|
|
.ttloutput (before_delay__sync_ttl_out3), |
|
|
|
.ttloutput_state_led(sync_ttl_out3_state_led) |
|
|
|
); |
|
|
|
*/ |
|
|
|
|
|
|
|
ttl_output #( |
|
|
|
.REG_START_ADD(`REGADDOFF__TTLOUT4), |
|
|
@ -679,7 +681,6 @@ module Top ( |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
record_sig_generator #( |
|
|
|
.REG_START_ADD(`REGADDOFF__RECORD_SIG_GENERATOR), |
|
|
|
.SYS_CLOCK_FREQ(SYS_CLOCK_FREQ), |
|
|
@ -710,25 +711,24 @@ module Top ( |
|
|
|
.out_record_en_sig (signal_business_record_en_sig), |
|
|
|
.out_record_exposure_sig(signal_business_record_exposure_sig) |
|
|
|
); |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assign debug_signal_output[0] = timecode_bnc_in; |
|
|
|
assign debug_signal_output[1] = af_delay__timecode_headphone_in; |
|
|
|
assign debug_signal_output[2] = timecode_is_detected; |
|
|
|
assign debug_signal_output[3] = timecode_is_detected; |
|
|
|
assign debug_signal_output[4] = sync_ttl_in1; |
|
|
|
// assign debug_signal_output[5] = af_delay__sync_ttl_in1; |
|
|
|
// assign debug_signal_output[6] = af_delay__sync_ttl_in1; |
|
|
|
// assign debug_signal_output[7] = af_delay__sync_ttl_in1; |
|
|
|
// assign debug_signal_output[8] = af_delay__sync_ttl_in1; |
|
|
|
// assign debug_signal_output[9] = af_delay__genlock_in_vsync; |
|
|
|
// assign debug_signal_output[10] = af_delay__timecode_headphone_in; |
|
|
|
// assign debug_signal_output[11] = af_delay__timecode_bnc_in; |
|
|
|
assign debug_signal_output[12] = timecode_out_headphone; |
|
|
|
assign debug_signal_output[13] = timecode_out_bnc; |
|
|
|
assign debug_signal_output[15] = 0; |
|
|
|
assign debug_signal_output[0] = sys_clk; |
|
|
|
assign debug_signal_output[1] = af_delay__sync_ttl_in3; |
|
|
|
assign debug_signal_output[2] = af_delay__sync_ttl_in2; |
|
|
|
assign debug_signal_output[3] = genlock_in_vsync; |
|
|
|
assign debug_signal_output[4] = af_delay__genlock_in_vsync; |
|
|
|
assign debug_signal_output[5] = timecode_headphone_in | timecode_bnc_in; |
|
|
|
assign debug_signal_output[6] = af_delay__timecode_headphone_in | af_delay__timecode_bnc_in; |
|
|
|
assign debug_signal_output[7] = sync_ttl_out1; |
|
|
|
assign debug_signal_output[8] = sync_ttl_out2; |
|
|
|
assign debug_signal_output[9] = sync_ttl_out3; |
|
|
|
assign debug_signal_output[10] = sync_ttl_out4; |
|
|
|
assign debug_signal_output[11] = sync_ttl_in1; |
|
|
|
assign debug_signal_output[12] = sync_ttl_in2; |
|
|
|
assign debug_signal_output[13] = sync_ttl_in3; |
|
|
|
assign debug_signal_output[15] = sync_ttl_in4; |
|
|
|
|
|
|
|
|
|
|
|
endmodule |