@@ -53,16 +53,13 @@ interface clkmgr_if (
5353 prim_mubi_pkg::mubi4_t all_clk_byp_ack;
5454
5555 prim_mubi_pkg::mubi4_t div_step_down_req;
56+ prim_mubi_pkg::mubi4_t calib_rdy;
57+ prim_mubi_pkg::mubi4_t hi_speed_sel;
5658
5759% endif
5860 prim_mubi_pkg::mubi4_t jitter_en_o;
5961 clkmgr_pkg::clkmgr_out_t clocks_o;
6062
61- prim_mubi_pkg::mubi4_t calib_rdy;
62- % if ext_clk_bypass:
63- prim_mubi_pkg::mubi4_t hi_speed_sel;
64- % endif
65-
6663 // Internal DUT signals.
6764 // ICEBOX(lowrisc/opentitan#18379): This is a core env component (i.e. reusable entity) that
6865 // makes hierarchical references into the DUT. A better strategy would be to bind this interface
@@ -137,9 +134,6 @@ ${spc}fast: `CLKMGR_HIER.u_${src}_meas.u_meas.fast_o};
137134 always_comb ${ src} _timeout_err = `CLKMGR_HIER.u_${ src} _meas.timeout_err_o;
138135
139136% endfor
140- function automatic void update_calib_rdy(prim_mubi_pkg::mubi4_t value);
141- calib_rdy = value;
142- endfunction
143137
144138 function automatic void update_idle(mubi_hintables_t value);
145139 idle_i = value;
@@ -158,6 +152,10 @@ ${spc}fast: `CLKMGR_HIER.u_${src}_meas.u_meas.fast_o};
158152 endfunction
159153
160154% if ext_clk_bypass:
155+ function automatic void update_calib_rdy(prim_mubi_pkg::mubi4_t value);
156+ calib_rdy = value;
157+ endfunction
158+
161159 function automatic void update_lc_debug_en(lc_ctrl_pkg::lc_tx_t value);
162160 lc_hw_debug_en_i = value;
163161 endfunction
@@ -200,7 +198,9 @@ ${spc}fast: `CLKMGR_HIER.u_${src}_meas.u_meas.fast_o};
200198 % endif
201199 prim_mubi_pkg::mubi4_t calib_rdy = prim_mubi_pkg::MuBi4True);
202200 `uvm_info("clkmgr_if", "In clkmgr_if init", UVM_MEDIUM)
201+ % if ext_clk_bypass:
203202 update_calib_rdy(calib_rdy);
203+ % endif
204204 update_idle(idle);
205205 % if ext_clk_bypass:
206206 update_lc_clk_byp_req(lc_clk_byp_req);
@@ -280,8 +280,8 @@ ${spc}fast: `CLKMGR_HIER.u_${src}_meas.u_meas.fast_o};
280280
281281% endif
282282 clocking clk_cb @(posedge clk);
283- input calib_rdy;
284283 % if ext_clk_bypass:
284+ input calib_rdy;
285285 input extclk_ctrl_csr_sel;
286286 input extclk_ctrl_csr_step_down;
287287 input lc_hw_debug_en_i;
0 commit comments