1
0

clock gate s2 registers in the frontend

This commit is contained in:
Yunsup Lee 2013-05-21 18:59:21 -07:00
parent c837c1d800
commit 11133d6d4c

View File

@ -81,9 +81,11 @@ class Frontend(implicit c: ICacheConfig, lnconf: LogicalNetworkConfiguration) ex
s1_same_block := s0_same_block && !tlb.io.resp.miss
s1_pc := npc
s2_valid := !icmiss
s2_pc := s1_pc
s2_btb_hit := btb.io.hit
s2_xcpt_if := tlb.io.resp.xcpt_if
when (!icmiss) {
s2_pc := s1_pc
s2_btb_hit := btb.io.hit
s2_xcpt_if := tlb.io.resp.xcpt_if
}
}
when (io.cpu.req.valid) {
s1_same_block := Bool(false)