OpenCores
URL https://opencores.org/ocsvn/openhmc/openhmc/trunk

Subversion Repositories openhmc

[/] [openhmc/] [trunk/] [openHMC/] [rtl/] [include/] [hmc_field_functions.h] - Diff between revs 11 and 15

Show entire file | Details | Blame | View Log

Rev 11 Rev 15
Line 71... Line 71...
    begin
    begin
        cmd_type = flit[5:3];
        cmd_type = flit[5:3];
    end
    end
 endfunction
 endfunction
 
 
 function is_flow;
 function is_req_flow;
    input [127:0] flit;
    input [127:0] flit;
    begin
    begin
 
        //according to spec it should check for bits [5:2]. However, all regular requests have bit 3,4 or 5 set so we reduce logic by checking only these
        if(flit[5:3]) begin
        if(flit[5:3]) begin
            is_flow = 0;
            is_req_flow = 0;
        end else begin
        end else begin
            is_flow = 1;
            is_req_flow = 1;
 
        end
 
    end
 
 endfunction
 
 
 
 function is_rsp_flow;
 
    input [127:0] flit;
 
    begin
 
        //according to spec it should check for bits [5:2]. However, all responses have bit 5 set so we reduce logic by only checking this single bit
 
        if(flit[5]) begin
 
            is_rsp_flow = 0;
 
        end else begin
 
            is_rsp_flow = 1;
 
        end
 
    end
 
 endfunction
 
 
 
  function lng_dln_equal;
 
    input [127:0] flit;
 
    begin
 
        if(!(lng(flit)^dln(flit))) begin
 
            lng_dln_equal = 1;
 
        end else begin
 
            lng_dln_equal = 0;
        end
        end
    end
    end
 endfunction
 endfunction
 
 
 function irtry_start_retry_flag;
 function irtry_start_retry_flag;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.