#  Register definitions for slave core: FMC masterFIP core registers
#
#  * File           : /home/gumas/projects/cti/pts_masterfip/pts/fmcmasterfip/python/regs/masterfip_addrtable.py
#  * Author         : auto-generated by wbgen2 from /home/gumas/projects/cti/pts_masterfip/pts/fmcmasterfip/gateware/rtl/wbgen/fmc_masterfip_csr.wb
#  * Created        : Thu Mar 30 13:56:49 2017
#
#    THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE /home/gumas/projects/cti/pts_masterfip/pts/fmcmasterfip/gateware/rtl/wbgen/fmc_masterfip_csr.wb
#    DO NOT HAND-EDIT UNLESS IT'S ABSOLUTELY NECESSARY!
#

addr = {
    
    'rstn' : [ 0x0, 0xffffffff, "rw"],
        'rstn.core' : [ 0x0, 0x1, "rw"], 
        'rstn.fd' : [ 0x0, 0x2, "rw"], 
        'rstn.lock' : [ 0x0, 0xFFFF0000, "rw"], 
    
    'led' : [ 0x1, 0xffffffff, "rw"],
        'led.out_of_sync' : [ 0x1, 0x1, "rw"], 
        'led.rx_err' : [ 0x1, 0x2, "rw"], 
        'led.rx_act' : [ 0x1, 0x4, "rw"], 
        'led.sync' : [ 0x1, 0x8, "rw"], 
        'led.tx_act' : [ 0x1, 0x10, "rw"], 
        'led.tx_err' : [ 0x1, 0x20, "rw"], 
    
    'id' : [ 0x2, 0xffffffff, "r"],
    
    'dbg' : [ 0x3, 0xffffffff, "rw"],
    
    'adc' : [ 0x4, 0xffffffff, "rw"],
        'adc.1v8_shdn_n' : [ 0x4, 0x1, "rw"], 
        'adc.m5v_shdn_n' : [ 0x4, 0x2, "rw"], 
        'adc.5v_en' : [ 0x4, 0x4, "rw"], 
        'adc.prim_conn' : [ 0x4, 0x100, "rw"], 
        'adc.sec_conn' : [ 0x4, 0x200, "rw"], 
    
    'ext_sync' : [ 0x5, 0xffffffff, "rw"],
        'ext_sync.term_en' : [ 0x5, 0x1, "rw"], 
        'ext_sync.dir' : [ 0x5, 0x2, "rw"], 
        'ext_sync.oe' : [ 0x5, 0x4, "rw"], 
        'ext_sync.tst' : [ 0x5, 0x8, "rw"], 
        'ext_sync.output_value' : [ 0x5, 0x10, "rw"], 
        'ext_sync.p_cnt_rst' : [ 0x5, 0x100, "rw"], 
        'ext_sync.fpga_io_dir' : [ 0x5, 0x200, "rw"], 
    
    'ext_sync_raw_input' : [ 0x6, 0xffffffff, "r"],
    
    'ext_sync_p_cnt' : [ 0x7, 0xffffffff, "r"],
    
    'test' : [ 0x8, 0xffffffff, "rw"],
    
    'speed' : [ 0x9, 0xffffffff, "r"],
    
    'macrocyc' : [ 0xA, 0xffffffff, "rw"],
        'macrocyc.lgth' : [ 0xA, 0x7FFFFFFF, "rw"], 
        'macrocyc.start' : [ 0xA, 0x80000000, "rw"], 
    
    'turnar' : [ 0xB, 0xffffffff, "rw"],
        'turnar.lgth' : [ 0xB, 0x7FFFFFFF, "rw"], 
        'turnar.start' : [ 0xB, 0x80000000, "rw"], 
    
    'silen' : [ 0xC, 0xffffffff, "rw"],
        'silen.lgth' : [ 0xC, 0x7FFFFFFF, "rw"], 
        'silen.start' : [ 0xC, 0x80000000, "rw"], 
    
    'macrocyc_time_cnt' : [ 0xD, 0xffffffff, "r"],
    
    'macrocyc_num_cnt' : [ 0xE, 0xffffffff, "r"],
    
    'turnar_time_cnt' : [ 0xF, 0xffffffff, "r"],
    
    'silen_time_cnt' : [ 0x10, 0xffffffff, "r"],
    
    'tx_ctrl' : [ 0x11, 0xffffffff, "rw"],
        'tx_ctrl.rst' : [ 0x11, 0x1, "rw"], 
        'tx_ctrl.start' : [ 0x11, 0x2, "rw"], 
        'tx_ctrl.bytes_num' : [ 0x11, 0xFFFF00, "rw"], 
    
    'tx_stat' : [ 0x12, 0xffffffff, "r"],
        'tx_stat.stop' : [ 0x12, 0x1, "r"], 
        'tx_stat.byte_index' : [ 0x12, 0xFFFF00, "r"], 
        'tx_stat.ena' : [ 0x12, 0x1000000, "r"], 
    
    'fd' : [ 0x13, 0xffffffff, "r"],
        'fd.wdgn' : [ 0x13, 0x1, "r"], 
        'fd.wdgn_latch' : [ 0x13, 0x2, "r"], 
        'fd.cd_n' : [ 0x13, 0x4, "r"], 
        'fd.txer' : [ 0x13, 0x8, "r"], 
    
    'fd_txerr_cnt' : [ 0x14, 0xffffffff, "r"],
    
    'rx_ctrl' : [ 0x15, 0xffffffff, "rw"],
    
    'rx_stat' : [ 0x16, 0xffffffff, "r"],
        'rx_stat.pream_ok' : [ 0x16, 0x1, "r"], 
        'rx_stat.frame_ok' : [ 0x16, 0x2, "r"], 
        'rx_stat.frame_err' : [ 0x16, 0x4, "r"], 
        'rx_stat.frame_err_code' : [ 0x16, 0x38, "r"], 
        'rx_stat.bytes_num' : [ 0x16, 0xFFFF00, "r"], 
    
    'fd_rxcdn_cnt' : [ 0x17, 0xffffffff, "r"],
    
    'rx_data_ctrl' : [ 0x18, 0xffffffff, "r"],
    
    'rx_data_reg1' : [ 0x19, 0xffffffff, "r"],
    
    'rx_data_reg2' : [ 0x1A, 0xffffffff, "r"],
    
    'rx_data_reg3' : [ 0x1B, 0xffffffff, "r"],
    
    'rx_data_reg4' : [ 0x1C, 0xffffffff, "r"],
    
    'rx_data_reg5' : [ 0x1D, 0xffffffff, "r"],
    
    'rx_data_reg6' : [ 0x1E, 0xffffffff, "r"],
    
    'rx_data_reg7' : [ 0x1F, 0xffffffff, "r"],
    
    'rx_data_reg8' : [ 0x20, 0xffffffff, "r"],
    
    'rx_data_reg9' : [ 0x21, 0xffffffff, "r"],
    
    'rx_data_reg10' : [ 0x22, 0xffffffff, "r"],
    
    'rx_data_reg11' : [ 0x23, 0xffffffff, "r"],
    
    'rx_data_reg12' : [ 0x24, 0xffffffff, "r"],
    
    'rx_data_reg13' : [ 0x25, 0xffffffff, "r"],
    
    'rx_data_reg14' : [ 0x26, 0xffffffff, "r"],
    
    'rx_data_reg15' : [ 0x27, 0xffffffff, "r"],
    
    'rx_data_reg16' : [ 0x28, 0xffffffff, "r"],
    
    'rx_data_reg17' : [ 0x29, 0xffffffff, "r"],
    
    'rx_data_reg18' : [ 0x2A, 0xffffffff, "r"],
    
    'rx_data_reg19' : [ 0x2B, 0xffffffff, "r"],
    
    'rx_data_reg20' : [ 0x2C, 0xffffffff, "r"],
    
    'rx_data_reg21' : [ 0x2D, 0xffffffff, "r"],
    
    'rx_data_reg22' : [ 0x2E, 0xffffffff, "r"],
    
    'rx_data_reg23' : [ 0x2F, 0xffffffff, "r"],
    
    'rx_data_reg24' : [ 0x30, 0xffffffff, "r"],
    
    'rx_data_reg25' : [ 0x31, 0xffffffff, "r"],
    
    'rx_data_reg26' : [ 0x32, 0xffffffff, "r"],
    
    'rx_data_reg27' : [ 0x33, 0xffffffff, "r"],
    
    'rx_data_reg28' : [ 0x34, 0xffffffff, "r"],
    
    'rx_data_reg29' : [ 0x35, 0xffffffff, "r"],
    
    'rx_data_reg30' : [ 0x36, 0xffffffff, "r"],
    
    'rx_data_reg31' : [ 0x37, 0xffffffff, "r"],
    
    'rx_data_reg32' : [ 0x38, 0xffffffff, "r"],
    
    'rx_data_reg33' : [ 0x39, 0xffffffff, "r"],
    
    'rx_data_reg34' : [ 0x3A, 0xffffffff, "r"],
    
    'rx_data_reg35' : [ 0x3B, 0xffffffff, "r"],
    
    'rx_data_reg36' : [ 0x3C, 0xffffffff, "r"],
    
    'rx_data_reg37' : [ 0x3D, 0xffffffff, "r"],
    
    'rx_data_reg38' : [ 0x3E, 0xffffffff, "r"],
    
    'rx_data_reg39' : [ 0x3F, 0xffffffff, "r"],
    
    'rx_data_reg40' : [ 0x40, 0xffffffff, "r"],
    
    'rx_data_reg41' : [ 0x41, 0xffffffff, "r"],
    
    'rx_data_reg42' : [ 0x42, 0xffffffff, "r"],
    
    'rx_data_reg43' : [ 0x43, 0xffffffff, "r"],
    
    'rx_data_reg44' : [ 0x44, 0xffffffff, "r"],
    
    'rx_data_reg45' : [ 0x45, 0xffffffff, "r"],
    
    'rx_data_reg46' : [ 0x46, 0xffffffff, "r"],
    
    'rx_data_reg47' : [ 0x47, 0xffffffff, "r"],
    
    'rx_data_reg48' : [ 0x48, 0xffffffff, "r"],
    
    'rx_data_reg49' : [ 0x49, 0xffffffff, "r"],
    
    'rx_data_reg50' : [ 0x4A, 0xffffffff, "r"],
    
    'rx_data_reg51' : [ 0x4B, 0xffffffff, "r"],
    
    'rx_data_reg52' : [ 0x4C, 0xffffffff, "r"],
    
    'rx_data_reg53' : [ 0x4D, 0xffffffff, "r"],
    
    'rx_data_reg54' : [ 0x4E, 0xffffffff, "r"],
    
    'rx_data_reg55' : [ 0x4F, 0xffffffff, "r"],
    
    'rx_data_reg56' : [ 0x50, 0xffffffff, "r"],
    
    'rx_data_reg57' : [ 0x51, 0xffffffff, "r"],
    
    'rx_data_reg58' : [ 0x52, 0xffffffff, "r"],
    
    'rx_data_reg59' : [ 0x53, 0xffffffff, "r"],
    
    'rx_data_reg60' : [ 0x54, 0xffffffff, "r"],
    
    'rx_data_reg61' : [ 0x55, 0xffffffff, "r"],
    
    'rx_data_reg62' : [ 0x56, 0xffffffff, "r"],
    
    'rx_data_reg63' : [ 0x57, 0xffffffff, "r"],
    
    'rx_data_reg64' : [ 0x58, 0xffffffff, "r"],
    
    'rx_data_reg65' : [ 0x59, 0xffffffff, "r"],
    
    'rx_data_reg66' : [ 0x5A, 0xffffffff, "r"],
    
    'tx_data_ctrl' : [ 0x5B, 0xffffffff, "rw"],
    
    'tx_data_reg1' : [ 0x5C, 0xffffffff, "rw"],
    
    'tx_data_reg2' : [ 0x5D, 0xffffffff, "rw"],
    
    'tx_data_reg3' : [ 0x5E, 0xffffffff, "rw"],
    
    'tx_data_reg4' : [ 0x5F, 0xffffffff, "rw"],
    
    'tx_data_reg5' : [ 0x60, 0xffffffff, "rw"],
    
    'tx_data_reg6' : [ 0x61, 0xffffffff, "rw"],
    
    'tx_data_reg7' : [ 0x62, 0xffffffff, "rw"],
    
    'tx_data_reg8' : [ 0x63, 0xffffffff, "rw"],
    
    'tx_data_reg9' : [ 0x64, 0xffffffff, "rw"],
    
    'tx_data_reg10' : [ 0x65, 0xffffffff, "rw"],
    
    'tx_data_reg11' : [ 0x66, 0xffffffff, "rw"],
    
    'tx_data_reg12' : [ 0x67, 0xffffffff, "rw"],
    
    'tx_data_reg13' : [ 0x68, 0xffffffff, "rw"],
    
    'tx_data_reg14' : [ 0x69, 0xffffffff, "rw"],
    
    'tx_data_reg15' : [ 0x6A, 0xffffffff, "rw"],
    
    'tx_data_reg16' : [ 0x6B, 0xffffffff, "rw"],
    
    'tx_data_reg17' : [ 0x6C, 0xffffffff, "rw"],
    
    'tx_data_reg18' : [ 0x6D, 0xffffffff, "rw"],
    
    'tx_data_reg19' : [ 0x6E, 0xffffffff, "rw"],
    
    'tx_data_reg20' : [ 0x6F, 0xffffffff, "rw"],
    
    'tx_data_reg21' : [ 0x70, 0xffffffff, "rw"],
    
    'tx_data_reg22' : [ 0x71, 0xffffffff, "rw"],
    
    'tx_data_reg23' : [ 0x72, 0xffffffff, "rw"],
    
    'tx_data_reg24' : [ 0x73, 0xffffffff, "rw"],
    
    'tx_data_reg25' : [ 0x74, 0xffffffff, "rw"],
    
    'tx_data_reg26' : [ 0x75, 0xffffffff, "rw"],
    
    'tx_data_reg27' : [ 0x76, 0xffffffff, "rw"],
    
    'tx_data_reg28' : [ 0x77, 0xffffffff, "rw"],
    
    'tx_data_reg29' : [ 0x78, 0xffffffff, "rw"],
    
    'tx_data_reg30' : [ 0x79, 0xffffffff, "rw"],
    
    'tx_data_reg31' : [ 0x7A, 0xffffffff, "rw"],
    
    'tx_data_reg32' : [ 0x7B, 0xffffffff, "rw"],
    
    'tx_data_reg33' : [ 0x7C, 0xffffffff, "rw"],
    
    'tx_data_reg34' : [ 0x7D, 0xffffffff, "rw"],
    
    'tx_data_reg35' : [ 0x7E, 0xffffffff, "rw"],
    
    'tx_data_reg36' : [ 0x7F, 0xffffffff, "rw"],
    
    'tx_data_reg37' : [ 0x80, 0xffffffff, "rw"],
    
    'tx_data_reg38' : [ 0x81, 0xffffffff, "rw"],
    
    'tx_data_reg39' : [ 0x82, 0xffffffff, "rw"],
    
    'tx_data_reg40' : [ 0x83, 0xffffffff, "rw"],
    
    'tx_data_reg41' : [ 0x84, 0xffffffff, "rw"],
    
    'tx_data_reg42' : [ 0x85, 0xffffffff, "rw"],
    
    'tx_data_reg43' : [ 0x86, 0xffffffff, "rw"],
    
    'tx_data_reg44' : [ 0x87, 0xffffffff, "rw"],
    
    'tx_data_reg45' : [ 0x88, 0xffffffff, "rw"],
    
    'tx_data_reg46' : [ 0x89, 0xffffffff, "rw"],
    
    'tx_data_reg47' : [ 0x8A, 0xffffffff, "rw"],
    
    'tx_data_reg48' : [ 0x8B, 0xffffffff, "rw"],
    
    'tx_data_reg49' : [ 0x8C, 0xffffffff, "rw"],
    
    'tx_data_reg50' : [ 0x8D, 0xffffffff, "rw"],
    
    'tx_data_reg51' : [ 0x8E, 0xffffffff, "rw"],
    
    'tx_data_reg52' : [ 0x8F, 0xffffffff, "rw"],
    
    'tx_data_reg53' : [ 0x90, 0xffffffff, "rw"],
    
    'tx_data_reg54' : [ 0x91, 0xffffffff, "rw"],
    
    'tx_data_reg55' : [ 0x92, 0xffffffff, "rw"],
    
    'tx_data_reg56' : [ 0x93, 0xffffffff, "rw"],
    
    'tx_data_reg57' : [ 0x94, 0xffffffff, "rw"],
    
    'tx_data_reg58' : [ 0x95, 0xffffffff, "rw"],
    
    'tx_data_reg59' : [ 0x96, 0xffffffff, "rw"],
    
    'tx_data_reg60' : [ 0x97, 0xffffffff, "rw"],
    
    'tx_data_reg61' : [ 0x98, 0xffffffff, "rw"],
    
    'tx_data_reg62' : [ 0x99, 0xffffffff, "rw"],
    
    'tx_data_reg63' : [ 0x9A, 0xffffffff, "rw"],
    
    'tx_data_reg64' : [ 0x9B, 0xffffffff, "rw"],
    
    'tx_data_reg65' : [ 0x9C, 0xffffffff, "rw"],
    
    'tx_data_reg66' : [ 0x9D, 0xffffffff, "rw"],
    '':[0,0]
}
