
# -*- python -*-

todo = Platform('caba', 'tsarv4_vgmn_io_bridge_top.cpp',
    uses = [
#        Uses('caba:vci_cc_vcache_wrapper_v4', iss_t = 'common:mips32el'),
        Uses('caba:vci_cc_vcache_wrapper_v4', iss_t = 'common:gdb_iss', gdb_iss_t = 'common:mips32el'),
        Uses('caba:vci_mem_cache_v4'),
        Uses('caba:vci_simple_ram'),
        Uses('caba:vci_multi_tty'),
#        Uses('caba:vci_xicu'),
#        Uses('caba:vci_icu'),
        Uses('caba:vci_multi_icu'),
        Uses('caba:vci_vgmn'),
        Uses('caba:vci_framebuffer'),
        Uses('caba:vci_dma_tsar_v2'),
        Uses('caba:vci_block_device_tsar_v4',),
#        Uses('caba:vci_block_device',),
        Uses('caba:vci_local_crossbar'),
        Uses('caba:vci_io_bridge',
               #vci_params on the Direct NoC
               cell_size_d = 4,
               plen_size_d = 8,
               addr_size_d = 32,
               rerror_size_d = 1,
               clen_size_d = 1,
               rflag_size_d = 1,
               srcid_size_d = 14,
               pktid_size_d = 4,
               trdid_size_d = 4,
               wrplen_size_d = 1,
               #vci_params on the Xram Noc
               cell_size_x = 4,
               plen_size_x = 8,
               addr_size_x = 32,
               rerror_size_x = 1,
               clen_size_x = 1,
               rflag_size_x = 1,
               srcid_size_x = 14,
               pktid_size_x = 4,
               trdid_size_x = 4,
               wrplen_size_x = 1,
               #vci_params on the IO Noc
               cell_size_io = 4,
               plen_size_io = 8,
               addr_size_io = 32,
               rerror_size_io = 1,
               clen_size_io = 1,
               rflag_size_io = 1,
               srcid_size_io = 14,
               pktid_size_io = 4,
               trdid_size_io = 4,
               wrplen_size_io = 1,
             ),
            
        Uses('common:elf_file_loader'),
        Uses('common:plain_file_loader')
    ],
    #default vci_param
    cell_size = 4,
    plen_size = 8,
    addr_size = 32,
    rerror_size = 1,
    clen_size = 1,
    rflag_size = 1,
    srcid_size = 14,
    pktid_size = 4,
    trdid_size = 4,
    wrplen_size = 1,
)
