HLS:@E Simulation failed SIGSEGV
HLS:@E Simulation failed: SIGSEGV.
前言
在HLS工具中使用C仿真時(shí)報(bào)如下錯(cuò)誤,經(jīng)定位問(wèn)題后發(fā)現(xiàn)有數(shù)組開辟方式的問(wèn)題。
錯(cuò)誤描述
@E Simulation failed: SIGSEGV. ERROR: [SIM 211-100] CSim failed with errors.錯(cuò)誤原因
官方解釋
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更新
根據(jù)自己這幾天的調(diào)試經(jīng)驗(yàn),出現(xiàn)這種問(wèn)題一般是在HLS仿真中出現(xiàn)數(shù)組越界訪問(wèn)的情況。所以出現(xiàn)這種問(wèn)題時(shí)需檢查數(shù)組開辟的空間大小是否合適、尋址過(guò)程是否越界、指針是否為空
總結(jié)
以上是生活随笔為你收集整理的HLS:@E Simulation failed SIGSEGV的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux之awk命令学习笔记
- 下一篇: Modelsim10.7中文注释乱码问题