Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rom_ctrl,dv] Override timeouts more cleanly in rom_ctrl_base_vseq
This behaviour will work more predictably and will also avoid warnings from VCS. I think that warning is saying that the behaviour with the previous code will depend on what the compiler knows about the type of a vseq. We can do a bit better in a trivial way, so let's do that instead. Without this change, the warnings look like: Warning-[MDVMO] Multiple default values in method override ../src/lowrisc_dv_rom_ctrl_env_0.1/seq_lib/rom_ctrl_base_vseq.sv, 126 rom_ctrl_env_pkg, "rom_ctrl_env_pkg_rom_ctrl_base_vseq_11_0::tl_access" The class method argument 'tl_access_timeout_ns' has different default values specified at the base ("../src/lowrisc_dv_cip_lib_0/seq_lib/cip_base_vseq.sv", 178) and the current definition. VCS resolves default arguments of functions at compile time so the current one will be used regardless of virtual override. Warning-[MDVMO] Multiple default values in method override ../src/lowrisc_dv_rom_ctrl_env_0.1/seq_lib/rom_ctrl_base_vseq.sv, 156 rom_ctrl_env_pkg, "rom_ctrl_env_pkg_rom_ctrl_base_vseq_11_0::tl_access_w_abort" The class method argument 'tl_access_timeout_ns' has different default values specified at the base ("../src/lowrisc_dv_cip_lib_0/seq_lib/cip_base_vseq.sv", 204) and the current definition. VCS resolves default arguments of functions at compile time so the current one will be used regardless of virtual override. Signed-off-by: Rupert Swarbrick <[email protected]>
- Loading branch information