You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Arthur Kahlich
Original Redmine Issue: 965 from https://www.veripool.org
Original Date: 2015-09-11
Original Assignee: Wilson Snyder (@wsnyder)
This comes from trying to cause a statement of the form:
@@#include "headerfilename.h"
to be included in the verilator cpp_output.cpp file. The include file defines an extern "C" function that is called in one of the lower level module files using the verilator $c(" blah "); mechanism.
I cannot deduce from the documentation what is wrong with the following lines, whether placed within or outside of a module definition in a lower level Verilog module file:
@@%Error: some_module_name.v:27: syntax error, unexpected `systemc_interface BLOCK
@@error: Exiting due to 1 error(s)
As far as I can tell, I followed the statements from the manual below:
`systemc_imp_header
Take remaining text up to the next verilog or systemc_... mode switch and place it verbatim into the header of all files for this C++ class implementation. Despite the name of this macro, this also works in pure C++ code.
That says nothing about code locations where this would be unexpected - so where is it expected and where is it not?
This is a request for the documentation to be clarified.
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Arthur Kahlich
Original Date: 2015-09-11T21:18:43Z
With correct formatting:
This comes from trying to cause a statement of the form:
to be included in the verilator main_cpp_output.cpp file. The include file defines an extern "C" function that is called in one of the lower level module files using the verilator $c(" blah "); mechanism.
I cannot deduce from the documentation what is wrong with the following lines, whether placed within or outside of a module definition in a lower level Verilog module file:
#include "headerfilename.h"
`Verilog
```
where the resulting verilator error message is:
```%Error: some_module_name.v:27: syntax error, unexpected `systemc_interface BLOCK
Error: Exiting due to 1 error(s)
```
As far as I can tell, I followed the statements from the manual below:
> *`systemc_imp_header*<br>
> Take remaining text up to the next `verilog or `systemc_... mode switch and place it verbatim into the header of all files for this C++ class implementation. Despite the name of this macro, this also works in pure C++ code.
That says nothing about code locations where this would be unexpected - so where is it expected and where is it not?
This is a request for the documentation to be clarified.
Author Name: Arthur Kahlich
Original Redmine Issue: 965 from https://www.veripool.org
Original Date: 2015-09-11
Original Assignee: Wilson Snyder (@wsnyder)
This comes from trying to cause a statement of the form:
@@#include "headerfilename.h"
to be included in the verilator cpp_output.cpp file. The include file defines an extern "C" function that is called in one of the lower level module files using the verilator $c(" blah "); mechanism.
I cannot deduce from the documentation what is wrong with the following lines, whether placed within or outside of a module definition in a lower level Verilog module file:
@@
systemc_imp_header @@#include "headerfilename.h" @@
Verilogwhere the resulting verilator error message is:
@@%Error: some_module_name.v:27: syntax error, unexpected `systemc_interface BLOCK
@@error: Exiting due to 1 error(s)
As far as I can tell, I followed the statements from the manual below:
`systemc_imp_header
That says nothing about code locations where this would be unexpected - so where is it expected and where is it not?
This is a request for the documentation to be clarified.
The text was updated successfully, but these errors were encountered: