Skip to content

Commit

Permalink
update cv32e40px with dual-read support (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiavone authored Jan 17, 2024
1 parent aa5bb92 commit 98568f0
Show file tree
Hide file tree
Showing 19 changed files with 736 additions and 461 deletions.
2 changes: 1 addition & 1 deletion hw/vendor/esl_epfl_cv32e40px.lock.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
upstream:
{
url: https://github.com/esl-epfl/cv32e40px.git
rev: acf3442b414725191fb7a2027facd0b5b4123c1c
rev: 49770e7dd5d569f440810866f4f33ce6a4f7ef1f
}
}
4 changes: 1 addition & 3 deletions hw/vendor/esl_epfl_cv32e40px.vendor.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@

upstream: {
url: "https://github.com/esl-epfl/cv32e40px.git",
rev: "acf3442b414725191fb7a2027facd0b5b4123c1c",
rev: "49770e7dd5d569f440810866f4f33ce6a4f7ef1f",
},

patch_dir: "patches/esl_epfl_cv32e40px",

exclude_from_upstream: [
"ci",
".github",
Expand Down
12 changes: 6 additions & 6 deletions hw/vendor/esl_epfl_cv32e40px/bhv/cv32e40px_instr_trace.svh
Original file line number Diff line number Diff line change
Expand Up @@ -679,22 +679,22 @@ class instr_trace_t;
// decode and print instruction
case (instr[11:8])
// cv.starti, cv.endi
4'b0000, 4'b0010: str = $sformatf("%-16s %d, 0x%0x", mnemonic, rd[0], imm_iz_type);
4'b0000, 4'b0010: str = $sformatf("%-16s %d, 0x%0x", mnemonic, instr[7], imm_iz_type);
// cv.counti
4'b0100: str = $sformatf("%-16s %d, %d", mnemonic, rd[0], imm_iz_type);
4'b0100: str = $sformatf("%-16s %d, %d", mnemonic, instr[7], imm_iz_type);
// cv.start, cv.end, cv.count
4'b0001, 4'b0011, 4'b0101: begin
regs_read.push_back('{rs1, rs1_value, 0});
str = $sformatf("%-16s %d, %s", mnemonic, rd[0], regAddrToStr(rs1));
str = $sformatf("%-16s %d, %s", mnemonic, instr[7], regAddrToStr(rs1));
end
// cv.setupi
4'b0110: begin
str = $sformatf("%-16s %d, %d, 0x%0x", mnemonic, rd[0], imm_iz_type, rs1);
str = $sformatf("%-16s %d, %d, 0x%0x", mnemonic, instr[7], imm_iz_type, rs1);
end
// cv.setup
4'b0111: begin
regs_read.push_back('{rs1, rs1_value, 0});
str = $sformatf("%-16s %d, %s, 0x%0x", mnemonic, rd[0], regAddrToStr(rs1), imm_iz_type);
str = $sformatf("%-16s %d, %s, 0x%0x", mnemonic, instr[7], regAddrToStr(rs1), imm_iz_type);
end
endcase
end
Expand Down Expand Up @@ -861,7 +861,7 @@ class instr_trace_t;
endcase
str_sci = "";
end

// shuffle/pack
6'b110000: begin
if (instr[14:12] == 3'b111) begin
Expand Down
Loading

0 comments on commit 98568f0

Please sign in to comment.