data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v
1: b"%Error: data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:12: Duplicate declaration of signal: 'usual'\n                                                                                : ... note: ANSI ports must have type declared with the I/O (IEEE 1800-2017 23.2.2.2)\n  wire usual, s_in, out;\n       ^~~~~\n        data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:6: ... Location of original declaration\n  input usual,\n        ^~~~~\n%Error: data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:12: Duplicate declaration of signal: 's_in'\n  wire usual, s_in, out;\n              ^~~~\n        data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:7: ... Location of original declaration\n  input s_in,\n        ^~~~\n%Error: data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:12: Duplicate declaration of signal: 'out'\n  wire usual, s_in, out;\n                    ^~~\n        data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:9: ... Location of original declaration\n  output out\n         ^~~\n%Error: data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:13: Duplicate declaration of signal: 'modo'\n  wire [1:0] modo;\n             ^~~~\n        data/full_repos/permissive/100331186/tarea4/modulos/serialOcontiguo.v:8: ... Location of original declaration\n  input [1:0] modo,\n              ^~~~\n%Error: Exiting due to 4 error(s)\n"
module serialOcontiguo(
  input usual,
  input s_in,
  input [1:0] modo,
  output out
);

  wire usual, s_in, out;
  wire [1:0] modo;

  wire outNor;
  wire outMux;
  wire [1:0] canalesMux;
  assign canalesMux[1] = s_in;
  assign canalesMux[0] = usual;

  parameter notoe = 1'b0;

  norGate modeNor(
	 .a(modo[1]),
	 .b(modo[0]),
	 .y(outNor)
);

  mux selector(
	  .s(outNor),
	  .a(canalesMux),
	  .notoe(notoe),
	  .y(outMux)
);

assign out = outMux;

endmodule
module serialOcontiguo(
  input usual,
  input s_in,
  input [1:0] modo,
  output out
);


  wire usual, s_in, out;
  wire [1:0] modo;

  wire outNor;
  wire outMux;
  wire [1:0] canalesMux;
  assign canalesMux[1] = s_in;
  assign canalesMux[0] = usual;

  parameter notoe = 1'b0;

  norGate modeNor(
	 .a(modo[1]),
	 .b(modo[0]),
	 .y(outNor)
);

  mux selector(
	  .s(outNor),
	  .a(canalesMux),
	  .notoe(notoe),
	  .y(outMux)
);

assign out = outMux;

endmodule