-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hw,rv_dm,rtl] Convert DMI to real TL-UL interface
Change DMI implementation to TL-UL, and rework rv_dm to match Ensure rv_dm continues to respond with zeroes when the DM is not present / inaccessible. Co-authored-by: Michael Schaffner <[email protected]> Co-authored-by: Alexander Williams <[email protected]> Signed-off-by: Robert Schilling <[email protected]>
- Loading branch information
1 parent
f4945ae
commit b8596ff
Showing
17 changed files
with
224 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright lowRISC contributors (OpenTitan project). | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
// Register Top module auto-generated by `reggen` | ||
|
||
`include "prim_assert.sv" | ||
|
||
module rv_dm_dbg_reg_top ( | ||
input clk_i, | ||
input rst_ni, | ||
input tlul_pkg::tl_h2d_t tl_i, | ||
output tlul_pkg::tl_d2h_t tl_o, | ||
|
||
// Output port for window | ||
output tlul_pkg::tl_h2d_t tl_win_o, | ||
input tlul_pkg::tl_d2h_t tl_win_i, | ||
|
||
// To HW | ||
|
||
// Integrity check errors | ||
output logic intg_err_o | ||
); | ||
|
||
import rv_dm_reg_pkg::* ; | ||
|
||
|
||
// Add an unloaded flop to make use of clock / reset | ||
// This is done to specifically address lint complaints of unused clocks/resets | ||
// Since the flop is unloaded it will be removed during synthesis | ||
logic unused_reg; | ||
always_ff @(posedge clk_i or negedge rst_ni) begin | ||
if (!rst_ni) begin | ||
unused_reg <= '0; | ||
end else begin | ||
unused_reg <= tl_i.a_valid; | ||
end | ||
end | ||
|
||
|
||
|
||
// Since there are no registers in this block, commands are routed through to windows which | ||
// can report their own integrity errors. | ||
assign intg_err_o = 1'b0; | ||
|
||
// outgoing integrity generation | ||
tlul_pkg::tl_d2h_t tl_o_pre; | ||
tlul_rsp_intg_gen #( | ||
.EnableRspIntgGen(1), | ||
.EnableDataIntgGen(0) | ||
) u_rsp_intg_gen ( | ||
.tl_i(tl_o_pre), | ||
.tl_o(tl_o) | ||
); | ||
|
||
assign tl_win_o = tl_i; | ||
assign tl_o_pre = tl_win_i; | ||
|
||
// Unused signal tieoff | ||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.