Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usbdev] Predictor of usbdev #20703

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hw/ip/usbdev/dv/env/usbdev_TransactionManager.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sarahmazhar-impare Is this pid is the same pid as in usb20_item.sv ?

Copy link
Contributor Author

@sarahmazhar-impare sarahmazhar-impare Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdonjdon Yes it is same as the usb20_item.sv pid for Ack type handshake

m_handshake_pkt.send_handshake_packet(pid);
state = 0;
end
default: state =0;
Expand Down Expand Up @@ -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;
Expand Down
Loading