data/full_repos/permissive/107057345/Morse Encoder/led_fsm.v
1: b'%Error: Cannot find file containing module: Encoder,data/full_repos/permissive/107057345\n        ... Looked in:\n             data/full_repos/permissive/107057345/Morse/Encoder,data/full_repos/permissive/107057345\n             data/full_repos/permissive/107057345/Morse/Encoder,data/full_repos/permissive/107057345.v\n             data/full_repos/permissive/107057345/Morse/Encoder,data/full_repos/permissive/107057345.sv\n             Encoder,data/full_repos/permissive/107057345\n             Encoder,data/full_repos/permissive/107057345.v\n             Encoder,data/full_repos/permissive/107057345.sv\n             obj_dir/Encoder,data/full_repos/permissive/107057345\n             obj_dir/Encoder,data/full_repos/permissive/107057345.v\n             obj_dir/Encoder,data/full_repos/permissive/107057345.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/107057345/Morse\n%Error: Cannot find file containing module: Encoder/led_fsm.v\n%Error: Exiting due to 3 error(s)\n'
module led_fsm(
	       input  sym_strt, symbol,
	       output led_drv, sym_done,
	       input  reset, clock
	       );



   parameter START=3'b000;
   parameter DASH0 = 3'b001;
   parameter DASH1 = 3'b010;
   parameter DASH2 = 3'b011;
   parameter DOT = 3'b100;





   reg [2:0] 	     led_st;
 
   always @(posedge clock) begin
      led_st <= led_nx_st;
   end





   reg [2:0]  led_nx_st;
   reg 	      led_drv, sym_done;
   
   always @(*) begin
      if (reset) begin
        led_nx_st = START;
      end
      else begin
	 case (led_st)
	   START: begin
         if(~sym_strt) begin
             led_nx_st = START;
         	 led_drv = 1'b0;
             sym_done = 1'b0;
         end
         else begin
           if(symbol) begin
             led_nx_st = DASH0;
             led_drv = 1'b1;
             sym_done = 1'b0;
           end
           else begin
             led_nx_st = DOT;
             led_drv = 1'b1;
             sym_done = 1'b0;
           end
         end
	   end
       DASH0: begin
          	 led_nx_st = DASH1;
             led_drv = 1'b1;
             sym_done = 1'b0;
       end
       DASH1: begin
          	 led_nx_st = DASH2;
             led_drv = 1'b1;
             sym_done = 1'b0;
       end
       DASH2: begin
          	 led_nx_st = START;
             led_drv = 1'b0;
             sym_done = 1'b1;
       end
       DOT: begin
          	 led_nx_st = START;
             led_drv = 1'b0;
             sym_done = 1'b1;
       end
       
	   default: begin

	   end
	 endcase
      end
   end
endmodule
module led_fsm(
	       input  sym_strt, symbol,
	       output led_drv, sym_done,
	       input  reset, clock
	       );




   parameter START=3'b000;
   parameter DASH0 = 3'b001;
   parameter DASH1 = 3'b010;
   parameter DASH2 = 3'b011;
   parameter DOT = 3'b100;





   reg [2:0] 	     led_st;
 
   always @(posedge clock) begin
      led_st <= led_nx_st;
   end





   reg [2:0]  led_nx_st;
   reg 	      led_drv, sym_done;
   
   always @(*) begin
      if (reset) begin
        led_nx_st = START;
      end
      else begin
	 case (led_st)
	   START: begin
         if(~sym_strt) begin
             led_nx_st = START;
         	 led_drv = 1'b0;
             sym_done = 1'b0;
         end
         else begin
           if(symbol) begin
             led_nx_st = DASH0;
             led_drv = 1'b1;
             sym_done = 1'b0;
           end
           else begin
             led_nx_st = DOT;
             led_drv = 1'b1;
             sym_done = 1'b0;
           end
         end
	   end
       DASH0: begin
          	 led_nx_st = DASH1;
             led_drv = 1'b1;
             sym_done = 1'b0;
       end
       DASH1: begin
          	 led_nx_st = DASH2;
             led_drv = 1'b1;
             sym_done = 1'b0;
       end
       DASH2: begin
          	 led_nx_st = START;
             led_drv = 1'b0;
             sym_done = 1'b1;
       end
       DOT: begin
          	 led_nx_st = START;
             led_drv = 1'b0;
             sym_done = 1'b1;
       end
       
	   default: begin

	   end
	 endcase
      end
   end
endmodule