data/full_repos/permissive/2084115/rtl/rtos/jelly2_rtos_queue.sv
 line:16: before: "PRIORITY_ORDER"
1: b"%Error: data/full_repos/permissive/2084115/rtl/rtos/jelly2_rtos_queue.sv:42: Cannot find file containing module: 'jelly2_rtos_queue_priority'\n        jelly2_rtos_queue_priority\n        ^~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/2084115/rtl/rtos,data/full_repos/permissive/2084115/jelly2_rtos_queue_priority\n             data/full_repos/permissive/2084115/rtl/rtos,data/full_repos/permissive/2084115/jelly2_rtos_queue_priority.v\n             data/full_repos/permissive/2084115/rtl/rtos,data/full_repos/permissive/2084115/jelly2_rtos_queue_priority.sv\n             jelly2_rtos_queue_priority\n             jelly2_rtos_queue_priority.v\n             jelly2_rtos_queue_priority.sv\n             obj_dir/jelly2_rtos_queue_priority\n             obj_dir/jelly2_rtos_queue_priority.v\n             obj_dir/jelly2_rtos_queue_priority.sv\n%Error: Exiting due to 1 error(s)\n"
module jelly2_rtos_queue
        #(
            parameter bit   PRIORITY_ORDER = 1'b1,
            parameter int   QUE_SIZE       = 16,
            parameter int   ID_WIDTH       = 4,
            parameter int   PRI_WIDTH      = 4,
            parameter int   COUNT_WIDTH    = $clog2(QUE_SIZE+1)
        )
        (
            input   wire                        reset,
            input   wire                        clk,
            input   wire                        cke,

            input   wire    [ID_WIDTH-1:0]      add_id,
            input   wire    [PRI_WIDTH-1:0]     add_pri,
            input   wire                        add_valid,

            input   wire    [ID_WIDTH-1:0]      remove_id,
            input   wire                        remove_valid,

            output  wire    [ID_WIDTH-1:0]      top_id,
            output  wire                        top_valid,

            output  reg     [COUNT_WIDTH-1:0]   count
        );

    generate
    if ( PRIORITY_ORDER ) begin : blk_priority
        jelly2_rtos_queue_priority
                #(
                    .QUE_SIZE       (QUE_SIZE),
                    .ID_WIDTH       (ID_WIDTH),
                    .PRI_WIDTH      (PRI_WIDTH),
                    .COUNT_WIDTH    (COUNT_WIDTH)
                )
            i_rtos_queue_priority
                (
                    .*,
                    .top_pri        ()
                );
    end
    else begin : blk_fifo
        jelly2_rtos_queue_fifo
                #(
                    .QUE_SIZE       (QUE_SIZE),
                    .ID_WIDTH       (ID_WIDTH),
                    .COUNT_WIDTH    (COUNT_WIDTH)
                )
            i_rtos_queue_fifo
                (
                    .*
                );
    end
    endgenerate

endmodule
module jelly2_rtos_queue
        #(
            parameter bit   PRIORITY_ORDER = 1'b1,
            parameter int   QUE_SIZE       = 16,
            parameter int   ID_WIDTH       = 4,
            parameter int   PRI_WIDTH      = 4,
            parameter int   COUNT_WIDTH    = $clog2(QUE_SIZE+1)
        )
        (
            input   wire                        reset,
            input   wire                        clk,
            input   wire                        cke,

            input   wire    [ID_WIDTH-1:0]      add_id,
            input   wire    [PRI_WIDTH-1:0]     add_pri,
            input   wire                        add_valid,

            input   wire    [ID_WIDTH-1:0]      remove_id,
            input   wire                        remove_valid,

            output  wire    [ID_WIDTH-1:0]      top_id,
            output  wire                        top_valid,

            output  reg     [COUNT_WIDTH-1:0]   count
        );


    generate
    if ( PRIORITY_ORDER ) begin : blk_priority
        jelly2_rtos_queue_priority
                #(
                    .QUE_SIZE       (QUE_SIZE),
                    .ID_WIDTH       (ID_WIDTH),
                    .PRI_WIDTH      (PRI_WIDTH),
                    .COUNT_WIDTH    (COUNT_WIDTH)
                )
            i_rtos_queue_priority
                (
                    .*,
                    .top_pri        ()
                );
    end
    else begin : blk_fifo
        jelly2_rtos_queue_fifo
                #(
                    .QUE_SIZE       (QUE_SIZE),
                    .ID_WIDTH       (ID_WIDTH),
                    .COUNT_WIDTH    (COUNT_WIDTH)
                )
            i_rtos_queue_fifo
                (
                    .*
                );
    end
    endgenerate

endmodule