Jump to content


  • Content Count

  • Joined

  • Last visited

About JorgeAbarca

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. i have a module called dispenser, which is my top hierarchy module and it has tow sub modules inside (module1 and module2). how can i connect them inside my main module ? i have tried something like this and it is failing. know that it is possible to do it using Pointers, but i am trying in this way. how can i do it? SC_MODULE(dispenser){ sc_in<bool> input1; sc_in<bool>input2; sc_out<bool>out1; sc_signal<bool> s1; SC_CTOR(dispenser){ module1 m1("module1"); m1.in1(input1); m1.in2(input2) m1.outA(s1);
  2. Could you please elaborate more on your suggestion? i can find out the voltage of every power domain, and each port knows the domain where it belongs... but how can I see where the signal comes from ??? I mean, if the ModA has a signal conected to ModB.... how modB can realize that the signal comes from modA?
  3. i am not sure if what i am asking is very basic, probably yes, but to solve this i have had to learn while deliver. does my analysis make sense ?
  4. if I think i terms of software and not in Hardware, what I would need is an sc_signal with 1 more attribute. then to do that i can create a new class that inherits from sc_signal, include the attribute (float DomainVoltage) and include a setter and getter. And in my opinion that sounds like a solution, but now i dont know how to read it into my ports. in geneal words i have something like this: //sc_signal_upf CLASS class sc_signal_upf : public sc_signal<T,POL> { float DomainVoltage; public: sc_signal_upf(){} void operator
  5. Hi, I am working on a code that gives support to some UPF features. Right now, i am working on the solution to support Level Shifters. Basically my project reads the UPF file, and extracts the relevant information, each port knows to which PowerDomain belongs and the status of it, then they are able to react depends on if the power domain is ON or OFF. Now i am trying to solve how to include the level shifter support, what i have thought is to generate a customized channel, based on sc_signal, but instead of write(_value), write(_value, _domainvoltage). the idea is th
  6. Hi, i am creating a new port for a specific purpose, it works very well with the most of datatypes, but i got an error trying to support sc_logic. in this example the behavior is if my_event is detected a write is forced. but if it is an sc_logic I forced sc_logic_z but if it is other datatype I force 0. my intention is to detect if the object is sc_logic or not using typeid(T).name(), what in my operative system is "N5sc_dt8sc_logicE" , but i am getting this error: In file included from ./main.cpp:42:0: ./port_new.h: In instantiation of ‘void sc_out_new<T>::write(T)
  7. let me explain better, what I need is to represent power domains in SystemC for functional verification, reading the UPF file. The idea is to make the implementation hidden for the user, then it would be automatic and transparent for the user. That said, i thought that i could modify the sc_out class using inheritance, to be aware about the domain to which belongs, but then i need to turn off the signal if the domain is off. to do that, i thought that i would need to create a sc_out with sensitivity, then it automatically could monitor the status of the domain, and if the status in OFF, it a
  8. Hi! I am new on this, and i am learning systemC. i am working on an academic project, then i wonder if it is possible (after some systemC code modifications) to generate primitive_ports that respond to a sensitivity list? then I could generate a function that set to 0 each port when a global signal is set to a specific state. is it possible? what parts of systemC code i'd need to modify? thanks a lot in advance for the help and guidance!
  • Create New...