Skip to content

Commit

Permalink
[top] Regenerate top after removing DMA interrupt
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Schilling <[email protected]>
  • Loading branch information
Razer6 committed Aug 5, 2024
1 parent 83fc636 commit 936c7d9
Show file tree
Hide file tree
Showing 12 changed files with 374 additions and 509 deletions.
6 changes: 0 additions & 6 deletions hw/top_darjeeling/data/autogen/top_darjeeling.gen.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -15871,12 +15871,6 @@
type: interrupt
module_name: dma
}
{
name: dma_dma_memory_buffer_limit
width: 1
type: interrupt
module_name: dma
}
{
name: mbx0_mbx_ready
width: 1
Expand Down
10 changes: 1 addition & 9 deletions hw/top_darjeeling/ip_autogen/rv_plic/data/rv_plic.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{ name: "NumSrc",
desc: "Number of interrupt sources",
type: "int",
default: "163",
default: "162",
local: "true"
},
{ name: "NumTarget",
Expand Down Expand Up @@ -1394,14 +1394,6 @@
{ bits: "1:0" }
],
}
{ name: "PRIO162",
desc: "Interrupt Source 162 Priority",
swaccess: "rw",
hwaccess: "hro",
fields: [
{ bits: "1:0" }
],
}
{ skipto: "0x00001000" }
{ multireg: {
name: "IP",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
instance_name: top_darjeeling_rv_plic
param_values:
{
src: 163
src: 162
target: 1
prio: 3
top_name: darjeeling
Expand Down
5 changes: 2 additions & 3 deletions hw/top_darjeeling/ip_autogen/rv_plic/rtl/rv_plic.sv
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,11 @@ module rv_plic import rv_plic_reg_pkg::*; #(
assign prio[159] = reg2hw.prio159.q;
assign prio[160] = reg2hw.prio160.q;
assign prio[161] = reg2hw.prio161.q;
assign prio[162] = reg2hw.prio162.q;

//////////////////////
// Interrupt Enable //
//////////////////////
for (genvar s = 0; s < 163; s++) begin : gen_ie0
for (genvar s = 0; s < 162; s++) begin : gen_ie0
assign ie[0][s] = reg2hw.ie0[s].q;
end

Expand All @@ -291,7 +290,7 @@ module rv_plic import rv_plic_reg_pkg::*; #(
////////
// IP //
////////
for (genvar s = 0; s < 163; s++) begin : gen_ip
for (genvar s = 0; s < 162; s++) begin : gen_ip
assign hw2reg.ip[s].de = 1'b1; // Always write
assign hw2reg.ip[s].d = ip[s];
end
Expand Down
372 changes: 182 additions & 190 deletions hw/top_darjeeling/ip_autogen/rv_plic/rtl/rv_plic_reg_pkg.sv

Large diffs are not rendered by default.

Loading

0 comments on commit 936c7d9

Please sign in to comment.