
kartikkg
Members-
Content Count
33 -
Joined
-
Last visited
-
Days Won
2
kartikkg last won the day on May 3 2017
kartikkg had the most liked content!
About kartikkg
-
Rank
Advanced Member
Recent Profile Visitors
661 profile views
-
-
-
Can you share some more code ? Where are you calling the function Dendrit_Set
-
-
-
-
@ANKUR SAINI What is your distro ? There are reports of same errors on CentOS . Is your GCC part of the Distro or are you using the one provided by any third party tool vendor ?
-
kartikkg started following Constructor issue, before_end_of_elaboration callback, peq_with_get VS peq_with_cb_and_phase and and 5 others
-
-
-
-
no body who can help me to install systemC on vs2015 !!
kartikkg replied to yosri ben salah's topic in SystemC Language
Hi remove the line stafx.h and try using std::cin instead of gets. -
-
Remove the include line stafx.h, as far as the differences are considered between Visual Studio and Linux certain header files will be different between them.
-
Accessing to a shared variable
kartikkg replied to flashman's topic in SystemC TLM (Transaction-level Modeling)
Hi please see sc_fifo for your requirement. sc_fifo provides both blocking & non-blocking calls . Blocking call will wait until a slot is free. -
kartikkg reacted to a post in a topic: Where are code examples from "System Design with SystemC" book?
-
-
Issue with sc_inout_resolved
kartikkg replied to ashwini.naik's topic in SystemC AMS (Analog/Mixed-Signal)
Hi Ziga, Since you are using sc_inout_resolved in both files & since ACK in I2C is a '0' I am assuming you are parking the SDA line to '1' from master.cpp which is getting resolved as '1' , hence you are not getting ACK.- 5 replies
-
- sc_inout_resolved
- systemC
-
(and 2 more)
Tagged with:
-
Issue with sc_inout_resolved
kartikkg replied to ashwini.naik's topic in SystemC AMS (Analog/Mixed-Signal)
Hi Ziga, Since you are using sc_inout_resolved in both files & since ACK in I2C is a '0' I am assuming you are parking the SDA line to '1' from master.cpp which is getting resolved as '1' , hence you are not getting ACK.- 5 replies
-
- sc_inout_resolved
- systemC
-
(and 2 more)
Tagged with:
-
Issue with sc_inout_resolved
kartikkg replied to ashwini.naik's topic in SystemC AMS (Analog/Mixed-Signal)
Hi Ziga, How are you connecting the ports b/w those two modules, have you used sc_signal_resolved for connection? Can you provide an mcve code ?- 5 replies
-
- sc_inout_resolved
- systemC
-
(and 2 more)
Tagged with:
-
Before the break statement you can change the state HTRANS = new_state.
-
Can you post the error message ? A cursory glance at the code reveals you trying to access an out-of-bonds bit. ff is 8-bit wide and the for loop goes beyond that.
-
-
-
Glad that I was of help. You can format the code by first pasting the code here and then selecting the code and clicking on <> present in the options.
-
Hi it works for me , here is the code // main.cpp #include <systemc> #include "my_module.h" using namespace sc_core; int sc_main(int argc, char* argv[]) { my_module my_module_i("my_module_i"); sc_start(); return 0; } // my_module.h #include <systemc> using namespace sc_core; // my_module.h #ifndef MY_MODULE_H #define MY_MODULE_H #include <systemc> SC_MODULE(my_module) { // this constructor works //SC_CTOR(my_module); // this constructor doesn't work my_module(sc_module_name nm); };//endclass #endif & // my_module.cpp #include <iostream> using std::cout; using std::endl; #include <systemc> #include "my_module.h" using namespace sc_core; SC_HAS_PROCESS(my_module); my_module::my_module(sc_module_name nm) : sc_module(nm) { cout << "Hello world" << endl; } I used g++ costr.cpp my_module.cpp -lsystemc to compile. Can you check this if it works? else can you post your compiler errors?
-
Hi Hooman, Please see sc_event_or_list for your requirement. An example can be found here https://www.doulos.com/knowhow/systemc/new_standard/