Skip to content

Instantly share code, notes, and snippets.

@Wonicon
Last active November 4, 2015 04:39
Show Gist options
  • Save Wonicon/d3f4064ec2c8e7701546 to your computer and use it in GitHub Desktop.
Save Wonicon/d3f4064ec2c8e7701546 to your computer and use it in GitHub Desktop.
pipline笔记

一种cache的外围结构, 不涉及缓存策略和替换算法:

  1. cache 有自己的时钟, 保证完成检测, 替换以及从内存读取一份数据块的时间
  2. miss 信号异步驱动 cpu 停止流水线
  3. 时钟到来一定让 miss 信号无效
  4. 组合逻辑扫描 cache, miss 则 miss 信号有效

可行性方面存在问题: 由于时钟不一致, cpu 访问 cache 发现 miss 时可能已经没有足够的时间进行内存读写.

Update: 可以增加计时器, miss 信号相当于该计时器的异步 reset, 计时器结束时同步地写入 valid bit 并且恢复 cpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment