From 53582e7685f8a5c3ea58d7819995e89d37b48cab Mon Sep 17 00:00:00 2001 From: sarahmazhar-impare Date: Thu, 21 Dec 2023 15:22:58 +0500 Subject: [PATCH] [usbdev] Predictor of usbdev This request contains the usbdev_TransactionManager class of the usbdev predictor (reference model). Some amendments are done to make it compatible with the scoreboard. Signed-off-by: sarahmazhar-impare --- hw/ip/usbdev/dv/env/usbdev_TransactionManager.sv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/ip/usbdev/dv/env/usbdev_TransactionManager.sv b/hw/ip/usbdev/dv/env/usbdev_TransactionManager.sv index f71d4f4f24367..e5966fc8844f4 100644 --- a/hw/ip/usbdev/dv/env/usbdev_TransactionManager.sv +++ b/hw/ip/usbdev/dv/env/usbdev_TransactionManager.sv @@ -67,7 +67,8 @@ class usbdev_TransactionManager extends uvm_object; end end 2: begin // wait for handshake Assuming HANDSHAKE packet is sent by the device as an ACK TODO - `uvm_info(get_type_name(),"ACK Handshake",UVM_LOW); + pid = 8'b0010_1101; + m_handshake_pkt.send_handshake_packet(pid); state = 0; end default: state =0; @@ -133,7 +134,8 @@ class usbdev_TransactionManager extends uvm_object; end 2: begin // TODO Simulate the reception of a HANDSHAKE packet from the device. // Currently assuming that the HANDSHAKE packet is an ACKNOWLEDGE - `uvm_info(get_type_name(),"ACK Handshake",UVM_LOW); + pid = 8'b0010_1101; + m_handshake_pkt.send_handshake_packet(pid); state = 0; end default: state =0;