Jump to content

pouyashiri

Members
  • Content Count

    8
  • Joined

  • Last visited

  1. Thanks so much Mr Filch that worked. I wonder how my codes were working before with the top not being the testbench!!!! Thanks so much! Regards
  2. Mr Fitch, thanks so much for the help. I have almost done everything you said but I still get "port not bound, complete binding failed". Spent more than 24hours on this issue now.
  3. Thanks for the points you mentioned. Now I know what problem this code has caused, after running this code, the memory that visual assigns to stack is overrun hence destroyed. As a result when I add a sc_in port or sc_out port in my codes it cannot bind them and I always get unhandled exceptions at memory locations. Any tips for resetting this memory dedicated to stack? Regards
  4. this is the code that makes all later codes crash! //////////////////////////////////////START OF CODE ////FILE ONE: MEMORY MODULE, HEADER FILE #ifndef Memory_H #define Memory_H #include "systemc.h" SC_MODULE(my_memory) { sc_in <bool> clk; sc_in <sc_bv<12> > address; sc_inout <sc_bv<16> > content; sc_in <bool> write; sc_signal <sc_bv<16> > mem[4096]; void my_memory::read () {content.write(mem[address.read().to_uint()]);} void my_memory::writ() { if((write == (bool) '1') && clk.event() &&a
  5. no it didn't crash. Just found that the code crashes on the last port of all codes and the error is " port not bound: CUT.port_x' (sc_out or sc_in) " where 'x' is the number of last out or in port, and CUT is the name of my constructor, like this : my_register top("CUT");
  6. As I checked the reason of crashing is this : complete beinding failed: "port not bound: port 'CUT.port_5' (sc_out)" I have to mention again that this code is running on other pcs. I get this error for all systemC codes!
  7. Yes I meant Visual Studio. As I said, I have run some codes before, so I'm familiar with project settings. The problem still persists. I can just guess it's for assigning too much memory to memory signal (sc_signal <sc_bv<16> > mem[4096]).
  8. Hello everyone I'm new to systemc and VS. I've made some codes, but when I debug the testbench of this code, I start getting "unhandled exception at memory location xxx" for ALL codes I used to run. How can I fix this? What causes this? SC_MODULE(my_memory) { sc_in <bool> clk; sc_in <sc_bv<12> > address; sc_inout <sc_bv<16> > content; sc_in <bool> write; sc_signal <sc_bv<16> > mem[4096]; void my_memory::read () {content.write(mem[address.read().to_uint()]);} void my_memory::writ() { if((write == (bool) '1') && clk.event() &&
×
×
  • Create New...