当前位置:网站首页>SystemC common errors
SystemC common errors
2022-06-12 13:54:00 【123axj】
Wrong type | Compile error |
Error message | systemc-2.3.1/include/sysc/datatypes/int/sc_uint_base.h:842: undefined reference to `sc_dt::sc_uint_base::to_string systemc-2.3.1/include/sysc/communication/sc_signal_ports.h:1802: undefined reference to `sc_core::sc_in<bool>::add_trace_internal …. collect2: error: ld returned 1 exit status |
error analysis | This error occurred , It is probably due to the default of the current environment gcc The version is relatively low , And install systemc The use of gcc Higher version . Results in the current lower version of gcc Unrecognized high version compiled systemc The library files . commonly ubuntu16.04 In the environment , The corresponding is gcc 5.4.0 edition . Modify current default gcc The version number of can refer to https://blog.csdn.net/qq_31175231/article/details/77774971 |
Wrong type | Compile error |
Error message | error: ‘std::gets’ has not been declared |
error analysis | std::get() By C++11 Deleted , Reference resources https://stackoverflow.com/questions/38352801/systemc-error-with-the-library and https://stackoverflow.com/questions/12893774/what-is-gets-equivalent-in-c11 You can add compilation options -std=c++98 Ubuntu20.04 (gcc version 9.3.0) The default is c++11 |
Wrong type | Compile and pass , The execution is wrong |
Error message | Error: (E115) sc_signal<T> cannot have more than one driver: signal `MyTest.test_sig' (sc_signal) first driver `MyTest.TestMethod' (sc_method_process) second driver `MyTest.TestThread1' (sc_thread_process) In file: ../../../../src/sysc/communication/sc_signal.cpp:73
|
error analysis | Reference resources https://blog.csdn.net/zgcjaxj/article/details/106106426 systemc In the rules , The same sc_signal Multiple drives are not allowed , in other words , The same sc_signal, Only in one SC_METHOD or SC_THREAD Middle quilt write assignment |
Wrong type | Compile and pass , The execution is wrong |
Error message | Error: (E109) complete binding failed: port not bound (sc_in) In file: external/sysc/sysc/communication/sc_port.cpp:235 or 231 |
error analysis | Description yes port/sc_signal/sc_in/sc_out Forgot to bind perhaps Yes, there is port/sc_signal/sc_in/sc_out It is added to the list of static sensitive events before binding , stay simulation It is found that sensitive events cannot be retrieved during the process , Report errors . About the latter , May refer to https://blog.csdn.net/zgcjaxj/article/details/105455330 Generally in end_of_elaboration() Function to add SC_METHOD Function and its sensitive event list |
Wrong type | Compile and pass , The execution is wrong |
Error message | Error: (E126) sc_export instance already bound: xxxxxxxx In file: external/sysc/sysc/communication/sc_export.h:188 |
error analysis | Description yes port Repeat binding , And there is a hint of which port/sc_signal |
Wrong type | Compile and pass , The execution is wrong |
Error message | Error: (E513) an sc_module_name parameter for your constructor is required In file: external/sysc/sysc/kernel/sc_module.cpp:223 |
error analysis | One inherited sc_module Class , Must be initialized on the list sc_module Assign a value , It's like MyModule::MyModule(sc_core::sc_module_name name) : sc_module(name), …. |
Wrong type | Compile and pass , The execution is wrong |
Error message | Error: (E565) invalid use of sc_(and|or)_event_list: wait() on empty event list not allowed In file: external/sysc/sysc/kernel/sc_wait.cpp:103
|
error analysis | Still groping |
边栏推荐
- Behind the unsealing of Shanghai, this group of developers "cloud gathering" built an AI anti epidemic robot
- Codeforces 1637 F. Towers - thinking, DFS
- Convert the string to hexadecimal string and display it
- Paw 高级使用指南
- Recursion of subviews of view
- 正点原子STM32F429核心板的插座型号
- Codeforces 1629 F1. Game on sum (easy version) - DP, game, thinking
- AVFoundation
- Void pointer (void*) usage
- English learning plan
猜你喜欢

Codeforces 1637 D. yet another minimization problem - Mathematics, DP

通过loganalyzer展示数据库中的日志

Talk about the top 10 classic MySQL errors

618 entered the second half of the period, apple occupied the high-end market, and the domestic mobile phones finally undercut the price competition

Implementing singleton mode of database under QT multithreading

A method of quickly creating test window

Xcode debugging OpenGLES

Alibaba Cloud Development Board haas510 submission Device Properties

Implementation of Ackermann function with simulated recursion

Formal analysis of Woo Lam protocol with scyther tool
随机推荐
jupyternotebook有汉字数据库吗。在深度学习中可以识别手写中文吗
工具笔记 —— 常用自定义工具类(正则,随机数等)
Display logs in the database through loganalyzer
Data type conversion and conditional control statements
Top 10 tips for visual studio code on Google
List of common ACM knowledge points (to be continued)
Install RPM package offline using yum
Greed issues - Egypt scores
Use of pytorch (to be supplemented)
Tinyxml Usage Summary
AVFoundation
Factory mode of "object creation" mode
[advanced MySQL] query optimization principle and scheme (6)
阿里云开发板HaaS510解析串口JSON数据并发送属性
拆改廣告機---業餘解壓
static 和 extern 关键字详解
单总线温度传感器18B20数据上云(阿里云)
Record some settings for visual studio 2019
Codeforces 1629 C. Mexico array - simple greed
肝了一个月的原创小袁个人博客项目开源啦(博客基本功能都有,还包含后台管理)
