[讨论] OPENRISC OR1KSIM安装

白丁   2015-11-17 19:24 楼主
Or1ksim是一个代码级的OPENRISC1000架构系统模拟器。它包含一系列的外设,允许完整系统的模型仿真。
关键特性如下:
ü 免费,开放源代码,可以用作单独的仿真器或者库
ü 高层次快速的架构仿真,允许更早的代码分析和系统性能评估
ü 提供opencores上所有主要的外设和系统控制器核心,容易添加新的外设模型
ü 容易配置不同的环境(内存大小,or1k处理器模型和外设)
ü 可以使用GDB通过网络socket进行远程调试
ü 库接口允许简单地OSCI TLM2.0 SystemC 集成
下载最新的or1ksim源码git clone git://github.com/openrisc/or1ksim.git mkdir builddir_or1ksim cd builddir_or1ksim ../or1ksim/configure --target=or1k-elf --prefix=/opt/or1ksim make make install export PATH=/opt/or1ksim/bin:$PATH将默认安装到/opt/or1ksim下。 --target=or1k-elf 设置目标平台为or1k-elf,--prefix=/opt/or1ksim是指定安装的路径.还可以进行如下配置:
--enable-profiling--disable-profiling
If enabled, Or1ksim is compiled for profiling with gprof. This is disabled by default. Only really of value for developers of Or1ksim
--enable-execution=simple--enable-execution=complex
Or1ksim has developed to improve functionality and performance. This feature allows three versions of Or1ksim to be built --enable-execution=simple Build the original simple interpreting simulator --enable-execution=complex Build a more complex interpreting simulator. Experiments suggest this is 50% faster than the simple simulator. This is the default.
--enable-ethphy--disable-ethphy
If enabled, this option allows the Ethernet to be simulated by connecting via a socket (the alternative reads and writes, from and to files). This must then be configured using the relevant fields in the ethernet section of the configuration file. The default is for this to be disabled.
--enable-unsigned-xori--disable-unsigned-xori
Historically, l.xori, has sign extended its operand. This is inconsistent with the other logical opcodes (l.andi, l.ori), but in the absence of l.not, it allows a register to be inverted in a single instruction using: l.xori rD,rA,-1 This flag causes Or1ksim to treat the immediate operand as unsigned (i.e to zeroextend rather than sign-extend)
--enable-range-stats --disable-range-stats
If enabled, this option allows statistics to be collected to analyse register access over time. The default is for this to be disabled.
--enable-debug --disable-debug
This is a feature of the Argtable2 package used to process arguments. If enabled, some debugging features are turned on in Argtable2. It is provided for completeness, but there is no reason why this feature should ever be needed by any Or1ksim user.
--enable-all-tests --disable-all-tests
Some of the tests (at the time of writing just one) will not compile without error. If enabled with this flag, all test programs will be compiled with make check.This flag is intended for those working on the test package, who wish to get the missing test(s) working.
0.30版本开始,去除了一些配置选项如下:--enable-arith-flag --disable-arith-flag--enable-ov-flag --disable-ov-flag 本帖最后由 白丁 于 2015-11-17 19:26 编辑
training

回复评论 (1)

讲的非常好,看了收获很多,十分感谢

点赞  2020-9-20 12:47
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复