# Generated from
# FW: b'LBNL BEDROCK ROM'
# JSON: 1004daad3e967fd2e5dc6ab70204469283068739
# Code: 59737b4eabbbcffa12cd2b85b62d25b853f24a2b

file "feed_base.template"
{
{PREF="$(CHAS):CTRL_"}
}

file "feed_reg_r_array.template"
{
{PREF="$(CHAS):reg_adc0_buf",	REG="adc0_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc1_buf",	REG="adc1_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc2_buf",	REG="adc2_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc3_buf",	REG="adc3_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc4_buf",	REG="adc4_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc5_buf",	REG="adc5_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc6_buf",	REG="adc6_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_adc7_buf",	REG="adc7_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_circle_data",	REG="circle_data",	SIZE="65536"}
{PREF="$(CHAS):reg_dac0_buf",	REG="dac0_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_dac1_buf",	REG="dac1_buf",	SIZE="4096"}
{PREF="$(CHAS):reg_dsp_slow_adc_max",	REG="dsp_slow_adc_max",	SIZE="8"}
{PREF="$(CHAS):reg_dsp_slow_adc_min",	REG="dsp_slow_adc_min",	SIZE="8"}
{PREF="$(CHAS):reg_dsp_slow_timestamp",	REG="dsp_slow_timestamp",	SIZE="8"}
{PREF="$(CHAS):reg_llrf_rom",	REG="llrf_rom",	SIZE="2048", REGSCAN="Passive"}
{PREF="$(CHAS):reg_mon_amp",	REG="mon_amp",	SIZE="16"}
{PREF="$(CHAS):reg_mon_phs",	REG="mon_phs",	SIZE="16"}
}

