data/full_repos/permissive/119715647/sim/gameFunct/SpeedyLevels.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/232b30ea-c6d5-4c7d-a8bf-5c3085262db7.xml
module SpeedyLevels(clk, stacked, shorterTime);
  input clk;
  input stacked;
  output [7:0] shorterTime;
  reg [7:0] tempTime;
  reg [7:0] setupTime;
  reg state;

  always @ (posedge clk) begin
    case (state)
      1: begin
        if(stacked == 1) begin
          tempTime <= tempTime >> 1;
        end
      end
      default: begin
        tempTime <= 200;
        state <= 1;
      end
    endcase
  end

  assign shorterTime = tempTime;
endmodule
module SpeedyLevels(clk, stacked, shorterTime);

  input clk;
  input stacked;
  output [7:0] shorterTime;
  reg [7:0] tempTime;
  reg [7:0] setupTime;
  reg state;

  always @ (posedge clk) begin
    case (state)
      1: begin
        if(stacked == 1) begin
          tempTime <= tempTime >> 1;
        end
      end
      default: begin
        tempTime <= 200;
        state <= 1;
      end
    endcase
  end

  assign shorterTime = tempTime;
endmodule