#  Register definitions for slave core: FMC masterFIP core registers
#
#  * File           : /home/gumas/projects/cti/pts_masterfip/pts/fmcmasterfip/python/regs/masterfip_csr.py
#  * Author         : auto-generated by wbgen2 from /home/gumas/projects/cti/pts_masterfip/pts/fmcmasterfip/gateware/ip_cores/gw-masterfip/rtl/wbgen/masterfip_csr.wb
#  * Created        : Mon Apr 24 10:20:15 2017
#
#    THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE /home/gumas/projects/cti/pts_masterfip/pts/fmcmasterfip/gateware/ip_cores/gw-masterfip/rtl/wbgen/masterfip_csr.wb
#    DO NOT HAND-EDIT UNLESS IT'S ABSOLUTELY NECESSARY!
#

addr = {
    
    'rst' : [ 0x0, 0xffffffff, "w"],
        'rst.core' : [ 0x0, 0x1, "w"], 
        'rst.fd' : [ 0x0, 0x2, "w"], 
    
    'id' : [ 0x1, 0xffffffff, "r"],
    
    'led' : [ 0x2, 0xffffffff, "rw"],
        'led.rx_act' : [ 0x2, 0x1, "rw"], 
        'led.rx_err' : [ 0x2, 0x2, "rw"], 
        'led.tx_act' : [ 0x2, 0x4, "rw"], 
        'led.tx_err' : [ 0x2, 0x8, "rw"], 
        'led.ext_sync_act' : [ 0x2, 0x10, "rw"], 
        'led.ext_sync_err' : [ 0x2, 0x20, "rw"], 
        'led.dbg' : [ 0x2, 0xFFFFFF00, "rw"], 
    
    'ds1820_temper' : [ 0x3, 0xffffffff, "r"],
    
    'ds1820_id_lsb' : [ 0x4, 0xffffffff, "r"],
    
    'ds1820_id_msb' : [ 0x5, 0xffffffff, "r"],
    
    'ext_sync_ctrl' : [ 0x6, 0xffffffff, "rw"],
        'ext_sync_ctrl.term_en' : [ 0x6, 0x1, "rw"], 
        'ext_sync_ctrl.dir' : [ 0x6, 0x2, "rw"], 
        'ext_sync_ctrl.oe_n' : [ 0x6, 0x4, "rw"], 
        'ext_sync_ctrl.p_cnt_rst' : [ 0x6, 0x100, "rw"], 
        'ext_sync_ctrl.opt' : [ 0x6, 0x10000, "rw"], 
        'ext_sync_ctrl.safe_wind' : [ 0x6, 0x1000000, "rw"], 
    
    'ext_sync_p_cnt' : [ 0x7, 0xffffffff, "r"],
    
    'speed' : [ 0x8, 0xffffffff, "r"],
    
    'macrocyc' : [ 0x9, 0xffffffff, "rw"],
        'macrocyc.lgth' : [ 0x9, 0x7FFFFFFF, "rw"], 
        'macrocyc.start' : [ 0x9, 0x80000000, "rw"], 
    
    'macrocyc_time_cnt' : [ 0xA, 0xffffffff, "r"],
    
    'macrocyc_num_cnt' : [ 0xB, 0xffffffff, "r"],
    
    'turnar' : [ 0xC, 0xffffffff, "rw"],
        'turnar.lgth' : [ 0xC, 0x7FFFFFFF, "rw"], 
        'turnar.start' : [ 0xC, 0x80000000, "rw"], 
    
    'turnar_time_cnt' : [ 0xD, 0xffffffff, "r"],
    
    'silen' : [ 0xE, 0xffffffff, "rw"],
        'silen.lgth' : [ 0xE, 0x7FFFFFFF, "rw"], 
        'silen.start' : [ 0xE, 0x80000000, "rw"], 
    
    'silen_time_cnt' : [ 0xF, 0xffffffff, "r"],
    
    'tx_ctrl' : [ 0x10, 0xffffffff, "rw"],
        'tx_ctrl.rst' : [ 0x10, 0x1, "rw"], 
        'tx_ctrl.start' : [ 0x10, 0x2, "rw"], 
        'tx_ctrl.bytes_num' : [ 0x10, 0xFFFF00, "rw"], 
    
    'tx_stat' : [ 0x11, 0xffffffff, "r"],
        'tx_stat.stop' : [ 0x11, 0x1, "r"], 
        'tx_stat.ena' : [ 0x11, 0x100, "r"], 
        'tx_stat.curr_byte_indx' : [ 0x11, 0xFFFF0000, "r"], 
    
    'fd' : [ 0x12, 0xffffffff, "r"],
        'fd.wdg' : [ 0x12, 0x1, "r"], 
        'fd.cd' : [ 0x12, 0x2, "r"], 
    
    'fd_wdg_tstamp' : [ 0x13, 0xffffffff, "r"],
    
    'fd_txer_cnt' : [ 0x14, 0xffffffff, "r"],
    
    'fd_txer_tstamp' : [ 0x15, 0xffffffff, "r"],
    
    'rx_ctrl' : [ 0x16, 0xffffffff, "rw"],
    
    'rx_stat' : [ 0x17, 0xffffffff, "r"],
        'rx_stat.pream_ok' : [ 0x17, 0x1, "r"], 
        'rx_stat.frame_ok' : [ 0x17, 0x2, "r"], 
        'rx_stat.frame_crc_err' : [ 0x17, 0x4, "r"], 
        'rx_stat.bytes_num' : [ 0x17, 0xFFFF00, "r"], 
    
    'rx_stat_curr_word_indx' : [ 0x18, 0xffffffff, "r"],
    
    'rx_stat_crc_err_cnt' : [ 0x19, 0xffffffff, "r"],
    
    'rx_payld_ctrl' : [ 0x1A, 0xffffffff, "r"],
    
    'rx_payld_reg1' : [ 0x1B, 0xffffffff, "r"],
    
    'rx_payld_reg2' : [ 0x1C, 0xffffffff, "r"],
    
    'rx_payld_reg3' : [ 0x1D, 0xffffffff, "r"],
    
    'rx_payld_reg4' : [ 0x1E, 0xffffffff, "r"],
    
    'rx_payld_reg5' : [ 0x1F, 0xffffffff, "r"],
    
    'rx_payld_reg6' : [ 0x20, 0xffffffff, "r"],
    
    'rx_payld_reg7' : [ 0x21, 0xffffffff, "r"],
    
    'rx_payld_reg8' : [ 0x22, 0xffffffff, "r"],
    
    'rx_payld_reg9' : [ 0x23, 0xffffffff, "r"],
    
    'rx_payld_reg10' : [ 0x24, 0xffffffff, "r"],
    
    'rx_payld_reg11' : [ 0x25, 0xffffffff, "r"],
    
    'rx_payld_reg12' : [ 0x26, 0xffffffff, "r"],
    
    'rx_payld_reg13' : [ 0x27, 0xffffffff, "r"],
    
    'rx_payld_reg14' : [ 0x28, 0xffffffff, "r"],
    
    'rx_payld_reg15' : [ 0x29, 0xffffffff, "r"],
    
    'rx_payld_reg16' : [ 0x2A, 0xffffffff, "r"],
    
    'rx_payld_reg17' : [ 0x2B, 0xffffffff, "r"],
    
    'rx_payld_reg18' : [ 0x2C, 0xffffffff, "r"],
    
    'rx_payld_reg19' : [ 0x2D, 0xffffffff, "r"],
    
    'rx_payld_reg20' : [ 0x2E, 0xffffffff, "r"],
    
    'rx_payld_reg21' : [ 0x2F, 0xffffffff, "r"],
    
    'rx_payld_reg22' : [ 0x30, 0xffffffff, "r"],
    
    'rx_payld_reg23' : [ 0x31, 0xffffffff, "r"],
    
    'rx_payld_reg24' : [ 0x32, 0xffffffff, "r"],
    
    'rx_payld_reg25' : [ 0x33, 0xffffffff, "r"],
    
    'rx_payld_reg26' : [ 0x34, 0xffffffff, "r"],
    
    'rx_payld_reg27' : [ 0x35, 0xffffffff, "r"],
    
    'rx_payld_reg28' : [ 0x36, 0xffffffff, "r"],
    
    'rx_payld_reg29' : [ 0x37, 0xffffffff, "r"],
    
    'rx_payld_reg30' : [ 0x38, 0xffffffff, "r"],
    
    'rx_payld_reg31' : [ 0x39, 0xffffffff, "r"],
    
    'rx_payld_reg32' : [ 0x3A, 0xffffffff, "r"],
    
    'rx_payld_reg33' : [ 0x3B, 0xffffffff, "r"],
    
    'rx_payld_reg34' : [ 0x3C, 0xffffffff, "r"],
    
    'rx_payld_reg35' : [ 0x3D, 0xffffffff, "r"],
    
    'rx_payld_reg36' : [ 0x3E, 0xffffffff, "r"],
    
    'rx_payld_reg37' : [ 0x3F, 0xffffffff, "r"],
    
    'rx_payld_reg38' : [ 0x40, 0xffffffff, "r"],
    
    'rx_payld_reg39' : [ 0x41, 0xffffffff, "r"],
    
    'rx_payld_reg40' : [ 0x42, 0xffffffff, "r"],
    
    'rx_payld_reg41' : [ 0x43, 0xffffffff, "r"],
    
    'rx_payld_reg42' : [ 0x44, 0xffffffff, "r"],
    
    'rx_payld_reg43' : [ 0x45, 0xffffffff, "r"],
    
    'rx_payld_reg44' : [ 0x46, 0xffffffff, "r"],
    
    'rx_payld_reg45' : [ 0x47, 0xffffffff, "r"],
    
    'rx_payld_reg46' : [ 0x48, 0xffffffff, "r"],
    
    'rx_payld_reg47' : [ 0x49, 0xffffffff, "r"],
    
    'rx_payld_reg48' : [ 0x4A, 0xffffffff, "r"],
    
    'rx_payld_reg49' : [ 0x4B, 0xffffffff, "r"],
    
    'rx_payld_reg50' : [ 0x4C, 0xffffffff, "r"],
    
    'rx_payld_reg51' : [ 0x4D, 0xffffffff, "r"],
    
    'rx_payld_reg52' : [ 0x4E, 0xffffffff, "r"],
    
    'rx_payld_reg53' : [ 0x4F, 0xffffffff, "r"],
    
    'rx_payld_reg54' : [ 0x50, 0xffffffff, "r"],
    
    'rx_payld_reg55' : [ 0x51, 0xffffffff, "r"],
    
    'rx_payld_reg56' : [ 0x52, 0xffffffff, "r"],
    
    'rx_payld_reg57' : [ 0x53, 0xffffffff, "r"],
    
    'rx_payld_reg58' : [ 0x54, 0xffffffff, "r"],
    
    'rx_payld_reg59' : [ 0x55, 0xffffffff, "r"],
    
    'rx_payld_reg60' : [ 0x56, 0xffffffff, "r"],
    
    'rx_payld_reg61' : [ 0x57, 0xffffffff, "r"],
    
    'rx_payld_reg62' : [ 0x58, 0xffffffff, "r"],
    
    'rx_payld_reg63' : [ 0x59, 0xffffffff, "r"],
    
    'rx_payld_reg64' : [ 0x5A, 0xffffffff, "r"],
    
    'rx_payld_reg65' : [ 0x5B, 0xffffffff, "r"],
    
    'rx_payld_reg66' : [ 0x5C, 0xffffffff, "r"],
    
    'rx_payld_reg67' : [ 0x5D, 0xffffffff, "r"],
    
    'tx_payld_ctrl' : [ 0x5E, 0xffffffff, "rw"],
    
    'tx_payld_reg1' : [ 0x5F, 0xffffffff, "rw"],
    
    'tx_payld_reg2' : [ 0x60, 0xffffffff, "rw"],
    
    'tx_payld_reg3' : [ 0x61, 0xffffffff, "rw"],
    
    'tx_payld_reg4' : [ 0x62, 0xffffffff, "rw"],
    
    'tx_payld_reg5' : [ 0x63, 0xffffffff, "rw"],
    
    'tx_payld_reg6' : [ 0x64, 0xffffffff, "rw"],
    
    'tx_payld_reg7' : [ 0x65, 0xffffffff, "rw"],
    
    'tx_payld_reg8' : [ 0x66, 0xffffffff, "rw"],
    
    'tx_payld_reg9' : [ 0x67, 0xffffffff, "rw"],
    
    'tx_payld_reg10' : [ 0x68, 0xffffffff, "rw"],
    
    'tx_payld_reg11' : [ 0x69, 0xffffffff, "rw"],
    
    'tx_payld_reg12' : [ 0x6A, 0xffffffff, "rw"],
    
    'tx_payld_reg13' : [ 0x6B, 0xffffffff, "rw"],
    
    'tx_payld_reg14' : [ 0x6C, 0xffffffff, "rw"],
    
    'tx_payld_reg15' : [ 0x6D, 0xffffffff, "rw"],
    
    'tx_payld_reg16' : [ 0x6E, 0xffffffff, "rw"],
    
    'tx_payld_reg17' : [ 0x6F, 0xffffffff, "rw"],
    
    'tx_payld_reg18' : [ 0x70, 0xffffffff, "rw"],
    
    'tx_payld_reg19' : [ 0x71, 0xffffffff, "rw"],
    
    'tx_payld_reg20' : [ 0x72, 0xffffffff, "rw"],
    
    'tx_payld_reg21' : [ 0x73, 0xffffffff, "rw"],
    
    'tx_payld_reg22' : [ 0x74, 0xffffffff, "rw"],
    
    'tx_payld_reg23' : [ 0x75, 0xffffffff, "rw"],
    
    'tx_payld_reg24' : [ 0x76, 0xffffffff, "rw"],
    
    'tx_payld_reg25' : [ 0x77, 0xffffffff, "rw"],
    
    'tx_payld_reg26' : [ 0x78, 0xffffffff, "rw"],
    
    'tx_payld_reg27' : [ 0x79, 0xffffffff, "rw"],
    
    'tx_payld_reg28' : [ 0x7A, 0xffffffff, "rw"],
    
    'tx_payld_reg29' : [ 0x7B, 0xffffffff, "rw"],
    
    'tx_payld_reg30' : [ 0x7C, 0xffffffff, "rw"],
    
    'tx_payld_reg31' : [ 0x7D, 0xffffffff, "rw"],
    
    'tx_payld_reg32' : [ 0x7E, 0xffffffff, "rw"],
    
    'tx_payld_reg33' : [ 0x7F, 0xffffffff, "rw"],
    
    'tx_payld_reg34' : [ 0x80, 0xffffffff, "rw"],
    
    'tx_payld_reg35' : [ 0x81, 0xffffffff, "rw"],
    
    'tx_payld_reg36' : [ 0x82, 0xffffffff, "rw"],
    
    'tx_payld_reg37' : [ 0x83, 0xffffffff, "rw"],
    
    'tx_payld_reg38' : [ 0x84, 0xffffffff, "rw"],
    
    'tx_payld_reg39' : [ 0x85, 0xffffffff, "rw"],
    
    'tx_payld_reg40' : [ 0x86, 0xffffffff, "rw"],
    
    'tx_payld_reg41' : [ 0x87, 0xffffffff, "rw"],
    
    'tx_payld_reg42' : [ 0x88, 0xffffffff, "rw"],
    
    'tx_payld_reg43' : [ 0x89, 0xffffffff, "rw"],
    
    'tx_payld_reg44' : [ 0x8A, 0xffffffff, "rw"],
    
    'tx_payld_reg45' : [ 0x8B, 0xffffffff, "rw"],
    
    'tx_payld_reg46' : [ 0x8C, 0xffffffff, "rw"],
    
    'tx_payld_reg47' : [ 0x8D, 0xffffffff, "rw"],
    
    'tx_payld_reg48' : [ 0x8E, 0xffffffff, "rw"],
    
    'tx_payld_reg49' : [ 0x8F, 0xffffffff, "rw"],
    
    'tx_payld_reg50' : [ 0x90, 0xffffffff, "rw"],
    
    'tx_payld_reg51' : [ 0x91, 0xffffffff, "rw"],
    
    'tx_payld_reg52' : [ 0x92, 0xffffffff, "rw"],
    
    'tx_payld_reg53' : [ 0x93, 0xffffffff, "rw"],
    
    'tx_payld_reg54' : [ 0x94, 0xffffffff, "rw"],
    
    'tx_payld_reg55' : [ 0x95, 0xffffffff, "rw"],
    
    'tx_payld_reg56' : [ 0x96, 0xffffffff, "rw"],
    
    'tx_payld_reg57' : [ 0x97, 0xffffffff, "rw"],
    
    'tx_payld_reg58' : [ 0x98, 0xffffffff, "rw"],
    
    'tx_payld_reg59' : [ 0x99, 0xffffffff, "rw"],
    
    'tx_payld_reg60' : [ 0x9A, 0xffffffff, "rw"],
    
    'tx_payld_reg61' : [ 0x9B, 0xffffffff, "rw"],
    
    'tx_payld_reg62' : [ 0x9C, 0xffffffff, "rw"],
    
    'tx_payld_reg63' : [ 0x9D, 0xffffffff, "rw"],
    
    'tx_payld_reg64' : [ 0x9E, 0xffffffff, "rw"],
    
    'tx_payld_reg65' : [ 0x9F, 0xffffffff, "rw"],
    
    'tx_payld_reg66' : [ 0xA0, 0xffffffff, "rw"],
    
    'tx_payld_reg67' : [ 0xA1, 0xffffffff, "rw"],
    '':[0,0]
}
