RISC-V多核心流水线处理器详解
1. 多核心流水线概述
在多核心(Multihart)的RISC - V处理器中,流水线是提高性能的关键。整个流水线包含多个阶段,通过循环不断执行各个阶段的操作,代码如下:
fetch ( f_from_d ,
f_from_e ,
d_state_is_full ,
code_ram ,
f_state ,
& f_to_d ,
f_state_is_full );
decode ( d_from_f ,
i_state_is_full ,
d_state ,
& d_to_f ,
& d_to_i ,
d_state_is_full );
issue ( i_from_d ,
e_state_is_full ,
reg_file ,
is_reg_computed ,
i_state ,
& i_to_e ,
i_state_is_full ,
& is_lock ,
& i_hart ,
& i_destination );
execute ( e_from_i ,
m_state_is_full ,
# ifndef
__SYNTHESIS__
reg_file ,
# endif
e_state ,
& e_to_f ,
& e_to_m ,
e_state_is_full );
mem_access ( m_from_e ,
w_state_is_full ,
data_ram ,
m_state ,
& m_to_w ,
m_state_is_full );
write_back ( w_from_m ,
reg_f
超级会员免费看
订阅专栏 解锁全文
1566

被折叠的 条评论
为什么被折叠?