file "feed_reg_r_scalar.template"
{
{PREF="$(CHAS):reg_amp_setpoint_ntw",	REG="amp_setpoint_ntw",	SIZE="1"}
{PREF="$(CHAS):reg_arc_permit_latch",	REG="arc_permit_latch",	SIZE="1"}
{PREF="$(CHAS):reg_arc_permit_raw",	REG="arc_permit_raw",	SIZE="1"}
{PREF="$(CHAS):reg_arc_permit_sum",	REG="arc_permit_sum",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_clk_frequency",	REG="dsp_clk_frequency",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_cbuf_count",	REG="dsp_slow_cbuf_count",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_cbuf_stat1",	REG="dsp_slow_cbuf_stat1",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_cbuf_stat2",	REG="dsp_slow_cbuf_stat2",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_evr_evticks_0",	REG="dsp_slow_evr_evticks_0",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_evr_evticks_1",	REG="dsp_slow_evr_evticks_1",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_evr_seconds_0",	REG="dsp_slow_evr_seconds_0",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_evr_seconds_1",	REG="dsp_slow_evr_seconds_1",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_tag",	REG="dsp_slow_tag",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_slow_tag_old",	REG="dsp_slow_tag_old",	SIZE="1"}
{PREF="$(CHAS):reg_evr_clk_frequency",	REG="evr_clk_frequency",	SIZE="1"}
{PREF="$(CHAS):reg_evr_evcnt",	REG="evr_evcnt",	SIZE="1"}
{PREF="$(CHAS):reg_evr_live_pps_tick",	REG="evr_live_pps_tick",	SIZE="1"}
{PREF="$(CHAS):reg_evr_orbit_ts_hi",	REG="evr_orbit_ts_hi",	SIZE="1"}
{PREF="$(CHAS):reg_evr_orbit_ts_lo",	REG="evr_orbit_ts_lo",	SIZE="1"}
{PREF="$(CHAS):reg_evr_pll_lock",	REG="evr_pll_lock",	SIZE="1"}
{PREF="$(CHAS):reg_evr_sync_status",	REG="evr_sync_status",	SIZE="1"}
{PREF="$(CHAS):reg_evr_timestamp_valid",	REG="evr_timestamp_valid",	SIZE="1"}
{PREF="$(CHAS):reg_git_rev_id",	REG="git_rev_id",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_hi",	REG="inlk_hi",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_latch",	REG="inlk_latch",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_lo",	REG="inlk_lo",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_permit",	REG="inlk_permit",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_status",	REG="inlk_status",	SIZE="1"}
{PREF="$(CHAS):reg_llrf_circle_ready",	REG="llrf_circle_ready",	SIZE="1"}
{PREF="$(CHAS):reg_loop_amp_err",	REG="loop_amp_err",	SIZE="1"}
{PREF="$(CHAS):reg_loop_phs_err",	REG="loop_phs_err",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_cos_debug",	REG="ntw_cos_debug",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_phase_debug",	REG="ntw_phase_debug",	SIZE="1"}
{PREF="$(CHAS):reg_phs_setpoint_ntw",	REG="phs_setpoint_ntw",	SIZE="1"}
}

file "feed_reg_rw_array.template"
{
{PREF="$(CHAS):reg_inlk_amp_hi",	REG="inlk_amp_hi",	SIZE="16"}
{PREF="$(CHAS):reg_inlk_amp_lo",	REG="inlk_amp_lo",	SIZE="16"}
{PREF="$(CHAS):reg_inlk_inlk_mode",	REG="inlk_inlk_mode",	SIZE="16"}
}

file "feed_reg_rw_scalar.template"
{
{PREF="$(CHAS):reg_Ki_amp",	REG="Ki_amp",	SIZE="1"}
{PREF="$(CHAS):reg_Ki_phs",	REG="Ki_phs",	SIZE="1"}
{PREF="$(CHAS):reg_Kp_amp",	REG="Kp_amp",	SIZE="1"}
{PREF="$(CHAS):reg_Kp_phs",	REG="Kp_phs",	SIZE="1"}
{PREF="$(CHAS):reg_amp_loop_enable",	REG="amp_loop_enable",	SIZE="1"}
{PREF="$(CHAS):reg_amp_loop_reset",	REG="amp_loop_reset",	SIZE="1"}
#{PREF="$(CHAS):reg_amp_setpoint",	REG="amp_setpoint",	SIZE="1"}
{PREF="$(CHAS):reg_arc_permit_mask",	REG="arc_permit_mask",	SIZE="1"}
{PREF="$(CHAS):reg_arc_reset_arc_dev",	REG="arc_reset_arc_dev",	SIZE="1"}
{PREF="$(CHAS):reg_arc_reset_latch",	REG="arc_reset_latch",	SIZE="1"}
{PREF="$(CHAS):reg_arc_test_arc_dev",	REG="arc_test_arc_dev",	SIZE="1"}
{PREF="$(CHAS):reg_cbuf_post_delay",	REG="cbuf_post_delay",	SIZE="1"}
{PREF="$(CHAS):reg_chan_keep",	REG="chan_keep",	SIZE="1"}
{PREF="$(CHAS):reg_circle_buf_flip",	REG="circle_buf_flip",	SIZE="1"}
{PREF="$(CHAS):reg_dac_permit",	REG="dac_permit",	SIZE="1"}
{PREF="$(CHAS):reg_dds_modulo",	REG="dds_modulo",	SIZE="1"}
{PREF="$(CHAS):reg_dds_phase_shift",	REG="dds_phase_shift",	SIZE="1"}
{PREF="$(CHAS):reg_dds_phase_step",	REG="dds_phase_step",	SIZE="1"}
{PREF="$(CHAS):reg_dds_reset",	REG="dds_reset",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_reset",	REG="dsp_reset",	SIZE="1"}
{PREF="$(CHAS):reg_dsp_tag",	REG="dsp_tag",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_permit_mask",	REG="inlk_permit_mask",	SIZE="1"}
{PREF="$(CHAS):reg_inlk_reset_inlk",	REG="inlk_reset_inlk",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_amp_enable",	REG="ntw_amp_enable",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_lo_amp",	REG="ntw_lo_amp",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_modulo",	REG="ntw_modulo",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_phase_step_h",	REG="ntw_phase_step_h",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_phase_step_l",	REG="ntw_phase_step_l",	SIZE="1"}
{PREF="$(CHAS):reg_ntw_phs_enable",	REG="ntw_phs_enable",	SIZE="1"}
{PREF="$(CHAS):reg_phs_loop_enable",	REG="phs_loop_enable",	SIZE="1"}
{PREF="$(CHAS):reg_phs_loop_reset",	REG="phs_loop_reset",	SIZE="1"}
#{PREF="$(CHAS):reg_phs_setpoint",	REG="phs_setpoint",	SIZE="1"}
#{PREF="$(CHAS):reg_pulse_high_len",	REG="pulse_high_len",	SIZE="1"}
#{PREF="$(CHAS):reg_pulse_mode",	REG="pulse_mode",	SIZE="1"}
{PREF="$(CHAS):reg_sideband",	REG="sideband",	SIZE="1"}
{PREF="$(CHAS):reg_timing_evg_evcode",	REG="timing_evg_evcode",	SIZE="1"}
{PREF="$(CHAS):reg_timing_evr_evmask",	REG="timing_evr_evmask",	SIZE="1"}
{PREF="$(CHAS):reg_timing_evr_oc_delay",	REG="timing_evr_oc_delay",	SIZE="1"}
{PREF="$(CHAS):reg_trig_period",	REG="trig_period",	SIZE="1"}
{PREF="$(CHAS):reg_trig_width",	REG="trig_width",	SIZE="1"}
#{PREF="$(CHAS):reg_wave_samp_per",	REG="wave_samp_per",	SIZE="1"}
#{PREF="$(CHAS):reg_wave_shift",	REG="wave_shift",	SIZE="1"}
{PREF="$(CHAS):reg_wave_trig_sel",	REG="wave_trig_sel",	SIZE="1"}
}

