mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 13:27:10 -04:00
Simplify timestamps in ICache tests
This commit is contained in:
parent
8c11bd780c
commit
ec6e08d1cf
2 changed files with 8 additions and 0 deletions
2
dv/uvm/icache/dv/env/ibex_icache_env.sv
vendored
2
dv/uvm/icache/dv/env/ibex_icache_env.sv
vendored
|
@ -32,6 +32,8 @@ class ibex_icache_env extends dv_base_env #(
|
|||
hb_objection = new("hb_objection");
|
||||
heartbeat = new("heartbeat", this, hb_objection);
|
||||
hb_event = new("hb_event");
|
||||
|
||||
cfg.clk_rst_vif.set_sole_clock();
|
||||
endfunction
|
||||
|
||||
function void connect_phase(uvm_phase phase);
|
||||
|
|
6
dv/uvm/icache/dv/env/ibex_icache_env_cfg.sv
vendored
6
dv/uvm/icache/dv/env/ibex_icache_env_cfg.sv
vendored
|
@ -8,6 +8,12 @@ class ibex_icache_env_cfg extends dv_base_env_cfg;
|
|||
rand ibex_icache_core_agent_cfg core_agent_cfg;
|
||||
rand ibex_icache_mem_agent_cfg mem_agent_cfg;
|
||||
|
||||
// Force the clock frequency to 50MHz. The clock frequency doesn't really matter for ICache
|
||||
// testing and 50MHz dumped waves are nice to read because clock edges are multiples of 10ns.
|
||||
constraint clk_freq_50_c {
|
||||
clk_freq_mhz == ClkFreq50Mhz;
|
||||
}
|
||||
|
||||
`uvm_object_utils_begin(ibex_icache_env_cfg)
|
||||
`uvm_field_object(core_agent_cfg, UVM_DEFAULT)
|
||||
`uvm_field_object(mem_agent_cfg, UVM_DEFAULT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue