Skip to content

Commit

Permalink
[usbdev] Predictor of usbdev
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sarahmazhar-impare committed Dec 21, 2023
1 parent 143098e commit 53582e7
Showing 1 changed file with 4 additions and 2 deletions.
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;
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

0 comments on commit 53582e7

Please sign in to comment.