Jump to content


  • Content Count

  • Joined

  • Last visited

About VKrishnamurthy

  • Rank

Profile Information

  • Gender
    Not Telling
  1. Hi, Found the reason.The error was due to false values in the array .The values that are stored in the array bus_1map are wrong (or overlapped). Could it be because I am copying the values to the array in the constructor itself? Or is there an other way to copy the values. I try to do this : Detector(sc_module_name name,uint64 bus_map[][2],int size ) : sc_module(name), bus_1map(bus_map) But it shows an error saying: incompatible types in assignment of ‘sc_dt::uint64 (*)[2]’ to ‘sc_dt::uint64 [0] [2]’ P.S: The Detector module is instantiated 4 times with different arrays with different values.
  2. First: The problem is Im working on C++ 98. Second: The user code is perfect as I had tried using with a single array and it worked perfectly fine. Third: Yes I mean & here.
  3. Basically, the arrays are present in a simple header file like this: Therefore I cant use maps or vectors which requires a class/ function . I want different arrays which are in .h files to be passed on to the constructor so that I can use the array values I want the arrays for the function as above. There is no error message. When I try to debug it reaches a C++ stl file pointing to a template function and stops.
  4. Hi all, Thank you for your responses. I tried it and it works with a normal constructor. But when I try to pass 2D arrays of different dimensions it doesnt work I have 4 arrays of different dimensions,but the second dimension is fixed as 2. I am trying to take 4 different 2d arrays( of type uint64 )through the constructor and use it in a function during runtime.But I get an error saying that dimensions should be fixed and could not access the values from the arrays.(Using C++ 98) The contents of bus_1map are printed out but further simulation stops . Please help
  5. Hi Experts, How do I pass "Maps" within constructors while using a SystemC struct? I want to instantiate this module 4 times and use 4 different maps for each instance. struct Detector: sc_module { SC_CTOR(Detector) { for (int i = 0 ; i<10 ; i++) { in_map= map[0]; // in_map has been declared as private & map is passed on through the constructor } } Thankyou in advance!
  6. Hello Erwin, Thanks for your response.I have one more thing to be clarified. Ad2) "Each of the master bus interfaces on your IP-XACT bus requires a reference to an address space in that component and a base address. These base addresses and address spaces links to ad 1) because they specify the bus addressing, i.e., the address space for each connected slave." Does this mean that each Mirrored Master or Mirrored Slave BusInterfaces in the IP-XACT Bus Component should possess Address Block References of the Slave Modules or are all Slave Memory Maps referenced in the Master BusInterface? I could not find anywhere in the IP-XACT Standard(1685-2009) on how it can be done. Could you please explain with a simple example? Best Regards, Venkatesh
  7. Hi Experts, 1.I have seen that Offsets of a Slave Module is described in the Memory Maps in Component Description. Is it possible to describe Offsets in the top design? The motive is to repeat various instances of a Slave Component in a design, each slave instance having a different Offset. 2. Also, I have a SystemC architecture in which I instantiate the same bus several times. But I connect each bus instance with a different number of modules. This is because the bus possesses MultiPassthrough Sockets. How can I reproduce it in IP-XACT? Should I have a custom Component for each bus instance(with separate BusDef and AbsDef ?) as each instance will have a different number of bus interfaces? How can it be done? Looking forward for your response! Thanks in advance, Venkatesh
  • Create New...