Jump to content
Sign in to follow this  

delay data on sc_in with clock

Recommended Posts


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,




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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...