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

Subversion Repositories uart8systemc

[/] [uart8systemc/] [trunk/] [systemC/] [link_sc.h] - Diff between revs 2 and 7

Show entire file | Details | Blame | View Log

Rev 2 Rev 7
Line 6... Line 6...
        public:
        public:
        /*Constructor*/
        /*Constructor*/
        Control_SC();
        Control_SC();
 
 
        /*initialize systemC model*/
        /*initialize systemC model*/
        virtual void init();
        //virtual void init();
 
 
        /*Reset the model*/
        /*Reset the model*/
        virtual void reset_set_high();
        virtual bool reset_set();
        virtual void reset_set_low();
        virtual void clear_validation();
 
 
        /*This is used to configure clock on systemC model note here you must put period  T = 1/F*/
        /*Finish Simulation*/
        virtual void set_period_clock_sc(unsigned value_freq);
        virtual unsigned int finish_simulation();
 
 
 
        /**/
 
        virtual unsigned int set_clock_rtl();
 
        virtual bool enable_change();
 
 
        /*This must be used to set baud value on Env. Ex: 9600 / 50MHz"Only 50"*/
 
        virtual void set_baud_rate(unsigned int value_baud,unsigned frequency);
 
        /*Get the baud rate and set it to your DUT*/
        /*Get the baud rate and set it to your DUT*/
        virtual int  get_baud_rate();
        virtual int  get_baud_rate();
 
 
        /*We use functions to retreive values from RX / TX SytemC to Verilog*/
        /*We use functions to retreive values from RX / TX SytemC to Verilog*/
        virtual void write_rx(unsigned int a);
        virtual void write_rx(unsigned int a);
        virtual int read_tx();
        virtual int read_tx();
 
 
 
        /**/
 
        virtual void get_value_sc_vlog(unsigned int value,unsigned int parity);
 
 
        /*Run the Env for a mmount off time*/
        /*Run the Env for a mmount off time*/
        virtual void run_sim();
        virtual void run_sim();
 
 
        /*Tell to SystemC to finish*/
        /*Tell to SystemC to finish*/
        virtual void stop_sim();
        virtual void stop_sim();

powered by: WebSVN 2.1.0

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