在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 861|回复: 4

[求助] the risc-v reader上面的这段话应该怎么理解?

[复制链接]
发表于 2023-1-19 12:16:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
If software uses an omitted RISC-V instruction from an optional extension, the hardware traps and executes the desired function in software as part of a standard library.

这是啥意思啊?

发表于 2023-1-27 22:33:32 | 显示全部楼层
I think of it as a way to use test instructions that haven't been implemented yet in hardware. Good idea actually.
 楼主| 发表于 2023-1-28 07:00:09 | 显示全部楼层


gliss6306 发表于 2023-1-27 22:33
I think of it as a way to use test instructions that haven't been implemented yet in hardware. Good  ...


硬件没有实现,软件怎样执行呢?
发表于 2023-1-30 04:38:08 | 显示全部楼层


orientview 发表于 2023-1-28 07:00
硬件没有实现,软件怎样执行呢?


You implement the hardware instructions in software. When the software tries to execute the unimplemented instruction the CPU traps and will call a function instead, the function that's called is defined with instructions that the CPU can execute, when the function returns, the instruction is done. I don't think RISC-V is the first to do this.
 楼主| 发表于 2023-1-30 14:40:17 | 显示全部楼层


gliss6306 发表于 2023-1-30 04:38
You implement the hardware instructions in software. When the software tries to execute the unimpl ...


那这个hardware trap的功能岂不是要很强大?可以接受很多ISA之外的指令?
有具体的实现原理和电路吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-2-22 21:30 , Processed in 0.020997 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表