fix(scripts): make Vivado TCL scripts portable and update RTL file lists
- Replace hardcoded /home/jason-stone/ paths with [info script]-relative path resolution in all 9 scripts (build17-21, insert_ila_probes, program_fpga, ila_capture, run_cdc_and_netlist) - Point constraint references at tracked XDC files instead of untracked synth_only.xdc - Remove six phantom RTL entries (chirp_lut_init.v, fft_1024_forward.v, fft_1024_inverse.v, level_shifter_interface.v, lvds_to_cmos_400m.v, usb_packet_analyzer.v) - Add six existing modules to file lists (rx_gain_control.v, mti_canceller.v, cfar_ca.v, fpga_self_test.v, xfft_16.v, adc_clk_mmcm.v) Closes #38
This commit is contained in:
@@ -34,7 +34,10 @@
|
||||
|
||||
set default_server "localhost"
|
||||
set default_port 3121
|
||||
set default_ltx "/home/jason-stone/PLFM_RADAR_work/vivado_project/bitstream/radar_system_top.ltx"
|
||||
set script_dir [file dirname [file normalize [info script]]]
|
||||
set project_root [file normalize [file join $script_dir ".."]]
|
||||
set default_ltx [file join $project_root "build" "aeris10_radar.runs" "impl_ila" "radar_system_top.ltx"]
|
||||
set default_output_base [file join $project_root "build" "captures"]
|
||||
set default_depth 4096
|
||||
set default_timeout 30
|
||||
|
||||
@@ -108,7 +111,7 @@ proc log_kv {key value} {
|
||||
|
||||
proc parse_args {} {
|
||||
global argc argv
|
||||
global default_server default_port default_ltx default_depth default_timeout
|
||||
global default_server default_port default_ltx default_output_base default_depth default_timeout
|
||||
global hw_server_host hw_server_port probes_path capture_depth trigger_timeout
|
||||
global capture_scenario use_immediate output_dir
|
||||
|
||||
@@ -185,7 +188,7 @@ proc parse_args {} {
|
||||
# Auto-generate timestamped output directory if not specified
|
||||
if {$output_dir eq ""} {
|
||||
set timestamp [clock format [clock seconds] -format {%Y%m%d_%H%M%S}]
|
||||
set output_dir "/home/jason-stone/PLFM_RADAR_work/vivado_project/captures/ila_${capture_scenario}_${timestamp}"
|
||||
set output_dir [file join $default_output_base "ila_${capture_scenario}_${timestamp}"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user