-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rv_dm dv] Instantiate jtag DMI monitor and RAL, tests
This commit instantiates the JTAG DMI monitor, the DMI RAL model adds some exclusions and runs the standard CSR suite of tests on it. Signed-off-by: Srikrishna Iyer <sriyer@google.com>
- Loading branch information
Showing
10 changed files
with
222 additions
and
43 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,32 @@ | ||
// Copyright lowRISC contributors. | ||
// Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Run the JTAG DMT CSRs through our standard CSR suite via JTAG. | ||
class rv_dm_jtag_dmi_csr_vseq extends rv_dm_base_vseq; | ||
`uvm_object_utils(rv_dm_jtag_dmi_csr_vseq) | ||
`uvm_object_new | ||
|
||
constraint num_trans_c { | ||
num_trans inside {[1:2]}; | ||
} | ||
|
||
// We set these initial inputs to known values to prevent side effects that may affect these | ||
// common tests. | ||
constraint lc_hw_debug_en_c { | ||
lc_hw_debug_en == lc_ctrl_pkg::On; | ||
} | ||
constraint scanmode_c { | ||
scanmode == prim_mubi_pkg::MuBi4False; | ||
} | ||
constraint unavailable_c { | ||
unavailable == 0; | ||
} | ||
|
||
virtual task body(); | ||
// If writes to DMI SBA registers triggers an access, then ensure the response is sent. | ||
launch_tl_sba_device_seq(); | ||
run_csr_vseq_wrapper(.num_times(num_trans), .models({jtag_dmi_ral})); | ||
endtask : body | ||
|
||
endclass |
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.