Commit 9dd5afeb authored by rmrf's avatar rmrf
Browse files

Start adding tests.

parent 289d21f5
#include "systemc.h"
class test : public sc_module {
public:
sc_in<int> in;
sc_out<int> out;
sc_signal<int> test_signal;
void entry_function_1() {
while(true) {
// do nothing
}
}
void entry_function_2() {
while(true) {
// do nothing
}
}
SC_CTOR( test ) {
SC_METHOD(entry_function_1);
SC_METHOD(entry_function_2);
}
};
int sc_main(int argc, char *argv[]) {
sc_signal<int> sig1;
test test_instance("testing");
test_instance.in(sig1);
test_instance.out(sig1);
return 0;
}
#include "systemc.h"
SC_MODULE( test ){
sc_in<int> in;
sc_out<int> out;
sc_signal<int> test_signal;
void entry_function_1() {
while(true) {
// do nothing
}
}
void entry_function_2() {
while(true) {
// do nothing
}
}
SC_CTOR( test ) {
SC_METHOD(entry_function_1);
SC_METHOD(entry_function_2);
}
};
int sc_main(int argc, char *argv[]) {
sc_signal<int> sig1;
test test_instance("testing");
test_instance.in(sig1);
test_instance.out(sig1);
return 0;
}
#include "systemc.h"
SC_MODULE( test ){
sc_in<int> in;
sc_out<int> out;
sc_signal<int> test_signal;
void entry_function_1() {
while(true) {
// do nothing
}
}
void entry_function_2() {
while(true) {
// do nothing
}
}
SC_CTOR( test ) {
SC_THREAD(entry_function_1);
SC_THREAD(entry_function_2);
}
};
int sc_main(int argc, char *argv[]) {
sc_signal<int> sig1;
test test_instance("testing");
test_instance.in(sig1);
test_instance.out(sig1);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment