fairuz

Untitled

May 9th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. SC_MODULE(NAME)
  2. {
  3. // Port declaration
  4. P t d l ti
  5. // Channel/sub module instances
  6. SC_CTOR(NAME) : init var ...
  7. {
  8. // Connectivity
  9. // Registration
  10. }
  11. // Process declarations
  12. void p1 method();
  13. p1_method();
  14. void p2_thread();
  15. // Helper Declarations
  16. int getValue();
  17. void NAME::p1_method()
  18. {
  19. ...
  20. }
  21. void NAME::p2_thread()
  22. {
  23. ...
  24. }
  25. // Helper implementations
  26. int NAME::getValue()
  27. {
  28. ...
  29. }
  30. };
Advertisement
Add Comment
Please, Sign In to add comment