Jump to content
Sign in to follow this  
VanTeo

delay data on sc_in with clock

Recommended Posts

Hi,

I have a module. My module has two port:  sc_in_clk SCKi

                                                                    sc_in<sc_bv<12>> RXDi

and has a process: SC_THREAD(do_thread)

                               sensitive << RXDi;

In sc_main I will do:    RXDi.write("111111111111");

Now I want to implement do_thread to data on RXDi will delay in 16-cycles of SCKi.

Please help me,

thanks,

VanTeo

 

Share this post


Link to post
Share on other sites

Hi VanTeo,

Do you want to add some inertial delay to the sc_in signal or you want the thread to act after 16 clock cycles of input post has got the data?

 

I think implementation provided "here" by Vincent Motel can help you.

 

Sudhanshu Tripathi,

CircuitSutra Tech.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×