feat: add missing KF6 framework recipes
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "systemc.h"
|
||||
|
||||
/*
|
||||
multi line comment
|
||||
*/
|
||||
|
||||
// declare some module
|
||||
SC_MODULE(gate)
|
||||
{
|
||||
// inputs
|
||||
sc_in<bool> inA, inB;
|
||||
|
||||
// outputs
|
||||
sc_out<bool> out;
|
||||
|
||||
// C function
|
||||
void do_something()
|
||||
{
|
||||
out.write(inA.read() || inB.read());
|
||||
}
|
||||
|
||||
// constructor
|
||||
SC_CTOR(gate)
|
||||
{
|
||||
// register method
|
||||
SC_METHOD(do_something);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user