Advertisement
Guest User

Untitled

a guest
May 24th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <systemc>
  2. #include <iostream>
  3. #include <time.h>
  4.  
  5. int sc_main(int argc, char *argv[])
  6. {
  7. srand(time(NULL));
  8.  
  9. sc_core::sc_time t2((rand() % 91) + 10, sc_core::SC_NS);
  10.  
  11. sc_start(t2);
  12.  
  13. std::cout << "SystemC. Current sim time = " << sc_core::sc_time_stamp() << std::endl;
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement