Align privilege level by using clocking block

This commit is contained in:
Florian Zaruba 2017-07-14 14:32:11 +02:00
parent 3d526cf5af
commit e37c3f4cd6
3 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 035169444d1c962fc298ea97da6b7517e770e599
Subproject commit b253ea66b0f4e30f6ee7abf21a9f082e79224ade

View file

@ -117,9 +117,9 @@ class instruction_tracer;
// check if the write back is valid, if not we need to source the result from the register file
// as the most recent version of this register will be there.
if (tracer_if.pck.we) begin
printInstr(issue_sbe, issue_commit_instruction, tracer_if.pck.wdata, address_mapping, tracer_if.priv_lvl);
printInstr(issue_sbe, issue_commit_instruction, tracer_if.pck.wdata, address_mapping, tracer_if.pck.priv_lvl);
end else
printInstr(issue_sbe, issue_commit_instruction, reg_file[commit_instruction.rd], address_mapping, tracer_if.priv_lvl);
printInstr(issue_sbe, issue_commit_instruction, reg_file[commit_instruction.rd], address_mapping, tracer_if.pck.priv_lvl);
end
// --------------

View file

@ -52,12 +52,12 @@ interface instruction_tracer_if (
// exceptions
exception exception;
// current privilege level
priv_lvl_t priv_lvl;
priv_lvl_t priv_lvl;
// the tracer just has a passive interface we do not drive anything with it
clocking pck @(posedge clk);
input rstn, flush_unissued, flush, instruction, fetch_valid, fetch_ack, issue_ack, issue_sbe, waddr,
st_valid, st_paddr, ld_valid, ld_kill, ld_paddr,
wdata, we, commit_instr, commit_ack, exception;
wdata, we, commit_instr, commit_ack, exception, priv_lvl;
endclocking
endinterface