Jump to content

vhdl after construct


Recommended Posts

There's no easy equivalent. You could do

int atemp;  // or whatever data type a and b are

void proc() {
    while (true) {
         atemp = a.read();
         wait (10, SC_NS);

sensitive << b;

You might possibly be able to build some kind of wrapper around sc_event_queue




Link to post
Share on other sites
  • 2 weeks later...

I've often thought of writing a delayed assignment channel for SystemC. Probably just a new signature for sc_signal::write(...).


Of course that begs the question of transport vs inertial delay, which would be interesting to use. I think both are likely to have their uses.




template<typename T>

class sc_signal_delayed

: public sc_core::sc_signal<T>



    void write(const T& value, sc_time delay, bool transport=true) { ...details left to the implementor... }


Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...