data/full_repos/permissive/405912356/rv32i.v
1: b'%Error: data/full_repos/permissive/405912356/rv32i.v:4: Cannot find include file: rv32i_pc.v\n`include "rv32i_pc.v" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/405912356,data/full_repos/permissive/405912356/rv32i_pc.v\n             data/full_repos/permissive/405912356,data/full_repos/permissive/405912356/rv32i_pc.v.v\n             data/full_repos/permissive/405912356,data/full_repos/permissive/405912356/rv32i_pc.v.sv\n             rv32i_pc.v\n             rv32i_pc.v.v\n             rv32i_pc.v.sv\n             obj_dir/rv32i_pc.v\n             obj_dir/rv32i_pc.v.v\n             obj_dir/rv32i_pc.v.sv\n%Error: data/full_repos/permissive/405912356/rv32i.v:5: Cannot find include file: rv32i_pmem.v\n`include "rv32i_pmem.v" \n         ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:6: Cannot find include file: rv32i_dmem.v\n`include "rv32i_dmem.v" \n         ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:7: Cannot find include file: rv32i_decoder.v\n`include "rv32i_decoder.v" \n         ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:8: Cannot find include file: rv32i_regfile.v\n`include "rv32i_regfile.v" \n         ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:9: Cannot find include file: rv32i_selector.v\n`include "rv32i_selector.v" \n         ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:10: Cannot find include file: rv32i_alu.v\n`include "rv32i_alu.v" \n         ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:11: Cannot find include file: rv32i_comparator.v\n`include "rv32i_comparator.v" \n         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:43: syntax error, unexpected type\n    Comparator comparator(.in_a(out_0), .in_b(out_1), .type(funct3), .val_type(val_sel), .ld(ld));\n                                                       ^~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:56: Unsupported or unknown PLI call: $monitor\n        $monitor("cnt: %d .. clk: %b, reset: %b .. alu_out = %x", cnt, clk, reset, alu_out);\n        ^~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:57: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("rv32i.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/405912356/rv32i.v:58: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars(0, rv32i);\n        ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/405912356/rv32i.v:62: Unsupported: Ignoring delay on this delayed statement.\n        #1 clk = ~clk;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/405912356/rv32i.v:70: Unsupported: Ignoring delay on this delayed statement.\n        #4\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/405912356/rv32i.v:72: Unsupported: Ignoring delay on this delayed statement.\n        #150\n        ^\n%Error: Exiting due to 12 error(s), 3 warning(s)\n'
module RV32I(
    input clk,
    input reset,
    output [31: 0] alu_out
    );
    wire [31:0] adder;
    wire [31:0] inst;
    wire [3:0] alu_sel;
    wire [2:0] val_sel;
    wire [1:0] regw_type;
    wire [2:0] funct3;
    wire [4:0] rd;
    wire [4:0] rs1;
    wire [4:0] rs2;
    wire [31:0] imm;
    wire [31:0] out_0;
    wire [31:0] out_1;
    wire [31:0] alu_in1;
    wire [31:0] alu_in2;
    wire  ld;
    wire [31:0] loaded;

    ProgramCounter pc(.clk(clk), .reset(reset), .in(alu_out), .ld(ld), .out(adder));
    ProgramMemory pmem(.address(adder), .data(inst));
    DataMemory dmem(.clk(clk), .addr(alu_out), .in(out_1), .mode(funct3), .write(val_sel == 3'b110 ? 1'b1 : 1'b0), .out(loaded));
    Decoder dec(.inst(inst), .alu_sel(alu_sel), .val_sel(val_sel), .regw_type(regw_type), .funct3(funct3), .imm(imm), .rd(rd), .rs1(rs1), .rs2(rs2));
    RegisterFile rf(.clk(clk), .rst(reset), .reg_r0(rs1), .reg_r1(rs2), .reg_w0(rd), .in((regw_type != 2'b10) ? ((regw_type == 2'b01) ? loaded : alu_out) : adder+4), .write(1'b1), .out_0(out_0), .out_1(out_1));
    Selector selector(.rs1(out_0), .rs2(out_1), .imm(imm), .pc(adder), .val_sel(val_sel), .out_a(alu_in1), .out_b(alu_in2));
    Alu alu(.sel(alu_sel), .in_a(alu_in1), .in_b(alu_in2), .out(alu_out));
    Comparator comparator(.in_a(out_0), .in_b(out_1), .type(funct3), .val_type(val_sel), .ld(ld));
endmodule
module RV32I(
    input clk,
    input reset,
    output [31: 0] alu_out
    );

    wire [31:0] adder;
    wire [31:0] inst;
    wire [3:0] alu_sel;
    wire [2:0] val_sel;
    wire [1:0] regw_type;
    wire [2:0] funct3;
    wire [4:0] rd;
    wire [4:0] rs1;
    wire [4:0] rs2;
    wire [31:0] imm;
    wire [31:0] out_0;
    wire [31:0] out_1;
    wire [31:0] alu_in1;
    wire [31:0] alu_in2;
    wire  ld;
    wire [31:0] loaded;

    ProgramCounter pc(.clk(clk), .reset(reset), .in(alu_out), .ld(ld), .out(adder));
    ProgramMemory pmem(.address(adder), .data(inst));
    DataMemory dmem(.clk(clk), .addr(alu_out), .in(out_1), .mode(funct3), .write(val_sel == 3'b110 ? 1'b1 : 1'b0), .out(loaded));
    Decoder dec(.inst(inst), .alu_sel(alu_sel), .val_sel(val_sel), .regw_type(regw_type), .funct3(funct3), .imm(imm), .rd(rd), .rs1(rs1), .rs2(rs2));
    RegisterFile rf(.clk(clk), .rst(reset), .reg_r0(rs1), .reg_r1(rs2), .reg_w0(rd), .in((regw_type != 2'b10) ? ((regw_type == 2'b01) ? loaded : alu_out) : adder+4), .write(1'b1), .out_0(out_0), .out_1(out_1));
    Selector selector(.rs1(out_0), .rs2(out_1), .imm(imm), .pc(adder), .val_sel(val_sel), .out_a(alu_in1), .out_b(alu_in2));
    Alu alu(.sel(alu_sel), .in_a(alu_in1), .in_b(alu_in2), .out(alu_out));
    Comparator comparator(.in_a(out_0), .in_b(out_1), .type(funct3), .val_type(val_sel), .ld(ld));
endmodule