Jump to content

SC_VECTOR declaration causes Exception thrown.


Aaron Yang

Recommended Posts

Hey guys,

Need help about this:

Exception thrown at 0x00007FFC1FCE1CAF (ntdll.dll) in mytest.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

I traced the call stack to where it stopped in my code, found it's this line in header file:

sc_vector<sc_signal<float>> output_connect_wire{"output_connect_wire",1};

It's been used like this in cpp file, not sure if it's relevant though:

....
submodule->O_data(output_connect_wire);
....
if(...){...}
else {
	data_out.write(output_conncet_wire[0].read());
}
....

 where the submodule output declared as sc_vector<sc_out<float>> O_data{"O_data",1};

 

Thank you in advance and tell me if you need any more info to identify the issue.
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...