Edit code - EDA Playground
Warning! This exercise has been opened in another tab; autosave has been disabled. Close this tab or refresh to reactivate.

 Languages & Libraries

 Tools & Simulators

 Examples

205


18
 
1
//-------------------------------------------------------------------------
2
//                      www.verificationguide.com
3
//-------------------------------------------------------------------------
4
#include "systemc.h"
5
#include <iostream>
6
using namespace std;
7
8
int sc_main (int argc, char* argv[]) {
9
10
  //for-loop
11
  for(int i=0; i<4; i++)
12
  {
13
    cout <<" Value of i = "<<i<<endl;
14
  }
15
    
16
  // Terminate simulation
17
  return 0;
18
}
xxxxxxxxxx
1
 
1
// Code your design here.
2
// Uncomment the next line for SystemC modules.
3
// #include "systemc.h"
202 views and 0 likes     
A short description will be helpful for you to remember your playground's details
 
100:0