data/full_repos/permissive/134057391/2020_sap/sap-1/rtl/pcounter.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/67b2fa32-0524-465b-9ca6-f154827d6cdf.xml
module pcounter(
    input clk,
    input cp,
    input clr,
    output [3:0] pc
    );

    reg [3:0] count;

    always @(posedge clk or posedge clr)
        if (clr)
            count <= 0;
        else if (cp)
            count <= pc + 1;

    assign pc = count;
    
endmodule
module pcounter(
    input clk,
    input cp,
    input clr,
    output [3:0] pc
    );


    reg [3:0] count;

    always @(posedge clk or posedge clr)
        if (clr)
            count <= 0;
        else if (cp)
            count <= pc + 1;

    assign pc = count;
    
endmodule