
# -*- python -*-


todo = Platform('caba', 'top.cpp',
                uses = [
	Uses('caba:vci_cc_xcache_wrapper_v4', iss_t = 'common:mips32el'),
	Uses('caba:vci_simple_ram'),
        Uses('caba:vci_logger'),
	Uses('caba:vci_multi_tty'),
        Uses('caba:vci_timer'),
        Uses('caba:vci_icu'),
        Uses('caba:vci_dma_tsar_v2'),
        Uses('caba:vci_framebuffer'),
        Uses('caba:vci_block_device_tsar_v2'),
	Uses('caba:vci_local_ring_network_2',
		ring_cmd_data_size = 37,
		ring_rsp_data_size = 33,	
	),
	Uses('caba:vci_vgmn'),
	Uses('caba:vci_mem_cache_v4'),
	Uses('caba:virtual_dspin_network', 
		io_mask_size		 = 2,
		io_number_size		 = 2,
		x_addressing_size        = 1, 
		y_addressing_size        = 1,
		cmd_data_size		 = 37,
		cmd_io_mask_offset	 = 1,
		cmd_io_number_offset	 = 3,
		cmd_x_addressing_offset  = 6, 
		cmd_y_addressing_offset  = 7,
		cmd_eop_offset		 = 0,
		cmd_broadcast_offset	 = 36,

		rsp_data_size		 = 33,
		rsp_io_mask_offset	 = 1,
		rsp_io_number_offset	 = 3,
		rsp_x_addressing_offset  = 15, 
		rsp_y_addressing_offset  = 16,
		rsp_eop_offset		 = 0,

		in_fifo_size		 = 18,
		out_fifo_size		 = 18,
		x_min_offset		 = 32, 
		x_max_offset		 = 33,
		y_min_offset		 = 34,
		y_max_offset		 = 35,
	),
	Uses('common:elf_file_loader'),
	],
	cell_size = 4,
	plen_size = 8,
	addr_size = 32,
	rerror_size = 1,
	clen_size = 1,
	rflag_size = 1,
	srcid_size = 8,
	pktid_size = 4,
	trdid_size = 4,
	wrplen_size = 1
)

