From 8013818a2399fee3c68e0ffa878131bf1cb50d78 Mon Sep 17 00:00:00 2001 From: Augusto Fraga Giachero Date: Fri, 20 Sep 2024 14:34:04 -0300 Subject: [PATCH] Remove old Verilog wb_orbit_intlk testbench --- .../orbit_intlk/modelsim/Manifest.py | 32 - hdl/testbench/orbit_intlk/modelsim/clk_rst.v | 42 - hdl/testbench/orbit_intlk/modelsim/defines.v | 24 - hdl/testbench/orbit_intlk/modelsim/run.do | 25 - .../orbit_intlk/modelsim/timescale.v | 4 - hdl/testbench/orbit_intlk/modelsim/wave.do | 450 --------- .../orbit_intlk/modelsim/wb_orbit_intlk_tb.v | 929 ------------------ 7 files changed, 1506 deletions(-) delete mode 100644 hdl/testbench/orbit_intlk/modelsim/Manifest.py delete mode 100644 hdl/testbench/orbit_intlk/modelsim/clk_rst.v delete mode 100644 hdl/testbench/orbit_intlk/modelsim/defines.v delete mode 100644 hdl/testbench/orbit_intlk/modelsim/run.do delete mode 100644 hdl/testbench/orbit_intlk/modelsim/timescale.v delete mode 100644 hdl/testbench/orbit_intlk/modelsim/wave.do delete mode 100644 hdl/testbench/orbit_intlk/modelsim/wb_orbit_intlk_tb.v diff --git a/hdl/testbench/orbit_intlk/modelsim/Manifest.py b/hdl/testbench/orbit_intlk/modelsim/Manifest.py deleted file mode 100644 index 2dd03e65..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/Manifest.py +++ /dev/null @@ -1,32 +0,0 @@ -action = "simulation" -target = "xilinx" -syn_device = "xc7a200t" -sim_tool = "modelsim" -top_module = "wb_orbit_intlk_tb" -sim_top = "wb_orbit_intlk_tb" - -modules = { - "local" : [ - "../../../modules/wb_orbit_intlk/", - "../../../ip_cores/general-cores", - "../../../ip_cores/infra-cores", - "../../../ip_cores/dsp-cores", - ] -} - -files = [ - "wb_orbit_intlk_tb.v", - "clk_rst.v", -] - -include_dirs = [ - ".", - "../../../sim", - "../../../sim/regs" - "../../../ip_cores/general-cores/modules/wishbone/wb_lm32/src", - "../../../ip_cores/general-cores/modules/wishbone/wb_lm32/platform/generic", - "../../../ip_cores/general-cores/modules/wishbone/wb_spi_bidir", - "../../../ip_cores/general-cores/modules/wishbone/wb_spi" -] - -vlog_opt = "+incdir+../../../sim/regs +incdir+../../../sim +incdir+." diff --git a/hdl/testbench/orbit_intlk/modelsim/clk_rst.v b/hdl/testbench/orbit_intlk/modelsim/clk_rst.v deleted file mode 100644 index e5dc0872..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/clk_rst.v +++ /dev/null @@ -1,42 +0,0 @@ -`include "timescale.v" -`include "defines.v" - -module clk_rst( - clk_sys_o, - sys_rstn_o -); - - // Defaults parameters - parameter CLK_SYS_PERIOD = `CLK_SYS_PERIOD; - - // Output Clocks - output reg - clk_sys_o; - - // Output Reset - output reg - sys_rstn_o; - - initial - begin - clk_sys_o = 0; - end - - // Reset generate - initial - begin - sys_rstn_o <= 1'b0; - - repeat (`RST_SYS_DELAY) begin - @(posedge clk_sys_o); - end - - @(posedge clk_sys_o); - sys_rstn_o <= 1'b1; - end - - // Clock Generation - always #(CLK_SYS_PERIOD/2) - clk_sys_o <= ~clk_sys_o; - -endmodule diff --git a/hdl/testbench/orbit_intlk/modelsim/defines.v b/hdl/testbench/orbit_intlk/modelsim/defines.v deleted file mode 100644 index 81d9205c..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/defines.v +++ /dev/null @@ -1,24 +0,0 @@ -/******************************* - * General definitions - *******************************/ - -// 100 MHz clock -`define CLK_SYS_PERIOD 10.00 //ns - -// Reset Delay, in Clock Cycles -`define RST_SYS_DELAY 10 - -/******************************* - * Wishbone definitions - *******************************/ - -// Wishbone Reference Clock -`define WB_CLOCK_PERIOD 10.00 -`define WB_RESET_DELAY (10*`WB_CLOCK_PERIOD) -`define WB_RESET_COUNTS 6 -// Wishbone Data Width -`define WB_DATA_BUS_WIDTH 32 -// Wishbone Address Width -`define WB_ADDRESS_BUS_WIDTH 32 -`define WB_BWSEL_WIDTH ((`WB_DATA_BUS_WIDTH + 7) / 8) -`define WB_WORD_ACC 2 diff --git a/hdl/testbench/orbit_intlk/modelsim/run.do b/hdl/testbench/orbit_intlk/modelsim/run.do deleted file mode 100644 index 8a949971..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/run.do +++ /dev/null @@ -1,25 +0,0 @@ -vlog wb_orbit_intlk_tb.v +incdir+"." +incdir+../../../sim +incdir+../../../sim/regs --- make -f Makefile --- output log file to file "output.log", set siulation resolution to "fs" -vsim -l output.log \ - +vcd \ - -voptargs="+acc" \ - -t fs \ - +notimingchecks \ - -L unifast_ver \ - -L unisims_ver \ - -L unimacro_ver \ - -L secureip \ - -L xil_defaultlib \ - -L unisims_ver \ - -L unisim \ - -L secureip \ - work.wb_orbit_intlk_tb -do wave.do -log -r /* -set StdArithNoWarnings 1 -set NumericStdNoWarnings 1 -radix -hexadecimal -run 10us -wave zoomfull -radix -hexadecimal diff --git a/hdl/testbench/orbit_intlk/modelsim/timescale.v b/hdl/testbench/orbit_intlk/modelsim/timescale.v deleted file mode 100644 index 1231cf00..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/timescale.v +++ /dev/null @@ -1,4 +0,0 @@ -// reference time = 1ns -// precision time = 1ps -`timescale 1ns/100ps -//`timescale 1ps/100fs diff --git a/hdl/testbench/orbit_intlk/modelsim/wave.do b/hdl/testbench/orbit_intlk/modelsim/wave.do deleted file mode 100644 index 831ac540..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/wave.do +++ /dev/null @@ -1,450 +0,0 @@ -onerror {resume} -quietly WaveActivateNextPane {} 0 -add wave -noupdate -divider wb_orbit_intlk_tb -add wave -noupdate /wb_orbit_intlk_tb/c_ADC_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/c_DECIM_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/c_INTLK_LMT_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/sys_clk -add wave -noupdate /wb_orbit_intlk_tb/sys_rstn -add wave -noupdate /wb_orbit_intlk_tb/sys_rst -add wave -noupdate /wb_orbit_intlk_tb/intlk_en -add wave -noupdate /wb_orbit_intlk_tb/intlk_clr -add wave -noupdate /wb_orbit_intlk_tb/intlk_min_sum_en -add wave -noupdate /wb_orbit_intlk_tb/intlk_min_sum -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_en -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_clr -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_max_x -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_max_y -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_en -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_clr -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_max_x -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_max_y -add wave -noupdate /wb_orbit_intlk_tb/adc_ds_ch0_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_ds_ch1_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_ds_ch2_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_ds_ch3_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_ds_tag -add wave -noupdate /wb_orbit_intlk_tb/adc_ds_swap_valid -add wave -noupdate /wb_orbit_intlk_tb/decim_ds_pos_x -add wave -noupdate /wb_orbit_intlk_tb/decim_ds_pos_y -add wave -noupdate /wb_orbit_intlk_tb/decim_ds_pos_q -add wave -noupdate /wb_orbit_intlk_tb/decim_ds_pos_sum -add wave -noupdate /wb_orbit_intlk_tb/decim_ds_pos_valid -add wave -noupdate /wb_orbit_intlk_tb/adc_us_ch0_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_us_ch1_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_us_ch2_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_us_ch3_swap -add wave -noupdate /wb_orbit_intlk_tb/adc_us_tag -add wave -noupdate /wb_orbit_intlk_tb/adc_us_swap_valid -add wave -noupdate /wb_orbit_intlk_tb/decim_us_pos_x -add wave -noupdate /wb_orbit_intlk_tb/decim_us_pos_y -add wave -noupdate /wb_orbit_intlk_tb/decim_us_pos_q -add wave -noupdate /wb_orbit_intlk_tb/decim_us_pos_sum -add wave -noupdate /wb_orbit_intlk_tb/decim_us_pos_valid -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger_x -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger_y -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger_ltc_x -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger_ltc_y -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger_any -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/intlk_trans_bigger -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger_x -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger_y -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger_ltc_x -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger_ltc_y -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger_any -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/intlk_ang_bigger -add wave -noupdate /wb_orbit_intlk_tb/intlk_ltc -add wave -noupdate /wb_orbit_intlk_tb/intlk -add wave -noupdate /wb_orbit_intlk_tb/test_id -add wave -noupdate /wb_orbit_intlk_tb/test_in_progress -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_en -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_min_sum_en -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_min_sum -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_trans_en -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_trans_max_x -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_trans_max_y -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_ang_en -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_ang_max_x -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_ang_max_y -add wave -noupdate /wb_orbit_intlk_tb/test_decim_ds_pos_x -add wave -noupdate /wb_orbit_intlk_tb/test_decim_ds_pos_y -add wave -noupdate /wb_orbit_intlk_tb/test_decim_ds_pos_q -add wave -noupdate /wb_orbit_intlk_tb/test_decim_ds_pos_sum -add wave -noupdate /wb_orbit_intlk_tb/test_decim_us_pos_x -add wave -noupdate /wb_orbit_intlk_tb/test_decim_us_pos_y -add wave -noupdate /wb_orbit_intlk_tb/test_decim_us_pos_q -add wave -noupdate /wb_orbit_intlk_tb/test_decim_us_pos_sum -add wave -noupdate /wb_orbit_intlk_tb/test_intlk_status -add wave -noupdate -divider DUT -add wave -noupdate /wb_orbit_intlk_tb/DUT/g_INTERFACE_MODE -add wave -noupdate /wb_orbit_intlk_tb/DUT/g_ADDRESS_GRANULARITY -add wave -noupdate /wb_orbit_intlk_tb/DUT/g_WITH_EXTRA_WB_REG -add wave -noupdate /wb_orbit_intlk_tb/DUT/g_ADC_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/g_DECIM_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/rst_n_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/clk_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/ref_rst_n_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/ref_clk_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_adr_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_dat_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_dat_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_sel_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_we_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_cyc_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_stb_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_ack_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_stall_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/fs_clk_ds_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_ds_ch0_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_ds_ch1_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_ds_ch2_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_ds_ch3_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_ds_tag_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_ds_swap_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_ds_pos_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_ds_pos_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_ds_pos_q_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_ds_pos_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_ds_pos_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/fs_clk_us_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_us_ch0_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_us_ch1_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_us_ch2_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_us_ch3_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_us_tag_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/adc_us_swap_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_us_pos_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_us_pos_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_us_pos_q_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_us_pos_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/decim_us_pos_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/regs_in -add wave -noupdate /wb_orbit_intlk_tb/DUT/regs_out -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_slv_adp_out -add wave -noupdate /wb_orbit_intlk_tb/DUT/wb_slv_adp_in -add wave -noupdate /wb_orbit_intlk_tb/DUT/resized_addr -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_en_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_clr_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_min_sum_en_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_min_sum_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_en_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_clr_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_max_x_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_max_y_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_min_x_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_min_y_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_en_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_clr_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_max_x_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_max_y_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_min_x_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_min_y_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_ltc_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_ltc_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_ltc_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_ltc_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_trans_smaller -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_ltc_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_ltc_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_ltc_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_ltc_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ang_smaller -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk -add wave -noupdate /wb_orbit_intlk_tb/DUT/intlk_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/c_PERIPH_ADDR_SIZE -add wave -noupdate /wb_orbit_intlk_tb/DUT/c_INTLK_LMT_WIDTH -add wave -noupdate -divider orbit_intlk -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/g_ADC_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/g_DECIM_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/g_INTLK_LMT_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/ref_rst_n_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/ref_clk_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_en_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_clr_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_min_sum_en_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_min_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_en_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_clr_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_max_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_max_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_min_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_min_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_en_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_clr_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_max_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_max_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_min_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_min_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/fs_clk_ds_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch0_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch1_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch2_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch3_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_tag_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_swap_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_q_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/fs_clk_us_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch0_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch1_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch2_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch3_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_tag_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_swap_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_q_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_pos_sum_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_pos_valid_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_smaller -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_smaller -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_min_sum_n -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_min_sum_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_sum_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_sum_bigger_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_sum_bigger_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_sum_bigger_or -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_sum_bigger_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_sum_bigger_en -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_trans_master_en -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/intlk_ang_master_en -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch0_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch1_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch2_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_ch3_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_tag -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_ds_swap_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_q -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_sum -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_ds_pos_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch0_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch1_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch2_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_ch3_swap -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_tag -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/adc_us_swap_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_x -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_y -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_q -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_sum -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/decim_us_pos_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/c_ADC_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/c_DECIM_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/c_INTLK_LMT_WIDTH -add wave -noupdate -divider intlk_trans -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/g_ADC_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/g_DECIM_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/g_INTLK_LMT_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/fs_rst_n_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/fs_clk_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_en_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_clr_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_max_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_max_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_min_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_min_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_ds_ch0_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_ds_ch1_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_ds_ch2_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_ds_ch3_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_ds_tag_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_ds_swap_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_ds_pos_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_ds_pos_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_ds_pos_q_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_ds_pos_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_ds_pos_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_us_ch0_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_us_ch1_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_us_ch2_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_us_ch3_swap_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_us_tag_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_us_swap_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_us_pos_x_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_us_pos_y_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_us_pos_q_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_us_pos_sum_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_us_pos_valid_i -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_bigger_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_ltc_x_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_ltc_y_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_any_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_ltc_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_smaller_o -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_tag_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_valid_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_pos_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_pos_valid_array -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_max -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_max_neg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/intlk_trans_min -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_valid_and -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/adc_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_pos_valid_and -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/decim_pos_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_sum -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_sum_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_sum_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_sum_valid_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_neg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_bigger_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_bigger_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_bigger_valid_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_smaller -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_smaller_valid -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_smaller_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_smaller_valid_reg -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_det_bigger_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger_ltc_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger_or -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger_ltc_or -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_bigger -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_det_smaller_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller_ltc_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller_or -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller_all -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller_ltc_or -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller_ltc -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller_any -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/trans_intlk_smaller -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/c_ADC_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/c_DECIM_WIDTH -add wave -noupdate /wb_orbit_intlk_tb/DUT/cmp_orbit_intlk/cmp_orbit_intlk_trans/c_INTLK_LMT_WIDTH -add wave -noupdate -divider intlk_ang -TreeUpdate [SetDefaultTree] -WaveRestoreCursors {{Cursor 1} {8395000000 fs} 0} {{Cursor 2} {8058029839 fs} 0} -quietly wave cursor active 2 -configure wave -namecolwidth 249 -configure wave -valuecolwidth 100 -configure wave -justifyvalue left -configure wave -signalnamewidth 1 -configure wave -snapdistance 10 -configure wave -datasetprefix 0 -configure wave -rowmargin 4 -configure wave -childrowmargin 2 -configure wave -gridoffset 0 -configure wave -gridperiod 1 -configure wave -griddelta 40 -configure wave -timeline 0 -configure wave -timelineunits ps -update -WaveRestoreZoom {7491367289 fs} {8810980669 fs} diff --git a/hdl/testbench/orbit_intlk/modelsim/wb_orbit_intlk_tb.v b/hdl/testbench/orbit_intlk/modelsim/wb_orbit_intlk_tb.v deleted file mode 100644 index 7275b3d5..00000000 --- a/hdl/testbench/orbit_intlk/modelsim/wb_orbit_intlk_tb.v +++ /dev/null @@ -1,929 +0,0 @@ -//---------------------------------------------------------------------------- -// Title : Testbench for BPM Interlock -//---------------------------------------------------------------------------- -// Author : Lucas Maziero Russo -// Company : CNPEM LNLS-DIG -// Created : 2020-06-15 -// Platform : FPGA-generic -//----------------------------------------------------------------------------- -// Description: Simulation of the BPM Interlock -//----------------------------------------------------------------------------- -// Copyright (c) 2020 CNPEM -// Licensed under GNU Lesser General Public License (LGPL) v3.0 -//----------------------------------------------------------------------------- -// Revisions : -// Date Version Author Description -// 2020-06-15 1.0 lucas.russo Created -//----------------------------------------------------------------------------- - -// Simulation timescale -`include "timescale.v" -// Common definitions -`include "defines.v" -// Wishbone Master -`include "wishbone_test_master.v" -// bpm swap Register definitions -`include "regs/wb_orbit_intlk_regs.vh" - -module wb_orbit_intlk_tb; - - // Local definitions - localparam c_ADC_WIDTH = 16; - localparam c_DECIM_WIDTH = 32; - localparam c_INTLK_LMT_WIDTH = 32; - - //************************************************************************** - // Clock generation and reset - //************************************************************************** - wire sys_clk; - wire sys_rstn; - wire sys_rst; - - clk_rst cmp_clk_rst( - .clk_sys_o(sys_clk), - .sys_rstn_o(sys_rstn) - ); - - assign sys_rst = ~sys_rstn; - - //************************************************************************** - // Wishbone Master - //************************************************************************** - - WB_TEST_MASTER WB0( - .wb_clk (sys_clk) - ); - - //************************************************************************** - // DUT - //************************************************************************** - reg intlk_en; - reg intlk_clr; - - reg intlk_min_sum_en; - reg [c_INTLK_LMT_WIDTH-1:0] intlk_min_sum; - - reg intlk_trans_en; - reg intlk_trans_clr; - reg [c_INTLK_LMT_WIDTH-1:0] intlk_trans_max_x; - reg [c_INTLK_LMT_WIDTH-1:0] intlk_trans_max_y; - - reg intlk_ang_en; - reg intlk_ang_clr; - reg [c_INTLK_LMT_WIDTH-1:0] intlk_ang_max_x; - reg [c_INTLK_LMT_WIDTH-1:0] intlk_ang_max_y; - - reg [c_ADC_WIDTH-1:0] adc_ds_ch0_swap; - reg [c_ADC_WIDTH-1:0] adc_ds_ch1_swap; - reg [c_ADC_WIDTH-1:0] adc_ds_ch2_swap; - reg [c_ADC_WIDTH-1:0] adc_ds_ch3_swap; - reg [0:0] adc_ds_tag; - reg adc_ds_swap_valid; - - reg [c_DECIM_WIDTH-1:0] decim_ds_pos_x; - reg [c_DECIM_WIDTH-1:0] decim_ds_pos_y; - reg [c_DECIM_WIDTH-1:0] decim_ds_pos_q; - reg [c_DECIM_WIDTH-1:0] decim_ds_pos_sum; - reg decim_ds_pos_valid; - - reg [c_ADC_WIDTH-1:0] adc_us_ch0_swap; - reg [c_ADC_WIDTH-1:0] adc_us_ch1_swap; - reg [c_ADC_WIDTH-1:0] adc_us_ch2_swap; - reg [c_ADC_WIDTH-1:0] adc_us_ch3_swap; - reg [0:0] adc_us_tag; - reg adc_us_swap_valid; - - reg [c_DECIM_WIDTH-1:0] decim_us_pos_x; - reg [c_DECIM_WIDTH-1:0] decim_us_pos_y; - reg [c_DECIM_WIDTH-1:0] decim_us_pos_q; - reg [c_DECIM_WIDTH-1:0] decim_us_pos_sum; - reg decim_us_pos_valid; - - wire intlk_trans_bigger_x; - wire intlk_trans_bigger_y; - wire intlk_trans_bigger_ltc_x; - wire intlk_trans_bigger_ltc_y; - wire intlk_trans_bigger_any; - wire intlk_trans_bigger_ltc; - wire intlk_trans_bigger; - wire intlk_ang_bigger_x; - wire intlk_ang_bigger_y; - wire intlk_ang_bigger_ltc_x; - wire intlk_ang_bigger_ltc_y; - wire intlk_ang_bigger_any; - wire intlk_ang_bigger_ltc; - wire intlk_ang_bigger; - wire intlk_ltc; - wire intlk; - - wb_orbit_intlk #( - .g_ADC_WIDTH (16), - .g_DECIM_WIDTH (32) - ) - DUT ( - .rst_n_i (sys_rstn), - .clk_i (sys_clk), - .ref_rst_n_i (sys_rstn), - .ref_clk_i (sys_clk), - - .wb_adr_i (WB0.wb_addr), - .wb_dat_i (WB0.wb_data_o), - .wb_dat_o (WB0.wb_data_i), - .wb_cyc_i (WB0.wb_cyc), - .wb_sel_i (WB0.wb_bwsel), - .wb_stb_i (WB0.wb_stb), - .wb_we_i (WB0.wb_we), - .wb_ack_o (WB0.wb_ack_i), - .wb_stall_o (), - - .fs_clk_ds_i (sys_clk), - - .adc_ds_ch0_swap_i (adc_ds_ch0_swap), - .adc_ds_ch1_swap_i (adc_ds_ch1_swap), - .adc_ds_ch2_swap_i (adc_ds_ch2_swap), - .adc_ds_ch3_swap_i (adc_ds_ch3_swap), - .adc_ds_tag_i (adc_ds_tag), - .adc_ds_swap_valid_i (adc_ds_swap_valid), - - .decim_ds_pos_x_i (decim_ds_pos_x), - .decim_ds_pos_y_i (decim_ds_pos_y), - .decim_ds_pos_q_i (decim_ds_pos_q), - .decim_ds_pos_sum_i (decim_ds_pos_sum), - .decim_ds_pos_valid_i (decim_ds_pos_valid), - - .fs_clk_us_i (sys_clk), - - .adc_us_ch0_swap_i (adc_us_ch0_swap), - .adc_us_ch1_swap_i (adc_us_ch1_swap), - .adc_us_ch2_swap_i (adc_us_ch2_swap), - .adc_us_ch3_swap_i (adc_us_ch3_swap), - .adc_us_tag_i (adc_us_tag), - .adc_us_swap_valid_i (adc_us_swap_valid), - - .decim_us_pos_x_i (decim_us_pos_x), - .decim_us_pos_y_i (decim_us_pos_y), - .decim_us_pos_q_i (decim_us_pos_q), - .decim_us_pos_sum_i (decim_us_pos_sum), - .decim_us_pos_valid_i (decim_us_pos_valid), - - .intlk_trans_bigger_x_o (intlk_trans_bigger_x), - .intlk_trans_bigger_y_o (intlk_trans_bigger_y), - - .intlk_trans_bigger_ltc_x_o (intlk_trans_bigger_ltc_x), - .intlk_trans_bigger_ltc_y_o (intlk_trans_bigger_ltc_y), - - .intlk_trans_bigger_any_o (intlk_trans_bigger_any), - - .intlk_trans_bigger_ltc_o (intlk_trans_bigger_ltc), - .intlk_trans_bigger_o (intlk_trans_bigger), - - .intlk_ang_bigger_x_o (intlk_ang_bigger_x), - .intlk_ang_bigger_y_o (intlk_ang_bigger_y), - - .intlk_ang_bigger_ltc_x_o (intlk_ang_bigger_ltc_x), - .intlk_ang_bigger_ltc_y_o (intlk_ang_bigger_ltc_y), - - .intlk_ang_bigger_any_o (intlk_ang_bigger_any), - - .intlk_ang_bigger_ltc_o (intlk_ang_bigger_ltc), - .intlk_ang_bigger_o (intlk_ang_bigger), - - .intlk_ltc_o (intlk_ltc), - .intlk_o (intlk) - ); - - //************************************************************************** - // Interlock test signals - //************************************************************************** - - integer test_id; - reg test_in_progress; - - reg test_intlk_en; - - reg test_intlk_min_sum_en; - reg [c_INTLK_LMT_WIDTH-1:0] test_intlk_min_sum; - - reg test_intlk_trans_en; - reg [c_INTLK_LMT_WIDTH-1:0] test_intlk_trans_max_x; - reg [c_INTLK_LMT_WIDTH-1:0] test_intlk_trans_max_y; - - reg test_intlk_ang_en; - reg [c_INTLK_LMT_WIDTH-1:0] test_intlk_ang_max_x; - reg [c_INTLK_LMT_WIDTH-1:0] test_intlk_ang_max_y; - - reg [c_DECIM_WIDTH-1:0] test_decim_ds_pos_x; - reg [c_DECIM_WIDTH-1:0] test_decim_ds_pos_y; - reg [c_DECIM_WIDTH-1:0] test_decim_ds_pos_q; - reg [c_DECIM_WIDTH-1:0] test_decim_ds_pos_sum; - - reg [c_DECIM_WIDTH-1:0] test_decim_us_pos_x; - reg [c_DECIM_WIDTH-1:0] test_decim_us_pos_y; - reg [c_DECIM_WIDTH-1:0] test_decim_us_pos_q; - reg [c_DECIM_WIDTH-1:0] test_decim_us_pos_sum; - - reg test_intlk_status; - - //************************************************************************** - // Stimulus to DUT - //************************************************************************** - initial begin - intlk_en = 1'b1; - intlk_clr = 1'b0; - - intlk_min_sum_en = 1'b0; - intlk_min_sum = 'h0; - - intlk_trans_en = 1'b1; - intlk_trans_clr = 1'b0; - - // 1mm = 1000000 nm = F4240h - intlk_trans_max_x = 'h10_0000; - intlk_trans_max_y = 'h10_0000; - - intlk_ang_en = 1'b1; - intlk_ang_clr = 1'b0; - - // 200 urad * 7m (distance between BPMs) = 1_400_000 nm = 155CC0h - intlk_ang_max_x = 'h1_55CC0; - intlk_ang_max_y = 'h1_55CC0; - - adc_ds_ch0_swap = 'h0; - adc_ds_ch1_swap = 'h0; - adc_ds_ch2_swap = 'h0; - adc_ds_ch3_swap = 'h0; - adc_ds_tag = 'h0; - adc_ds_swap_valid = 1'b0; - - decim_ds_pos_x = 'h0; - decim_ds_pos_y = 'h0; - decim_ds_pos_q = 'h0; - decim_ds_pos_sum = 'h0; - decim_ds_pos_valid = 1'b0; - - adc_us_ch0_swap = 'h0; - adc_us_ch1_swap = 'h0; - adc_us_ch2_swap = 'h0; - adc_us_ch3_swap = 'h0; - adc_us_tag = 'h0; - adc_us_swap_valid = 1'b0; - - decim_us_pos_x = 'h0; - decim_us_pos_y = 'h0; - decim_us_pos_q = 'h0; - decim_us_pos_sum = 'h0; - decim_us_pos_valid = 1'b0; - - $display("-----------------------------------"); - $display("@%0d: Simulation of BPM Interlock starting!", $time); - $display("-----------------------------------"); - - $display("-----------------------------------"); - $display("@%0d: Initialization Begin", $time); - $display("-----------------------------------"); - - $display("-----------------------------------"); - $display("@%0d: Waiting for all resets...", $time); - $display("-----------------------------------"); - - wait (WB0.ready); - wait (sys_rstn); - - $display("@%0d: Reset done!", $time); - - @(posedge sys_clk); - - $display("-------------------------------------"); - $display("@%0d: Waiting for interlock clear...", $time); - $display("-------------------------------------"); - - intlk_clr = 1'b0; - intlk_trans_clr = 1'b0; - intlk_ang_clr = 1'b0; - - @(posedge sys_clk); - - $display("@%0d: Interlock clear done!", $time); - - $display("-------------------------------------"); - $display("@%0d: Initialization Done!", $time); - $display("-------------------------------------"); - - @(posedge sys_clk); - - //////////////////////// - // TEST #1 - // Translation interlock: - // smaller than threshold X - //////////////////////// - test_id = 1; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b0; - test_intlk_min_sum = 'h0; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h10_0000; - test_intlk_trans_max_y = 'h10_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'h100; - test_decim_ds_pos_y = 'h0001_0000; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0; - - test_decim_us_pos_x = 'h100; - test_decim_us_pos_y = 'h0001_0000; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0; - - test_intlk_status = 1'b0; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - //////////////////////// - // TEST #2 - // Translation interlock: - // bigger than threshold X - //////////////////////// - test_id = 2; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b0; - test_intlk_min_sum = 'h0; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h10_0000; - test_intlk_trans_max_y = 'h10_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'h0100_0000; - test_decim_ds_pos_y = 'h0001_0000; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0; - - test_decim_us_pos_x = 'h0100_0000; - test_decim_us_pos_y = 'h0001_0000; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0; - - test_intlk_status = 1'b1; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - //////////////////////// - // TEST #3 - // Translation interlock: - // equal than threshold X - //////////////////////// - test_id = 3; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b0; - test_intlk_min_sum = 'h0; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h10_0000; - test_intlk_trans_max_y = 'h10_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'h0020_0000; - test_decim_ds_pos_y = 'h0001_0000; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0; - - test_decim_us_pos_x = 'h0008_0000; - test_decim_us_pos_y = 'h0001_0000; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0; - - test_intlk_status = 1'b1; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - //////////////////////// - // TEST #4 - // No translation interlock: - // X/Y within limits - //////////////////////// - test_id = 4; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b0; - test_intlk_min_sum = 'h0; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h10_0000; - test_intlk_trans_max_y = 'h10_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'h0002_0000; - test_decim_ds_pos_y = 'h0003_0000; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0; - - test_decim_us_pos_x = 'h0004_0000; - test_decim_us_pos_y = 'h0008_0000; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0; - - test_intlk_status = 1'b0; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - //////////////////////// - // TEST #5 - // Minimum sum interlock: - // X/Y outside limits., but sum too small - //////////////////////// - test_id = 5; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b1; - test_intlk_min_sum = 'h0_1000; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h10_0000; - test_intlk_trans_max_y = 'h10_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'h0100_0000; - test_decim_ds_pos_y = 'h0100_0000; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0000_0100; - - test_decim_us_pos_x = 'h0100_0000; - test_decim_us_pos_y = 'h0100_0000; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0000_0500; - - test_intlk_status = 1'b0; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - //////////////////////// - // TEST #6 - // Negative position - // X/Y within limits. - //////////////////////// - test_id = 6; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b1; - test_intlk_min_sum = 'h0_1000; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h10_0000; - test_intlk_trans_max_y = 'h10_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'h0010_0000; - test_decim_ds_pos_y = 'h0010_0000; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0001_0000; - - test_decim_us_pos_x = 'hFFFF_FF00; - test_decim_us_pos_y = 'hFFFF_FF00; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0001_0000; - - test_intlk_status = 1'b0; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - //////////////////////// - // TEST #7 - // Negative position - // X/Y within limits. - //////////////////////// - test_id = 7; - test_intlk_en = 1'b1; - - test_intlk_min_sum_en = 1'b1; - test_intlk_min_sum = 'h0_1000; - - test_intlk_trans_en = 1'b1; - - test_intlk_trans_max_x = 'h0000_0000; - test_intlk_trans_max_y = 'h0000_0000; - - test_intlk_ang_en = 1'b0; - - test_intlk_ang_max_x = 'h1_55CC0; - test_intlk_ang_max_y = 'h1_55CC0; - - test_decim_ds_pos_x = 'hFFFF_FF00; - test_decim_ds_pos_y = 'hFFFF_FF00; - test_decim_ds_pos_q = 'h0; - test_decim_ds_pos_sum = 'h0001_0000; - - test_decim_us_pos_x = 'hFFFF_FF00; - test_decim_us_pos_y = 'hFFFF_FF00; - test_decim_us_pos_q = 'h0; - test_decim_us_pos_sum = 'h0001_0000; - - test_intlk_status = 1'b0; - - wb_intlk_transaction( - test_id, - test_intlk_en, - test_intlk_min_sum_en, - test_intlk_min_sum, - test_intlk_trans_en , - test_intlk_trans_max_x, - test_intlk_trans_max_y, - test_intlk_ang_en , - test_intlk_ang_max_x, - test_intlk_ang_max_y, - test_decim_ds_pos_x, - test_decim_ds_pos_y, - test_decim_ds_pos_q, - test_decim_ds_pos_sum, - test_decim_us_pos_x, - test_decim_us_pos_y, - test_decim_us_pos_q, - test_decim_us_pos_sum, - test_intlk_status - ); - - $display("Simulation Done!"); - $display("All Tests Passed!"); - $display("---------------------------------------------"); - $finish; - end - - /////////////////////////////////////////////////////////////////////////// - // Functions - /////////////////////////////////////////////////////////////////////////// - - - ///////////////////////////////////////////////////////////////////////////// - // Tasks - ///////////////////////////////////////////////////////////////////////////// - - task wb_busy_wait; - input [`WB_ADDRESS_BUS_WIDTH-1:0] addr; - input [`WB_DATA_BUS_WIDTH-1:0] mask; - input [`WB_DATA_BUS_WIDTH-1:0] offset; - input verbose; - - reg [`WB_DATA_BUS_WIDTH-1:0] tmp_reg0; - begin - WB0.monitor_bus(1'b0); - WB0.verbose(1'b0); - - WB0.read32(addr, tmp_reg0); - - while (((tmp_reg0 & mask) >> offset) != 'h1) begin - if (verbose) - $write("."); - - @(posedge sys_clk); - WB0.read32(addr, tmp_reg0); - end - - WB0.monitor_bus(1'b1); - WB0.verbose(1'b1); - end - endtask - - task wb_intlk_transaction; - input integer test_id; - input test_intlk_en; - - input test_intlk_min_sum_en; - input [c_INTLK_LMT_WIDTH-1:0] test_intlk_min_sum; - - input test_intlk_trans_en; - input [c_INTLK_LMT_WIDTH-1:0] test_intlk_trans_max_x; - input [c_INTLK_LMT_WIDTH-1:0] test_intlk_trans_max_y; - - input test_intlk_ang_en; - input [c_INTLK_LMT_WIDTH-1:0] test_intlk_ang_max_x; - input [c_INTLK_LMT_WIDTH-1:0] test_intlk_ang_max_y; - - input [c_DECIM_WIDTH-1:0] test_decim_ds_pos_x; - input [c_DECIM_WIDTH-1:0] test_decim_ds_pos_y; - input [c_DECIM_WIDTH-1:0] test_decim_ds_pos_q; - input [c_DECIM_WIDTH-1:0] test_decim_ds_pos_sum; - - input [c_DECIM_WIDTH-1:0] test_decim_us_pos_x; - input [c_DECIM_WIDTH-1:0] test_decim_us_pos_y; - input [c_DECIM_WIDTH-1:0] test_decim_us_pos_q; - input [c_DECIM_WIDTH-1:0] test_decim_us_pos_sum; - - input test_intlk_status; - - reg [`WB_DATA_BUS_WIDTH:0] wb_reg; - reg [`WB_DATA_BUS_WIDTH:0] intlk_wb; - integer err; - integer err_intlk; - integer err_wb; - begin - $display("#############################"); - $display("######## TEST #%03d ######", test_id); - $display("#############################"); - $display("## Interlock enable = %d", test_intlk_en); - $display("## Interlock minimum sum enable = %d", test_intlk_min_sum_en); - $display("## Interlock minimum sum threshold = %03d", test_intlk_min_sum); - $display("## Interlock translation enable = %d", test_intlk_trans_en); - $display("## Interlock translation MAX X = %03d", test_intlk_trans_max_x); - $display("## Interlock translation MAX Y = %03d", test_intlk_trans_max_y); - $display("## Interlock angular enable = %d", test_intlk_ang_en); - $display("## Interlock angular MAX X = %03d", test_intlk_ang_max_x); - $display("## Interlock angular MAX Y = %03d", test_intlk_ang_max_y); - - $display("Setting interlock parameters scenario"); - - $display("Setting minimum sum threshold"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_MIN_SUM >> `WB_WORD_ACC, test_intlk_min_sum); - - $display("Setting minimum sum enable"); - @(posedge sys_clk); - WB0.read32(`ADDR_ORBIT_INTLK_CTRL, wb_reg); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, wb_reg | (test_intlk_min_sum_en << `ORBIT_INTLK_CTRL_MIN_SUM_EN_OFFSET)); - - $display("Setting translation threshold X"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_TRANS_MAX_X >> `WB_WORD_ACC, test_intlk_trans_max_x); - - $display("Setting translation threshold Y"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_TRANS_MAX_Y >> `WB_WORD_ACC, test_intlk_trans_max_y); - - $display("Setting translation threshold enable"); - @(posedge sys_clk); - WB0.read32(`ADDR_ORBIT_INTLK_CTRL, wb_reg); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, wb_reg | (test_intlk_trans_en << `ORBIT_INTLK_CTRL_TRANS_EN_OFFSET)); - - $display("Setting angular threshold X"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_ANG_MAX_X >> `WB_WORD_ACC, test_intlk_ang_max_x); - - $display("Setting angular threshold Y"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_ANG_MAX_Y >> `WB_WORD_ACC, test_intlk_ang_max_y); - - $display("Setting angular threshold enable"); - @(posedge sys_clk); - WB0.read32(`ADDR_ORBIT_INTLK_CTRL, wb_reg); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, wb_reg | (test_intlk_ang_en << `ORBIT_INTLK_CTRL_ANG_EN_OFFSET)); - - $display("Setting interlock enable"); - @(posedge sys_clk); - WB0.read32(`ADDR_ORBIT_INTLK_CTRL, wb_reg); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, wb_reg | (test_intlk_en << `ORBIT_INTLK_CTRL_EN_OFFSET)); - - test_in_progress = 1'b1; - - $display("Setting DECIM downstream/upstream positions"); - @(posedge sys_clk); - - decim_ds_pos_x = test_decim_ds_pos_x; - decim_ds_pos_y = test_decim_ds_pos_y; - decim_ds_pos_q = test_decim_ds_pos_q; - decim_ds_pos_sum = test_decim_ds_pos_sum; - decim_ds_pos_valid = 1'b1; - - decim_us_pos_x = test_decim_us_pos_x; - decim_us_pos_y = test_decim_us_pos_y; - decim_us_pos_q = test_decim_us_pos_q; - decim_us_pos_sum = test_decim_us_pos_sum; - decim_us_pos_valid = 1'b1; - - $display("Setting DECIM downstream/upstream positions back to zero"); - @(posedge sys_clk); - - decim_ds_pos_x = 'h0; - decim_ds_pos_y = 'h0; - decim_ds_pos_q = 'h0; - decim_ds_pos_sum = 'h0; - decim_ds_pos_valid = 1'b0; - - decim_us_pos_x = 'h0; - decim_us_pos_y = 'h0; - decim_us_pos_q = 'h0; - decim_us_pos_sum = 'h0; - decim_us_pos_valid = 1'b0; - - $display("Waiting 20 clock cycles so we have time to detect the trip"); - @(posedge sys_clk); - - repeat (20) begin - @(posedge sys_clk); - $write("."); - end - - err = 0; - err_intlk = 0; - err_wb = 0; - - $display("\n"); - - $display("Reading interlock register"); - WB0.read32(`ADDR_ORBIT_INTLK_STS >> `WB_WORD_ACC, wb_reg); - @(posedge sys_clk); - - if (test_intlk_status == intlk_ltc) begin - $display("Interlock module correctly identified a condition: expected %d/ got %d", test_intlk_status, intlk_ltc); - end else begin - $display("Interlock module DID NOT correctly identified a condition: expected %d/ got %d", test_intlk_status, intlk_ltc); - err = 1; - err_intlk = 1; - end - - intlk_wb = (wb_reg & `ORBIT_INTLK_STS_INTLK_LTC) >> `ORBIT_INTLK_STS_INTLK_LTC_OFFSET; - if (test_intlk_status == intlk_wb) begin - $display("Wishbone register correctly identified a condition: expected %d/ got %d", test_intlk_status, intlk_wb); - end else begin - $display("Wishbone register DID NOT correctly identified a condition: expected %d/ got %d", test_intlk_status, intlk_wb); - err = 1; - err_wb = 1; - end - - if (err) begin - $display("TEST #%03d: FAIL!", test_id); - $finish; - end else begin - $display("TEST #%03d: PASS!", test_id); - end - - @(posedge sys_clk); - test_in_progress = 1'b0; - - $display("Clearing interlock flags"); - - $display("Clearing translation interlock flag"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, `ORBIT_INTLK_CTRL_TRANS_CLR); - - $display("Clearing angular interlock flag"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, `ORBIT_INTLK_CTRL_ANG_CLR); - - $display("Clearing interlock flag"); - @(posedge sys_clk); - WB0.write32(`ADDR_ORBIT_INTLK_CTRL >> `WB_WORD_ACC, `ORBIT_INTLK_CTRL_CLR); - - // give some time for all the modules that need a reset between tests - repeat (2) begin - @(posedge sys_clk); - end - - $display("\n"); - - end - endtask - -endmodule