
adc_set_engine -hdl VERILOG \
               -toplevel "AnalogSystem" \
               -workdir {.} \
               -commondir {./common} \
               -die "M7AFS600" \
               -package "484 FBGA" \
               -memory_file_format INTELHEX \
               -verbosity 0

adc_set_system -system_frequency " 9.21 Mhz" \
               -mode 12 \
               -calibrate 1 \
               -include_calibration_block 1 \
               -calibration_propagate_saturation 1 \
               -allow_assc_repeat 0 \
               -export_assc_status 1 \
               -export_smev_status 0 \
               -export_assc_ram 0 \
               -export_smev_ram 0 \
               -export_adc_result 1 \
               -export_adc_status 0 \
               -export_acm_clk 0 \
               -export_acm_bus 0 \
               -export_acm_bus_independent 0 \
               -system_configuration "ASSC_ONLY" 

adc_set_rtc -enable 0 \
            -osc_mode "EXTERNAL_CRYSTAL" \
            -rtc_frequency " 32.000 Khz" \
            -alarm_day 0 \
            -alarm_hour 0 \
            -alarm_minute 0 \
            -alarm_second 0 \
            -alarm_millisecond 0 \
            -alarm_microsecond 0 \
            -reset_count_on_match 1 \
            -enable_vr 0

adc_set_voltage_channel -channel_name VIN \
                        -maximum_supply_voltage " 3.900000 V" \
                        -pre_scalar " 4.000000 V" \
                        -post_scalar " 4.000000 V" \
                        -use_prescalar 1 \
                        -number_of_samples_to_average 1 \
                        -initial_averaging_value " 0.000000 V" \
                        -settling_time " 10.000 us" \
                        -package_pin V13


adc_set_sequencer -use_external_trigger 1 

adc_set_sequencer_procedure -procedure_name Main \
                            -lock 1 \
                            -start_slot 0

adc_set_sequencer_procedure_req -procedure_name Main \
                                -signal_name VIN 

adc_set_sequencer_procedure_slot -procedure_name Main \
                                 -logical_slot 0 \
                                 -function SAMPLE_JUMP \
                                 -signal_name VIN \
                                 -jump_procedure_name Main \
                                 -repeat 0 

adc_set_sequencer_procedure -procedure_name DummyToExposeXTRIG \
                            -lock 1 \
                            -start_slot 1

adc_set_sequencer_procedure_req -procedure_name DummyToExposeXTRIG \
                                -signal_name VIN 

adc_set_sequencer_procedure_slot -procedure_name DummyToExposeXTRIG \
                                 -logical_slot 0 \
                                 -function SAMPLE_JUMP \
                                 -signal_name VIN \
                                 -jump_procedure_name DummyToExposeXTRIG \
                                 -repeat 0 
