关于EpicSim
https://www.edagit.com/article-read.html#1910
官网
下载源
EDAgit开源的EDA软件源码EpicSim1.2下载地址:
https://www.edagit.com/forum.php?mod=viewthread&tid=88
编译方法参看目录下的编译说明文件:INSTALL_INSTRUCTIONS.txt
我的编译经历
1.0 Building/Installing EpicSim From Source
If you are starting from the source, the build process is designed to be
as simple as practical. Someone basically familiar with the target
system and C/C++ compilation should be able to build the source
distribution with little effort. Some actual programming skills are
not required, but helpful in case of problems.
2.1 Compile Time Prerequisites
You need the following software to compile EpicSim from source
on a UNIX-like system:
- CMake
- GNU Make
- ISO C++ Compiler
- bison and flex
- gperf 3.0 or later
- readline 4.2 or later
- termcap
- bash
GNU Make
$ sudo apt install make
ISO C++ Compiler
$ sudo apt install g++ // GCC C++ compiler
bison
$ sudo apt install bison
$ bison --version
bison (GNU Bison) 3.0.4
flex
$ sudo apt install flex
$ flex --version
flex 2.6.4
gperf
$ sudo apt install gperf
readline
$ wget -c ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
$ tar -zxvf readline-6.2.tar.gz
$ cd readline-6.2
$ ./configure --prefix=/usr/local/readline //这个地方一定要指定路径,要不然要报错(一般在/usr/local下用软件命名,比如 /usr/local/readline下)
$ make -j4 // -j4启用4线程编译,大概1分钟编译完
$ sudo make installl // 因为要安装到/usr/local目录下,因此需要sudo提权
$ sudo ldconfig // 需要sudo提权
$ whereis readline // readline只是一个库,并非应用程序
readline: /usr/local/readline /usr/share/readline
termcap
$ wget http://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
$ tar -zxv -f termcap-1.3.1.tar.gz
$ cd termcap-1.3.1
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
bash
Ubuntu默认为bash终端
2.2 Compilation
Unpack the tar-ball and cd the directory and compile the source
with the commands:
$ mkdir build
$ cd build
$ cmake ..
$ sudo make install //需要提权,否则编译会出现权限不足的的问题
$ cd ..
$ export PATH="`pwd`/install/bin:$PATH"
$ epicsim -v
编译中出现的错误
错误1:
解决办法:
$ sudo apt-get install zlib1g-dev
$ sudo apt-get install bzip2*
还是报错找不到"-lbz2", 就找到libbz2.so.1,建立连接或者复制到 /usr/lib/目录下然后修改名称为"libbz2.so"
错误2:
分析,查看发现是个“可执行的文本文件”
内容如下,可见提示“/usr/bin/bash: bad interpreter: No such file or directory”是指“没有找到/usr/bin/bash”
而Ubuntu下的bash目录是“/bin/bash”,因此修改下epicsim文件
再次执行:
友情链接
在CentOS7上安装开源Verilog仿真工具EpicSim