Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by AmeyaVS

  1. Hello @Beginner_KOR, I would recommend going through details on SystemC TLM modeling using the following resources in no particular order: SystemC Standard document: IEEE 1666-2011(Must read) SystemC from Ground Up 2nd Edition by @David Black. https://github.com/dcblack/SCFTGU_BOOK/ Looking at SystemC TLM examples in the SystemC Sources: https://github.com/accellera-official/systemc/tree/master/examples/tlm SystemC TLM-2.0 examples on EDA Playground: https://www.edaplayground.com/playgrounds?searchString=&language=C%2B%2B+only&
  2. Hello @berry_runner, Regarding a dedicated training look here: https://www.doulos.com/training/ But as a starter in this, I would recommend getting to know following in no particular order: C++11/14/17: Useful for writing concise and clean code. SystemC from Ground Up 2nd Edition by @David Black. https://github.com/dcblack/SCFTGU_BOOK/ Look into the examples directory in SystemC sources. https://github.com/accellera-official/systemc/tree/master/examples Look into publicly released projects on Github: https://github.com/topics/systemc
  3. Hello @sumit_tuwien, My suggestion would give you all the necessary compiler define switches necessary to build the SystemC sources included as part of your project build. Hope this helps. Regards, Ameya Vikram Singh
  4. Hello @sumit_tuwien, Easiest way to get such details is by using CMake with Pthreads Configuration enabled to generate compile_commands.json. Just pick one of the SystemC source files from the JSON file for the compiler switches to build SystemC. You can find similar discussion here: https://forums.accellera.org/topic/5960-mingw-compile-issue/?do=findComment&comment=14662 Hope this helps. Regards, Ameya Vikram Singh
  5. Hello @omaima, You probably want to replace the following lines: with: sc_stop(); sc_close_vcd_trace_file(tf); Also, I would recommend that you go through the examples folder in the SystemC sources to try and understand various modelling techniques. Hope this helps. Regards, Ameya Vikram Singh
  6. Hello @Lukas Steiner, Can you attach the result of any memory checker tool? e.g. valgrind etc. Regards, Ameya Vikram Singh
  7. Hello @Arjun_07, Can you post your minimal code which reproduces the behavior? Regards, Ameya Vikram Singh
  8. Hello @mo_ayman, Well you could get it early for review comments from the people in SystemC LWG. Plus people with similar setup to yours can also take a jab at it in getting it fixed. Regards, Ameya Vikram Singh
  9. Hello @mo_ayman, Would it be possible to share the changes you have done on the official systemc github repository as a pull request? That would be a better alternative to get the fixes in somewhat faster. Regards, Ameya Vikram Singh
  10. Hello @Viet Hoang, Did you enable the pthreads for the SystemC library build? In cygwin the QThreads library is non-functional, that is why you are facing make check failures also.(13/22 passed tests) You can find relevant discussions here: https://forums.accellera.org/topic/5627-systemc-231-installation-problem-on-windows-7-with-cygwin/?do=findComment&comment=13595 If you are using you need to pass this command line option to cmake to use Pthreads for SystemC threads implementation: -DENABLE_PTHREADS=ON Regards, Ameya Vikram Singh
  11. Hello @Viet Hoang, I think these lines are a cause of concern. You are only running the simulation only for a "1 ns" much before the clock cycle. Replace the following lines: With sc_start(); // or with one below // sc_start(300, SC_NS); And stop the simulation using "Ctrl+C" (SINGINT) when running till end of simulation. Hope it helps. Regards, Ameya Vikram Singh
  12. Hello @elibre, It looks like you need to utilize dynamic processes to achieve what you have mentioned in your query. You can find necessary details here: https://forums.accellera.org/topic/6089-sc_spawn-and-anthoer-process/ https://sclive.wordpress.com/2008/01/10/systemc-tutorial-threads-methods-and-sc_spawn/ The second link is slightly dated, but still has details for what you want to achieve. Hope this helps. Regards, Ameya Vikram Singh
  13. Hello @Partha, As the error message suggests the third indexed interface in host(my_host) object instance is not bound: i.e. host_port. For future reference pass the name of the interface also so that you can get more descriptive names in the error messages. For e.g.: Changing your source files as shown below changes the error message: // Code your testbench here. // Uncomment the next line for SystemC modules. #include <systemc.h> #include <stdlib.h> class slave_if : public sc_interface { public: virtual void write(int data) = 0; virtual void read(
  14. Hello @Viet Hoang, Glad that my input helped. It would be great if you can post the second query along with a minimal sample code you are trying to replicate the said behavior in a separate post. Regards, Ameya Vikram Singh
  15. Hello @Viet Hoang, Can you clarify what environment you are using for setting the build environment for both SystemC and fc4sc? (From the looks of it it seems to be cygwin based). Also the error: Is due to you trying to copy and paste the command from the pdf to the bash console. Can you try to manually type the commands? Regards, Ameya Vikram Singh
  16. Hello @dave0, As suggested by @maehne use the public git repository available here: https://github.com/accellera-official/systemc Prerequisites: Working Microsoft Studio Environment Windows CMake Binary release: https://cmake.org/download/ Ensure CMake executable is available in the command line.(cmd.exe) Git Windows installation from: https://git-scm.com/ Ensure Git command is accessible from command line(cmd.exe) Here are the highlight of the steps involved: git clone https://github.com/accellera-official/systemc cd system
  17. Hello @Gilbert Pajela, SystemC is C++, so it would be better to utilize C++ Tooling support to parse SystemC. And since @Roman Popov already mentioned Clang and LLVM tooling infrastructure you would have to fiddle with it to get necessary results. After Googling a bit found a reference to this paper: https://ieeexplore.ieee.org/document/6646649, and this project on GitHub: https://github.com/anikau31/systemc-clang Which have been updated quite recently. Hope it helps. Regards, Ameya Vikram Singh
  18. Hello @SteveF, The enum tracing support is deprecated. You can find relevant discussions here: https://forums.accellera.org/topic/1309-enumeration-tracing/ https://stackoverflow.com/questions/53859127/how-to-trace-enum-type-in-a-vcd-file-using-systemc-ams There was another discussion about creating a mapping file between values and strings for usage in GtkWave for viewing VCD traces but currently unable to locate it. Will probably update the response or someone else can post the link to relevant discussion. Hope this small insight helps. Regards, Am
  19. Hello @rana, Here (http://karibe.co.ke/2014/02/setting-up-systemc-and-eclipse-for-c-hardware-simulation/) is a very detailed resource for setting up the Eclipse CDT IDE for SystemC related development. Though it is mentioned using Linux but you can find the steps 6 through 10 necessary for setting the project configurations which are anyway platform agnostic. Hope it helps. Regards, Ameya Vikram Singh
  20. Hello @shubham_v, This new post does not contribute anything new or relevant to the previous discussion. As already the answers and resources provided by @David Black and @Eyck, have sufficient details. It looks as if you want to get your homework done by forum members. Can you at least put an effort to showcase what you have implemented till now? and also where you are stuck so that forum members can help you out with some more suggestions. Regards, Ameya Vikram Singh
  21. Hello @aarone, Can you provide the initial logs from the SystemC kernel about the VCD timescale setting. Probably you are using the default VCD timescale, also the Warning itself is providing an insight that you need to revise the VCD timescale resolution. Hope it helps. Regards, Ameya Vikram Singh
  22. Hello @charan, This is quite bold to copy the dll's into the systems core directory. It is usually a bad practice. Can you provide your build environment setup details(compilers, etc.)? Regards, Ameya Vikram Singh
  23. Hello @shoji, Can you share a small example?, where it can be reproduced easily. That would help in narrowing down the issue. Regards, Ameya Vikram Singh
  24. Hello @Jenkki_Menthol, The provided pseudo code and the description is not clear enough to provide any useful suggestions. Can you elaborate more on the exact problem statement probably with some very generic code to help you with some suggestions further? Regards, Ameya Vikram Singh
  25. Hello @chatbq, There is not enough context, probably the exception is being thrown from another module. Overall the code seems fine. You can try and see from where the exception is being thrown from the debugger. Regards, Ameya Vikram Singh
  • Create New...