Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ac_int tracing; getting runtime exception #20

Open
sa425316543 opened this issue Sep 16, 2022 · 0 comments
Open

ac_int tracing; getting runtime exception #20

sa425316543 opened this issue Sep 16, 2022 · 0 comments

Comments

@sa425316543
Copy link

Hi,
I am getting a runtime exception when I try to trace the ac_type signal. I really appreciate if I could get some assistance or examples of tracing using the ac_types used in systemC context.

SystemC version: 2.3.3
ac_types version: 4.6.1
Compilers tried : MSVC 2019, gcc 9.3.0

#include "systemc.h"
#include "ac_int.h"
#include "ac_sc.h"

int sc_main(int argc, char *argv[])
{
std::cout << "Starting DUT Simulation\n";
// Open VCD file
sc_trace_file *trace_file = sc_create_vcd_trace_file("test");

ac_int<14, false> ac_test;
sc_uint<14> sc_test;

ac_test = 10;
sc_test = 10;

sc_trace(trace_file, ac_test, "test.ac_test"); // exception goes away if I comment this line.
sc_trace(trace_file, sc_test, "test.sc_test");

sc_start(10, SC_NS);
sc_close_vcd_trace_file(trace_file);

std::cout << "SIM Complete";
return 0;

}

Here is the exception:
Exception thrown at 0x00007FF666D15972 in ac_type_tests.exe: 0xC0000005: Access violation writing location 0x0000000000000000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant