HLS:@E Simulation failed SIGSEGV
生活随笔
收集整理的這篇文章主要介紹了
HLS:@E Simulation failed SIGSEGV
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
HLS:@E Simulation failed: SIGSEGV.
前言
在HLS工具中使用C仿真時報如下錯誤,經定位問題后發現有數組開辟方式的問題。
錯誤描述
@E Simulation failed: SIGSEGV. ERROR: [SIM 211-100] CSim failed with errors.錯誤原因
官方解釋
This signal was generated when a program tries to read or write outside the memory that is allocated for it, or to write memory that can only be read.
Possible cause of this problem may be: 1) the depth setting of pointer type argument is much larger than it needed;2)insufficient depth of array argument; 3)null pointer etc.
2021.01.22更新
根據自己這幾天的調試經驗,出現這種問題一般是在HLS仿真中出現數組越界訪問的情況。所以出現這種問題時需檢查數組開辟的空間大小是否合適、尋址過程是否越界、指針是否為空
總結
以上是生活随笔為你收集整理的HLS:@E Simulation failed SIGSEGV的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux之awk命令学习笔记
- 下一篇: Modelsim10.7中文注释乱码问题