OpenCores
URL https://opencores.org/ocsvn/spacewiresystemc/spacewiresystemc/trunk

Subversion Repositories spacewiresystemc

[/] [spacewiresystemc/] [trunk/] [systemC/] [link_sc.h] - Rev 40

Compare with Previous | Blame | View Log

#ifndef CONTROL_SC_H
#define CONTROL_SC_H
 
class Control_SC
{
	public:
	/*Constructor*/
	Control_SC();
 
	/*initialize systemC model*/
	virtual void init();
 
	/*Reset the model*/
	virtual bool reset_set();
 
	/*Run the Env for ammount off time*/
	virtual void run_sim();
 
	/*Tell to SystemC to finish*/
	virtual void stop_sim();
 
	/*get dout */
	virtual unsigned int get_value_dout();
	/*get sout*/
	virtual unsigned int get_value_sout();
 
	/*set sin*/
	virtual void set_rx_sin(unsigned int strobe);
	/*set din*/
	virtual void set_rx_din(unsigned int data);
 
	virtual unsigned int get_spw_fsm();
 
	virtual unsigned int finish_simulation();
 
	//verilog variables 
	virtual bool verilog_linkenable();
	virtual bool verilog_autostart();
	virtual bool verilog_linkdisable();
	virtual float verilog_frequency();
 
	//tests 
	virtual bool start_tx_test();
	virtual bool enable_time_code_tx_test();
	virtual void end_tx_test();
	virtual unsigned int take_data(unsigned int a);
	virtual int size_data_test_vlog();
	virtual int size_data_test_sc();
 
	virtual void data_o(unsigned int data, unsigned int pos);
	virtual void data_rx_vlog_loopback_o(unsigned int data, unsigned int pos);
 
	virtual unsigned int clock_tx();
 
 
};
#endif
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.