[xbar/dv] Add fcov and remove unused files
1. add fcov for delay and max oustanding req
2. remove unused files
3. add device pinmux
diff --git a/hw/ip/tlul/dv/env/xbar_env_cfg.sv b/hw/ip/tlul/dv/env/xbar_env_cfg.sv
index 81f0558..cd4d9bb 100644
--- a/hw/ip/tlul/dv/env/xbar_env_cfg.sv
+++ b/hw/ip/tlul/dv/env/xbar_env_cfg.sv
@@ -40,6 +40,7 @@
host_agent_cfg[i] = tl_agent_cfg::type_id::
create($sformatf("%0s_agent_cfg", xbar_hosts[i].host_name));
host_agent_cfg[i].is_host = 1;
+ host_agent_cfg[i].max_outstanding_req = 1 << VALID_HOST_ID_WIDTH;
end
// Device TL agent cfg
num_devices = xbar_devices.size();
@@ -48,6 +49,14 @@
device_agent_cfg[i] = tl_agent_cfg::type_id::
create($sformatf("%0s_agent_cfg", xbar_devices[i].device_name));
device_agent_cfg[i].is_host = 0;
- end
+ // the max_outstanding_req depends on how many hosts can access the device
+ // device.max_outstanding_req = sum(all its hosts max_outstanding_req)
+ device_agent_cfg[i].max_outstanding_req = 0; // clear default value
+ foreach (xbar_hosts[j]) begin
+ if (xbar_devices[i].device_name inside {xbar_hosts[j].valid_devices}) begin
+ device_agent_cfg[i].max_outstanding_req += host_agent_cfg[j].max_outstanding_req;
+ end
+ end // foreach (xbar_hosts[j])
+ end // foreach (device_agent_cfg[i])
endfunction
endclass