data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v
1: b'%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:1: Cannot find include file: common.vh\n`include "common.vh" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core,data/full_repos/permissive/200650987/common.vh\n             data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core,data/full_repos/permissive/200650987/common.vh.v\n             data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core,data/full_repos/permissive/200650987/common.vh.sv\n             common.vh\n             common.vh.v\n             common.vh.sv\n             obj_dir/common.vh\n             obj_dir/common.vh.v\n             obj_dir/common.vh.sv\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:53: Define or directive not defined: \'`LDECBITS\'\n    output reg [`LDECBITS]      decoded_o,\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:53: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    output reg [`LDECBITS]      decoded_o,\n                         ^\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:55: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n    output reg [31:0]           rdata2_o,\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:56: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n    output reg [31:0]           pc_j_o,\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:57: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n    output reg [31:0]           pc_b_o,\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:60: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n    input                       exc_i,\n    ^~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:64: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n    output reg                  exc_miss_o,\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:65: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n    output reg                  exc_int_o,\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:66: syntax error, unexpected output, expecting IDENTIFIER or \'=\' or do or final\n    output reg [4:0]            exccode_o,\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:67: syntax error, unexpected input, expecting IDENTIFIER or \'=\' or do or final\n    input                       cancel_i,\n    ^~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:70: syntax error, unexpected \')\', expecting \',\' or \';\'\n);\n^\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:78: syntax error, unexpected always\n    always @(posedge clk) if (inst_data_ok && !inst_saved) inst_save <= inst_rdata;\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:89: syntax error, unexpected always\n    always @(posedge clk) begin\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:100: syntax error, unexpected IDENTIFIER\n    decoder #(.bits(6))\n    ^~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:214: Define or directive not defined: \'`LDECBITS\'\n    wire [`LDECBITS] decoded;\n          ^~~~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:214: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire [`LDECBITS] decoded;\n                   ^\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:215: Define or directive not defined: \'`DECODED_OPS\'\n    assign decoded = {`DECODED_OPS};\n                      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:217: Define or directive not defined: \'`GET_RS\'\n    assign rf_raddr1 = `GET_RS(inst);\n                       ^~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:218: Define or directive not defined: \'`GET_RT\'\n    assign rf_raddr2 = `GET_RT(inst);\n                       ^~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:240: syntax error, unexpected always\n    always @(posedge clk) begin\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:248: Define or directive not defined: \'`GET_IMM\'\n    wire [15:0] imm = `GET_IMM(inst);\n                      ^~~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:252: Define or directive not defined: \'`GET_INDEX\'\n    wire [31:0] pc_jump = {seq_pc[31:28], `GET_INDEX(inst), 2\'d0};\n                                          ^~~~~~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:254: syntax error, unexpected always\n    always @(posedge clk) begin\n    ^~~~~~\n%Error: data/full_repos/permissive/200650987/project/display/soc_up/rtl/MIRROR_SWAMP/core/decode_stage.v:281: Define or directive not defined: \'`EXC_INT\'\n            exccode_o   <= exc_i ? exccode_i : `EXC_INT;\n                                               ^~~~~~~~\n%Error: Exiting due to 25 error(s)\n'
module decoder #(
    parameter integer bits = 4
)
(
    input [bits-1:0] in,
    output [(1<<bits)-1:0] out
);

  generate
    genvar i;
    for (i=0; i<(1<<bits); i=i+1) begin
      assign out[i] = in == i;
    end
  endgenerate

endmodule
module decoder #(
    parameter integer bits = 4
)
(
    input [bits-1:0] in,
    output [(1<<bits)-1:0] out
);


  generate
    genvar i;
    for (i=0; i<(1<<bits); i=i+1) begin
      assign out[i] = in == i;
    end
  endgenerate

endmodule