Jump to content

ciccio.greco88

Members
  • Content Count

    8
  • Joined

  • Last visited

  1. Hi guys, i've a variable sc_uint<32> pippo to which i want to assign a value in an hexadecimal form but this value has a decimal form, how can i do it? Help me! Thanks! Greetings. Francesco.
  2. Hi guys, i've another question about a compilation error of my code that i don't able to solve in any way! i think it is a stupid problem related to class inclusion, but i don't understand why it is present! First of all suppose i have a class in a file called axi_master_top.h: #include "systemc.h" #include "axi_master_transactor.h" #include "axi_traffic_generator.h" #include <stdint.h> using namespace axi; class axi_master_top : public sc_module { public: axi_master_transactor<> amt("amt"); axi_traffic_generator<> atg("atg", 2, 4, 0x0000000000000100, 1, 0, 8 ); ............. }; axi_master_transactor and axi_traffic_generator are two classes defined inside a namespace called axi and each of them have some template parameter but in the declaration of an object of their type i use the default parameter ( <> ). Then the error that i obtain at compilation time is: ./axi_master_top.h:25: error: expected identifier before string constant ./axi_master_top.h:25: error: expected ',' or '...' before string constant ./axi_master_top.h:26: error: expected identifier before string constant ./axi_master_top.h:26: error: expected ',' or '...' before string constant line 25 and 26 are those in which i declare the axi_master_transactor and the axi_traffic_generator. Help me, please! Francesco.
  3. Okkkkk!!! Thank you so much Sumit, you have been very useful to clarify my ideas! Ciao! :-)
  4. Alan i've tried your suggestion, but the result is the same. So i think that the problem may be that described by Philipp but i don't understand very well what is it because i'm not a very expert user, sorry! :-) Thanks at everyone!
  5. Hi guys, i've a problem with the simulation of my SystemC code using Cadence's NC-SC Simulator. The error is the following: make: *** [iNCA_libs/ncsc_obj/main.o] Error 1 "/usr/include/gentoo-multilib/amd64/bits/waitstatus.h", line 67: error: invalid redeclaration of type name "wait" (declared at line 67 of "/usr/include/gentoo-multilib/x86/bits/waitstatus.h") union wait ^ "/usr/include/gentoo-multilib/amd64/bits/sched.h", line 24: catastrophic error: #error directive: "Never include <bits/sched.h> directly; use <sched.h> instead." # error "Never include <bits/sched.h> directly; use <sched.h> instead." ^ ncsc: Error executing: $CDSROOT/tools/systemc/gcc/4.1-x86_64/bin/g++ -DNCSC -DCADENCE -DLNX86 -I$CDSROOT/tools/systemc/include_pch/64bit -o INCA_libs/ncsc_obj/main.o -I$CDSROOT/tools/systemc/include/tlm2 -DNCSC -I$CDSROOT/tools/systemc/include_pch -I$CDSROOT/tools/tbsc/include -I$CDSROOT/tools/vic/include -I$CDSROOT/tools/ovm/sc/src -I$CDSROOT/tools/systemc/include/tlm -fPIC -c -x c++ -Wall -O0 -g $TESTDIR/main.cpp ncsc_run: *E,TBBLDF: Failed to generate object INCA_libs/ncsc_obj/main.o I don't know what is referred to it!Help me, please! :-) Thanks.
  6. Ok Philipp! also if i have decided to change the implementation of my project i will use your suggestons when i will need them! Thanks!
  7. my code has a waring when running : Warning: (W5) out of bounds: sc_uint[_base]: value does not fit into a length of 4 In file: ../../../../../src/sysc/datatypes/int/sc_uint_base.cpp:374 In process: tg0.traffic_generator_thread @ 0 s what is the reason? Is it a bug? Reading a post in the old forum KMLM List i have seen that a user has solved this problem using gdb debugger writing "sc_report_handler::force(SC_INTERRUPT);" in the sc_main of his code and putting a breakpoint for sc_interrupt_here. i've tried to do this, but i don't know how to fix the breakpoint, in fact i write the command " b sc_interrupt_here" but i receive the message "Function "sc_interrupt_here()" not defined." what is the correct method to do this? or how can i solve the warning with another method? Thanks.
×
×
  • Create New...