data/full_repos/permissive/157696705/brainfuck computer/loop_stack.v
1: b'%Error: Cannot find file containing module: computer,data/full_repos/permissive/157696705\n        ... Looked in:\n             data/full_repos/permissive/157696705/brainfuck/computer,data/full_repos/permissive/157696705\n             data/full_repos/permissive/157696705/brainfuck/computer,data/full_repos/permissive/157696705.v\n             data/full_repos/permissive/157696705/brainfuck/computer,data/full_repos/permissive/157696705.sv\n             computer,data/full_repos/permissive/157696705\n             computer,data/full_repos/permissive/157696705.v\n             computer,data/full_repos/permissive/157696705.sv\n             obj_dir/computer,data/full_repos/permissive/157696705\n             obj_dir/computer,data/full_repos/permissive/157696705.v\n             obj_dir/computer,data/full_repos/permissive/157696705.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/157696705/brainfuck\n%Error: Cannot find file containing module: computer/loop_stack.v\n%Error: Exiting due to 3 error(s)\n'
module loop_stack(
    input               push, pop,
    input       [9:0]   address_in,
    output  reg [9:0]   address_out
);

reg [9:0]  stack[31:0];
reg [4:0]   stack_pointer = 5'b0_0000;

always @(*)
begin
  if(push & !pop)
  begin
    stack[stack_pointer[4:0]] = address_in;
    stack_pointer[4:0] = stack_pointer[4:0] + 5'b0_0001;
  end
  else if(!push & pop)
  begin
    stack[stack_pointer[4:0]][9:0] = 10'b00_0000_0000;
    stack_pointer[4:0] = stack_pointer[4:0] - 5'b0_0001;
    address_out = stack[stack_pointer[4:0]];
  end
end
endmodule
module loop_stack(
    input               push, pop,
    input       [9:0]   address_in,
    output  reg [9:0]   address_out
);


reg [9:0]  stack[31:0];
reg [4:0]   stack_pointer = 5'b0_0000;

always @(*)
begin
  if(push & !pop)
  begin
    stack[stack_pointer[4:0]] = address_in;
    stack_pointer[4:0] = stack_pointer[4:0] + 5'b0_0001;
  end
  else if(!push & pop)
  begin
    stack[stack_pointer[4:0]][9:0] = 10'b00_0000_0000;
    stack_pointer[4:0] = stack_pointer[4:0] - 5'b0_0001;
    address_out = stack[stack_pointer[4:0]];
  end
end
endmodule