Rocket - tile - BusErrorUnit

https://mp.weixin.qq.com/s/1TdXhC7UvPUX4An1R9QZ8g

 

简单介绍BusErrorUnit的实现。

 

 

1. BusErrors

 

BusErrors定义了一个抽象的toErrorList方法,用于返回错误列表:

其中:

a. toErrorList方法的返回值是一个列表,列表中元素的类型是Option;

b. Option中元素的类型是(Valid[UInt], String, String)三元组;

 

2. L1BusErrors

 

L1BusErrors引入了BusErrors特征,实现其toErrorList方法:

 

1) icache

 

icache代表指令缓存错误:

 

2) dcache

 

dcache代表数据缓存错误:

 

3) toErrorList

 

实现了BusErrors中抽象的toErrorList方法,返回icache/dcache中的错误信号:

-----------------------------------------------------------------------------
这是一篇付费文章,请移步付费阅读全文,谢谢!
文章链接:https://mp.weixin.qq.com/s/1TdXhC7UvPUX4An1R9QZ8g

posted @ 2020-07-09 21:20  wjcdx  阅读(211)  评论(0编辑  收藏  举报