- 博客(4)
- 资源 (20)
- 收藏
- 关注
原创 shell: awk中二维数组计算
因为awk中没有实际的二维数组,而是通过一维数组模拟的,具体用法如下:awk ' { a[$1,$2]++; } END{ for(i in a) { split(i,idx,SUBSEP); # 下面三项分别表示二维数组的i,j和a[i,j] print idx[1], idx[2], a[idx[1], idx[2]]; }
2015-12-21 15:51:58 4091
原创 gem5: 缓存中如何设置writeback dirty cachelines并invalidate该缓存块
参考:MemCmd for CleanInvalid 解决方法: 1.使用classic缓存模型, 在src/mem/cache/cache_impl.hh中有两个方法可以实现缓存块的writeback和invalidate.分别为:Cache::writebackVisistor() 和Cache::invalidateVisitor() ,用法如下: BlkType *blk = tags-
2015-12-20 17:13:55 2551 2
原创 gem5: 在缓存代码中如何识别缓存是L1,L2还是L3呢?
参考:Checking Cache Levels问题描述:有时候我们需要知道cpu当前在访问缓存的哪一级,然后针对性的作出信息统计,那么如何知道是L几呢?方法: If you want to know which level the target cache is at, I can tell you a simple approach that I used.(1) Add a member v
2015-12-15 15:04:00 2416 10
原创 gem5: the trace of cache set and cache line write hit counters
问题:如何统计缓存的set和cache line的写命中情况?解决方法: 1.缓存set访问写命中,计数一次,cache line写命中,计数一次;2.在gem5中的src/mem/cache/base.hh中有incHitCount()函数,它是统计缓存命中情况的,那么只需要在这里面细化的统计set和cache line的写命中即可;3.首先设置trace信息,在src/mem/cache/SC
2015-12-13 19:40:21 1747 2
running parsec 3 for arm architecture
2016-01-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人