data/full_repos/permissive/172538466/hw/src/sim0/listen_gpio.v
None: at end of input
1: b'%Error: data/full_repos/permissive/172538466/hw/src/sim0/listen_gpio.v:1: Cannot find include file: defs.vh\n`include "defs.vh" \n         ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/172538466/hw/src/sim0,data/full_repos/permissive/172538466/defs.vh\n             data/full_repos/permissive/172538466/hw/src/sim0,data/full_repos/permissive/172538466/defs.vh.v\n             data/full_repos/permissive/172538466/hw/src/sim0,data/full_repos/permissive/172538466/defs.vh.sv\n             defs.vh\n             defs.vh.v\n             defs.vh.sv\n             obj_dir/defs.vh\n             obj_dir/defs.vh.v\n             obj_dir/defs.vh.sv\n%Error: data/full_repos/permissive/172538466/hw/src/sim0/listen_gpio.v:2: Cannot find include file: sim0.vh\n`include "sim0.vh" \n         ^~~~~~~~~\n%Error: Exiting due to 2 error(s)\n'
module listen_gpio
  (
   input       CLK_I,
   input       RST_I,

   input [7:0] IN_I,
   input [7:0] OUT_I,
   input [7:0] DIR_I
   );

   reg [7:0]   old_in;
   reg [7:0]   old_out;
   reg [7:0]   old_dir;

   always @(CLK_I) begin
     old_in <= IN_I;
     old_out <= OUT_I;
     old_dir <= DIR_I;

     if(old_in != IN_I)
       $write("GPIO input updated: %x -> %x\n", old_in, IN_I);

     if(old_out != OUT_I)
       $write("GPIO output updated: %x -> %x\n", old_out, OUT_I);

     if(old_dir != DIR_I)
       $write("GPIO direction updated: %x -> %x\n", old_dir, DIR_I);
   end

endmodule
module listen_gpio
  (
   input       CLK_I,
   input       RST_I,

   input [7:0] IN_I,
   input [7:0] OUT_I,
   input [7:0] DIR_I
   );


   reg [7:0]   old_in;
   reg [7:0]   old_out;
   reg [7:0]   old_dir;

   always @(CLK_I) begin
     old_in <= IN_I;
     old_out <= OUT_I;
     old_dir <= DIR_I;

     if(old_in != IN_I)
       $write("GPIO input updated: %x -> %x\n", old_in, IN_I);

     if(old_out != OUT_I)
       $write("GPIO output updated: %x -> %x\n", old_out, OUT_I);

     if(old_dir != DIR_I)
       $write("GPIO direction updated: %x -> %x\n", old_dir, DIR_I);
   end

endmodule