Jump to content

VanessaFaria

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by VanessaFaria

  1. VanessaFaria

    systemc/codeblocks

    Thanks Alan !
  2. VanessaFaria

    systemc/codeblocks

    Hello, i have installed system c on codeblocks and my computer is windows 8 and i created this program test #include <iostream> #include "systemc.h" SC_MODULE(dff) { sc_in<bool > clk; sc_in<sc_logic > din; sc_out<sc_logic > dout; void p1() { if (clk.posedge()) { dout=din; } }SC_CTOR(dff) { SC_METHOD(p1); sensitive(clk); }}; int main(){} And there is a problem in the kernel,please take a look: D:\Desktop\Vanessayo.cpp|2|fatal error: systemc.h: No such file or directory| ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===| D:\Desktop\CodeBlocks\systemc\src\sysc\kernel\sc_module.h|32|fatal error: sysc/kernel/sc_kernel_ids.h: No such file or directory| ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===| **************************************************************************/ #ifndef SC_MODULE_H #define SC_MODULE_H 32 #include "sysc/kernel/sc_kernel_ids.h" #include "sysc/kernel/sc_process.h" #include "sysc/kernel/sc_module_name.h" #include "sysc/kernel/sc_sensitive.h" #include "sysc/kernel/sc_time.h" #include "sysc/kernel/sc_wait.h" The problem is on line 32,someone could help me please? ] Thank you and have a nice day!!
  3. VanessaFaria

    visualbasic/systemc

    I would like some help because i m tring to load this program in system c ,but with no sucess.The program is a flip flop (an example that is in my book) And i got the visual basic 2013 on my computer. SC_MODULE(dff) { sc_in < bool > clk; sc_in<sc_logic > din; sc_out<sc_logic >dout; void p1() { if (clk.posedge()) { dout = din; } } SC_CTOR(dff) { SC_METHOD(p1); sensitive(clk); } } AND THE PROBLEM : 1 IntelliSense: cannot open source file "systemc.h" c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 1 1 projetoteste3 2 IntelliSense: explicit type is missing ('int' assumed) c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 2 1 projetoteste3 3 IntelliSense: identifier "dff" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 2 11 projetoteste3 4 IntelliSense: identifier "sc_in" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 3 2 projetoteste3 5 IntelliSense: type name is not allowed c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 3 10 projetoteste3 6 IntelliSense: identifier "clk" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 3 17 projetoteste3 7 IntelliSense: identifier "sc_logic" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 4 8 projetoteste3 8 IntelliSense: identifier "din" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 4 19 projetoteste3 9 IntelliSense: identifier "sc_out" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 5 2 projetoteste3 10 IntelliSense: identifier "dout" is undefined c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 5 19 projetoteste3 11 IntelliSense: expected a ';' c:\Documents\Visual Studio 2013\Projects\projetoteste3\projetoteste3\Source.cpp 7 12 projetoteste3 Please help me,i am totally lost!
×