mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 21:17:59 -04:00
Add fence instruction to tracer (#134)
This commit is contained in:
parent
edccb325e4
commit
1df87f4400
3 changed files with 8 additions and 0 deletions
|
@ -40,8 +40,11 @@ module ibex_tracer_tb;
|
|||
#10ns instr_rdata = 32'h60008113;
|
||||
#10ns instr_rdata = 32'h00000013;
|
||||
#10ns instr_rdata = 32'h00000113;
|
||||
#30ns instr_rdata = 32'h00000013;
|
||||
#10ns instr_rdata = 32'h0000000f;
|
||||
#10ns instr_rdata = 32'h00000013;
|
||||
#10ns instr_rdata = 32'h00000013;
|
||||
#10ns instr_rdata = 32'h0000000f;
|
||||
end
|
||||
|
||||
ibex_core_tracer ibex_i (
|
||||
|
|
|
@ -395,6 +395,8 @@ module ibex_tracer #(
|
|||
// LOAD & STORE
|
||||
INSTR_LOAD: trace.printLoadInstr();
|
||||
INSTR_STORE: trace.printStoreInstr();
|
||||
// MISC-MEM
|
||||
INSTR_FENCE: trace.printMnemonic("fence");
|
||||
default: trace.printMnemonic("INVALID");
|
||||
endcase // unique case (instr_i)
|
||||
end
|
||||
|
|
|
@ -68,4 +68,7 @@ parameter logic [31:0] INSTR_PMULHU = { 7'b0000001, 10'b?, 3'b011, 5'b?, {OPCOD
|
|||
parameter logic [31:0] INSTR_LOAD = {25'b?, {OPCODE_LOAD } };
|
||||
parameter logic [31:0] INSTR_STORE = {25'b?, {OPCODE_STORE} };
|
||||
|
||||
// MISC-MEM
|
||||
parameter logic [31:0] INSTR_FENCE = { 17'b?, 3'b000, 5'b?, {OPCODE_MISC_MEM} };
|
||||
|
||||
endpackage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue