data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/rsinv_test/ippackage/ippcsge/core/ippcsge_carr_sense.v
1: b"%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/rsinv_test/ippackage/ippcsge/core/ippcsge_carr_sense.v:40: Cannot find file containing module: 'fflopx'\nfflopx #(1) plrx (clk,rst_, receiving, sreceiving);\n^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/rsinv_test/ippackage/ippcsge/core,data/full_repos/permissive/530013823/fflopx\n             data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/rsinv_test/ippackage/ippcsge/core,data/full_repos/permissive/530013823/fflopx.v\n             data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/rsinv_test/ippackage/ippcsge/core,data/full_repos/permissive/530013823/fflopx.sv\n             fflopx\n             fflopx.v\n             fflopx.sv\n             obj_dir/fflopx\n             obj_dir/fflopx.v\n             obj_dir/fflopx.sv\n%Error: Exiting due to 1 error(s)\n"
module ippcsge_carr_sense
    (clk,
     rst_,
     rep_mode,
     transmitting,
     receiving,
     crs
     );



input   clk, rst_, rep_mode, transmitting, receiving;
output  crs;






parameter CARR_OFF = 1'b0;
parameter CARR_ON  = 1'b1;



reg       carr_state;
wire      sreceiving;
fflopx #(1) plrx (clk,rst_, receiving, sreceiving);
 
always @ (carr_state or rep_mode or transmitting or sreceiving)
    begin
    case (carr_state)
        CARR_OFF:
            begin
            if ((~rep_mode & transmitting) | sreceiving) 
                carr_state = CARR_ON;
            else    carr_state = CARR_OFF;          
            end
        CARR_ON:
            begin
            if ((rep_mode | ~transmitting) & ~sreceiving)
                carr_state = CARR_OFF;
            else    carr_state = CARR_ON;
            end
        default: carr_state = CARR_OFF;     
    endcase
    end

reg crs;
always @ (posedge clk or negedge rst_)
    begin
    if (~rst_)                          crs <= 1'b0;
    else if (carr_state == CARR_OFF)    crs <= 1'b0;
    else                                crs <= 1'b1;
    end

endmodule
module ippcsge_carr_sense
    (clk,
     rst_,
     rep_mode,
     transmitting,
     receiving,
     crs
     );




input   clk, rst_, rep_mode, transmitting, receiving;
output  crs;






parameter CARR_OFF = 1'b0;
parameter CARR_ON  = 1'b1;



reg       carr_state;
wire      sreceiving;
fflopx #(1) plrx (clk,rst_, receiving, sreceiving);
 
always @ (carr_state or rep_mode or transmitting or sreceiving)
    begin
    case (carr_state)
        CARR_OFF:
            begin
            if ((~rep_mode & transmitting) | sreceiving) 
                carr_state = CARR_ON;
            else    carr_state = CARR_OFF;          
            end
        CARR_ON:
            begin
            if ((rep_mode | ~transmitting) & ~sreceiving)
                carr_state = CARR_OFF;
            else    carr_state = CARR_ON;
            end
        default: carr_state = CARR_OFF;     
    endcase
    end

reg crs;
always @ (posedge clk or negedge rst_)
    begin
    if (~rst_)                          crs <= 1'b0;
    else if (carr_state == CARR_OFF)    crs <= 1'b0;
    else                                crs <= 1'b1;
    end

endmodule