Skip to content

Commit

Permalink
Fix debug module addresses
Browse files Browse the repository at this point in the history
* Derive from periph_bus_defines
* dm_exception_addr_i was set incorrectly (1a11_080c instead of 1a11_0808)
  • Loading branch information
bluewww committed Apr 15, 2022
1 parent ee89f6a commit bdd8c8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtl/fc/fc_subsystem.sv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.

`include "periph_bus_defines.sv"

module fc_subsystem import cv32e40p_apu_core_pkg::*; #(
parameter CORE_TYPE = 0,
parameter USE_XPULP = 1,
Expand Down Expand Up @@ -169,9 +171,9 @@ module fc_subsystem import cv32e40p_apu_core_pkg::*; #(
.scan_cg_en_i (test_en_i),
.boot_addr_i (boot_addr),
.mtvec_addr_i (32'h0),
.dm_halt_addr_i (32'h1A110800),
.dm_halt_addr_i (`DEBUG_START_ADDR + dm::HaltAddress[31:0]),
.hart_id_i (hart_id),
.dm_exception_addr_i (32'h1A11080C),
.dm_exception_addr_i (`DEBUG_START_ADDR + dm::ExceptionAddress[31:0]),

// Instruction memory interface
.instr_req_o (obi_instr_req),
Expand Down

0 comments on commit bdd8c8c

Please sign in to comment.