
# -*- python -*-

Module('caba:vci_vdspin_initiator_wrapper',
		classname = 'soclib::caba::VciVdspinInitiatorWrapper',
	tmpl_parameters = [
		parameter.Module('vci_param',  default = 'caba:vci_param'),
		parameter.Int('dspin_cmd_width'),
		parameter.Int('dspin_rsp_width'), ],
        header_files = ['../source/include/vci_vdspin_initiator_wrapper.h', ],
        implementation_files = ['../source/src/vci_vdspin_initiator_wrapper.cpp',],
        ports = [
		Port('caba:vci_initiator', 'p_vci'),
                Port('caba:dspin_output', 'p_dspin_out', dspin_data_size = parameter.Reference('dspin_cmd_width')),
                Port('caba:dspin_input', 'p_dspin_in', dspin_data_size = parameter.Reference('dspin_rsp_width')),
		Port('caba:bit_in', 'p_resetn', auto = 'resetn'),
		Port('caba:clock_in', 'p_clk', auto = 'clock'), ],
	uses = [
		Uses('caba:base_module'),
		Uses('caba:generic_fifo'),
		],
	instance_parameters = [
		parameter.Int('cmd_fifo_depth'),
		parameter.Int('rsp_fifo_depth'), ],
)
