Advertisement
Sidsh

function cache rajni

Dec 1st, 2024
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function automatic void PutSnoopResult(
  2.     input logic [31:0] Address,        // Address for the snoop result
  3.     input snoop_result_e SnoopResult, // Snoop result value
  4.     input bit NormalMode              // Debug mode flag
  5. );
  6.     if (NormalMode) begin
  7.         $display("SnoopResult: Address = %h, SnoopResult = %0d", Address, SnoopResult);
  8.     end
  9. endfunction
  10.  
  11.  
  12. function automatic void MessageToCache(
  13.     input l2_l1_message_e Message,    // Message type (e.g., `GETLINE`, `SENDLINE`)
  14.     input logic [31:0] Address,       // Address related to the message
  15.     input bit NormalMode              // Debug mode flag
  16. );
  17.     if (NormalMode) begin
  18.         $display("L2: Message = %0d, Address = %h", Message, Address);
  19.     end
  20. endfunction
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement