Jump to content


  • Content Count

  • Joined

  • Last visited

About jcmel

  • Rank

Profile Information

  • Gender
  • Location

Recent Profile Visitors

507 profile views
  1. Hi Ralph, For the definition of SC_HAS_PROCESS macro, I followed the recommended style defined in SystemC: From the Ground up illustrated in figure 4.20: Recommended style NAME.cpp page 57. I believe I dont' have the permission to provide a pdf of this page. I'am right. Regards, Jean-Claude
  2. Hi, Here is a part of the code. Regards, Jean-Claude class M2 : public sc_module { public: // Constructor M2(sc_module_name name); // Destructor ~M2(); sc_port<sc_fifo_in_if< Schedule> > p0; private: void threadReceiveSchedule(); .... }; SC_HAS_PROCESS(M2); M2::M2(sc_module_name name) { SC_THREAD(threadReceiveSchedule); } void M2::threadReceiveSchedule() { Schedule schedule; while(true) { if (p0->nb_read(schedule))
  3. Hi everybody, I would like to implement a communication between a process (P1) and another process P2 inside an instance (m2) through a fifo of schedule. At compilation it looks well but at run time i am facing a problem of binding failed (port p0 not bound). I don't understand the error (E109) because in constructor of m1, I did the binding m2->p0(c0). Thanks for your help. regards Jean-Claude
  4. Hi, I am wondering if it's possible to clear a sc_event_or_list before adding the sc_event in the loop. In the class reference I don't see a method to do this. regards Jean-Claude
  5. Hi Philip, I am agree with you, the name is not well chosen. I read many threads on the subject but I don't find any solution. In the thread above, it is proposed to use instead sc_signal<bool> which has an event() method but I don't know how. I need to trigger the signal at a specific time like an event. Thanks. Jean-Claude
  6. Hello everybody, I try to use an sc_event_or_list object to catch multiple events but I don't know how to identify the event which occurs. the idea is to schedule the transmission of commands at a specific time After the wait(_allEvents) I would like to test that event changed. Thanks in advance for your help. Jean-Claude Here is a part of the code: class Scheduler : public sc_module { public: // Constructor Scheduler(sc_module_name name); // Destructor
  7. Hi Ralph, Finally I decided to use SystemC with Microsoft Visual Studio 2010 (version 32bits) on Win7. I made a Dynamic Link Library from systemc-2.3.1 source code and it works. Regards, Jean-Claude
  8. Hello, I ran dos2unix to all systemc directory but the problem is the same. Regards, Jean-Claude
  9. Hello everybody, I followed the steps below to install systemc-2.3.1 on Windows 7 (64bits) : I start a cygwin batch and create a objdir directory In this directory I configure the package with ../configure And I have an error at ./config.status creation. ?? I have attached conf.lo and config.status file $ ../configure checking build system type... i686-pc-cygwin checking host system type... i686-pc-cygwin checking target system type... i686-pc-cygwin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a threa
  10. Hello, Thanks for your response, I tried this way and it works. Best regards, Jean-Claude
  11. Hi, I have 2 modules: one Test Bench (TB) and a Device under Test (DUT). The TB has an output port (p_out) to simulate a power on (bool). The DUT has an input multiport (p_in) and inside the DUT there are many modules M with one input port (x_in) connected to (p_in). The idea is to simulate a power on througn TB that is distributed to all internal modules of DUT. Here are the declarations: in TB : sc_out<bool> p_out; In internal moules of DUT: sc_in<bool> x_in; In DUT: sc_port< sc_signal_in_if<bool> , 10, SC_ZERO_OR_MORE_BOUND> p_in; E
  • Create New...