Files
CGA-bench/data/HDLBits/HDLBits_data_RTL_sonnet35_20.jsonl

157 lines
1.5 MiB
Plaintext
Raw Normal View History

2026-05-22 10:02:42 +08:00
{"task_id": "mux2to1v", "llmgen_RTL": ["module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n \n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput [99:0] a,\n\tinput [99:0] b,\n\tinput sel,\n\toutput [99:0] out\n);\n\n assign out = sel ? b : a;\n\nendmodule"]}
{"task_id": "m2014_q6b", "llmgen_RTL": ["module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case ({y, w})\n 4'b0000: Y2 = 0;\n 4'b0001: Y2 = 0;\n 4'b0010: Y2 = 0;\n 4'b0011: Y2 = 1;\n 4'b0100: Y2 = 0;\n 4'b0101: Y2 = 1;\n 4'b0110: Y2 = 1;\n 4'b0111: Y2 = 0;\n 4'b1000: Y2 = 1;\n 4'b1001: Y2 = 1;\n 4'b1010: Y2 = 0;\n 4'b1011: Y2 = 1;\n default: Y2 = 0;\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case (y)\n 3'b000: Y2 = w ? 1'b0 : 1'b0; // A\n 3'b001: Y2 = w ? 1'b1 : 1'b0; // B\n 3'b010: Y2 = w ? 1'b1 : 1'b0; // C\n 3'b011: Y2 = w ? 1'b0 : 1'b1; // D\n 3'b100: Y2 = w ? 1'b1 : 1'b1; // E\n 3'b101: Y2 = w ? 1'b1 : 1'b0; // F\n default: Y2 = 1'b0;\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case (y)\n 3'b000: Y2 = w ? 1'b0 : 1'b0; // State A\n 3'b001: Y2 = w ? 1'b1 : 1'b0; // State B\n 3'b010: Y2 = w ? 1'b1 : 1'b1; // State C\n 3'b011: Y2 = w ? 1'b0 : 1'b1; // State D\n 3'b100: Y2 = w ? 1'b1 : 1'b1; // State E\n 3'b101: Y2 = w ? 1'b1 : 1'b0; // State F\n default: Y2 = 1'b0;\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case (y)\n 3'b000: Y2 = w ? 1'b0 : 1'b0; // A\n 3'b001: Y2 = w ? 1'b1 : 1'b0; // B\n 3'b010: Y2 = w ? 1'b1 : 1'b0; // C\n 3'b011: Y2 = w ? 1'b0 : 1'b1; // D\n 3'b100: Y2 = w ? 1'b1 : 1'b1; // E\n 3'b101: Y2 = w ? 1'b1 : 1'b0; // F\n default: Y2 = 1'b0;\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case (y)\n 3'b000: Y2 = 1'b0; // State A\n 3'b001: Y2 = w; // State B\n 3'b010: Y2 = w; // State C\n 3'b011: Y2 = 1'b1; // State D\n 3'b100: Y2 = 1'b1; // State E\n 3'b101: Y2 = 1'b0; // State F\n default: Y2 = 1'b0; // Default case\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case ({y, w})\n 4'b0000: Y2 = 0; // A->B\n 4'b0001: Y2 = 0; // A->A\n 4'b0010: Y2 = 0; // B->C\n 4'b0011: Y2 = 1; // B->D\n 4'b0100: Y2 = 1; // C->E\n 4'b0101: Y2 = 1; // C->D\n 4'b0110: Y2 = 1; // D->F\n 4'b0111: Y2 = 0; // D->A\n 4'b1000: Y2 = 1; // E->E\n 4'b1001: Y2 = 1; // E->D\n 4'b1010: Y2 = 0; // F->C\n 4'b1011: Y2 = 1; // F->D\n default: Y2 = 0; // Undefined states\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n always @(*) begin\n case ({y, w})\n 4'b0000: Y2 = 0; // A->B\n 4'b0001: Y2 = 0; // A->A\n 4'b0010: Y2 = 0; // B->C\n 4'b0011: Y2 = 1; // B->D\n 4'b0100: Y2 = 1; // C->E\n 4'b0101: Y2 = 1; // C->D\n 4'b0110: Y2 = 1; // D->F\n 4'b0111: Y2 = 0; // D->A\n 4'b1000: Y2 = 1; // E->E\n 4'b1001: Y2 = 1; // E->D\n 4'b1010: Y2 = 0; // F->C\n 4'b1011: Y2 = 1; // F->D\n default: Y2 = 0; // Default case\n endcase\n end\n\nendmodule", "module top_module(\n\tinput [3:1] y,\n\tinput w,\n\toutput reg Y2);\n\n\talways @(*) begin\n\t\tcase ({y, w})\n\t\t\t4'b0000: Y2 = 0;\n\t\t\t4'b0001: Y2 = 0;\n\t\t\t4'b0010: Y2 = 0;\n\t\t\t4'b0011: Y2 = 1;\n\t\t\t4'b0100: Y2 = 0;\n\t\t\t4'b0101:
{"task_id": "ringer", "llmgen_RTL": ["module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule", "module top_module(\n\tinput ring, \n\tinput vibrate_mode,\n\toutput ringer,\n\toutput motor\n);\n\n assign motor = ring & vibrate_mode;\n assign ringer = ring & ~vibrate_mode;\n\nendmodule"]}
{"task_id": "alwaysblock1", "llmgen_RTL": ["module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n\tassign out_assign = a & b;\n\n\talways @(*) begin\n\t\tout_alwaysblock = a & b;\n\tend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n assign out_assign = a & b;\n\n always @(*) begin\n out_alwaysblock = a & b;\n end\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n assign out_assign = a & b;\n\n always @(*) begin\n out_alwaysblock = a & b;\n end\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n\tassign out_assign = a & b;\n\n\talways @(*) begin\n\t\tout_alwaysblock = a & b;\n\tend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n assign out_assign = a & b;\n\n always @(*) begin\n out_alwaysblock = a & b;\n end\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n out_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n\tassign out_assign = a & b;\n\n\talways @(*) begin\n\t\tout_alwaysblock = a & b;\n\tend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\n\tassign out_assign = a & b;\n\n\talways @(*) begin\n\t\tout_alwaysblock = a & b;\n\tend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alwaysblock = a & b;\nend\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_alwaysblock\n);\n\nassign out_assign = a & b;\n\nalways @(*) begin\n\tout_alway
{"task_id": "zero", "llmgen_RTL": ["module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\t\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\n assign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\t\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n assign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\t\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\n assign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\n assign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\t\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero\n);\n\n\tassign zero = 1'b0;\n\nendmodule", "module top_module(\n\toutput zero);\n\n\tassign zero = 1'b0;\n\nendmodule"]}
{"task_id": "circuit7", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clk) begin\n if (a == 0 && state == 0)\n q <= 1;\n else if (a == 1 && state == 0)\n q <= 0;\n \n state <= a;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n reg prev_a;\n\n always @(posedge clk) begin\n if (a && !prev_a)\n q <= 0;\n else if (!a && !prev_a)\n q <= 1;\n \n prev_a <= a;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n reg prev_a;\n\n always @(posedge clk) begin\n if (a == 1'b0 && prev_a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && prev_a == 1'b1)\n q <= 1'b0;\n \n prev_a <= a;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedge clk) begin\n if (a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && q == 1'b1)\n q <= 1'b0;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n reg prev_a;\n\n always @(posedge clk) begin\n if (a == 1'b0 && prev_a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && prev_a == 1'b1)\n q <= 1'b0;\n \n prev_a <= a;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\nreg prev_a;\n\nalways @(posedge clk) begin\n if (a == 1'b0 && prev_a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && prev_a == 1'b1)\n q <= 1'b0;\n \n prev_a <= a;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n reg prev_a;\n\n always @(posedge clk) begin\n if (a == 1'b0 && prev_a == 1'b0)\n q <= 1'b1;\n else if (a == 1'b1 && prev_a == 1'b1)\n q <= 1'b0;\n \n prev_a <= a;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg q\n);\n\n always @(posedg
{"task_id": "ece241_2014_q5a", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput reg z\n);\n\nreg [1:0] state, next_state;\nparameter INIT = 2'b00, COPY = 2'b01, COMP = 2'b10;\n\nalways @(posedge clk or posedge areset) begin\n if (areset)\n state <= INIT;\n else\n state <= next_state;\nend\n\nalways @(*) begin\n case (state)\n INIT: next_state = x ? COPY : INIT;\n COPY: next_state = COMP;\n COMP: next_state = COMP;\n default: next_state = INIT;\n endcase\nend\n\nalways @(*) begin\n case (state)\n INIT: z = x;\n COPY: z = x;\n COMP: z = ~x;\n default: z = x;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state, next_state;\n reg z_reg;\n \n parameter INIT = 2'b00,\n COPY = 2'b01,\n FLIP = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= INIT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n INIT: next_state = COPY;\n COPY: next_state = (x) ? FLIP : COPY;\n FLIP: next_state = FLIP;\n default: next_state = INIT;\n endcase\n end\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n z_reg <= 0;\n else begin\n case (state)\n INIT: z_reg <= 0;\n COPY: z_reg <= x;\n FLIP: z_reg <= ~x;\n endcase\n end\n end\n\n assign z = z_reg;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\nreg [1:0] state, next_state;\nreg z_reg;\n\nparameter IDLE = 2'b00;\nparameter COPY = 2'b01;\nparameter FLIP = 2'b10;\n\nalways @(posedge clk or posedge areset) begin\n if (areset)\n state <= IDLE;\n else\n state <= next_state;\nend\n\nalways @(*) begin\n case (state)\n IDLE: next_state = COPY;\n COPY: next_state = (x) ? FLIP : COPY;\n FLIP: next_state = FLIP;\n default: next_state = IDLE;\n endcase\nend\n\nalways @(posedge clk or posedge areset) begin\n if (areset)\n z_reg <= 0;\n else begin\n case (state)\n IDLE: z_reg <= 0;\n COPY: z_reg <= x;\n FLIP: z_reg <= ~x;\n endcase\n end\nend\n\nassign z = z_reg;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput reg z\n);\n\n reg [1:0] state, next_state;\n parameter INIT = 2'b00, COPY = 2'b01, FLIP = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= INIT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n INIT: next_state = x ? COPY : INIT;\n COPY: next_state = FLIP;\n FLIP: next_state = FLIP;\n default: next_state = INIT;\n endcase\n end\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n z <= 0;\n else begin\n case (state)\n INIT: z <= x;\n COPY: z <= x;\n FLIP: z <= ~x;\n endcase\n end\n end\n\nendmodule", "module top_module (\n input clk,\n input areset,\n input x,\n output reg z\n);\n\n reg [1:0] state, next_state;\n parameter IDLE = 2'b00, COPY = 2'b01, FLIP = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= IDLE;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n IDLE: next_state = COPY;\n COPY: next_state = (x) ? FLIP : COPY;\n FLIP: next_state = FLIP;\n default: next_state = IDLE;\n endcase\n end\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n z <= 0;\n else begin\n cas
{"task_id": "fsm3", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n\tparameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n\t\n\treg [1:0] state, next_state;\n\t\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tstate <= A;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\t\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tA: next_state = in ? B : A;\n\t\t\tB: next_state = in ? B : C;\n\t\t\tC: next_state = in ? D : A;\n\t\t\tD: next_state = in ? B : C;\n\t\t\tdefault: next_state = A;\n\t\tendcase\n\tend\n\t\n\tassign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n\n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\nreg [1:0] state, next_state;\n\nparameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n\nalways @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\nend\n\nalways @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\nend\n\nassign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n\n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n\tparameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n\t\n\treg [1:0] state, next_state;\n\t\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tstate <= A;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\t\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tA: next_state = in ? B : A;\n\t\t\tB: next_state = in ? B : C;\n\t\t\tC: next_state = in ? D : A;\n\t\t\tD: next_state = in ? B : C;\n\t\t\tdefault: next_state = A;\n\t\tendcase\n\tend\n\t\n\tassign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n el
{"task_id": "vector2", "llmgen_RTL": ["module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out = {in[7:0], in[15:8], in[23:16], in[31:24]};\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n\tassign out = {in[7:0], in[15:8], in[23:16], in[31:24]};\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out = {in[7:0], in[15:8], in[23:16], in[31:24]};\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out = {in[7:0], in[15:8], in[23:16], in[31:24]};\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out = {in[7:0], in[15:8], in[23:16], in[31:24]};\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n\tassign out = {in[7:0], in[15:8], in[23:16], in[31:24]};\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n assign out[31:24] = in[7:0];\n assign out[23:16] = in[15:8];\n assign out[15:8] = in[23:16];\n assign out[7:0] = in[31:24];\n\nendmodule", "module top_module (\n\tinput [31:0] in,\n\toutput [31:0] out\n);\n\n\tassign out[31:24] = in[7:0];\n\tassign out[23:16] = in[15:8];\n\tassign out[15:8] = in[23:16];\n\tassign out[7:0] = in[31:24];\n\nendmodule"]}
{"task_id": "m2014_q4c", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\n always_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\n always_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\n always_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\n always_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput r,\n\toutput logic q\n);\n\nalways_ff @(posedge clk) begin\n if (r)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule"]}
{"task_id": "mt2015_q4a", "llmgen_RTL": ["module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\tassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\tassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\tassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\tassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\nassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\tassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n\twire xor_out;\n\n\tassign xor_out = x ^ y;\n\tassign z = xor_out & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\tassign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_out;\n\t\n\tassign xor_out = x ^ y;\n\tassign z = xor_out & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_out;\n\t\n\tassign xor_out = x ^ y;\n\tassign z = xor_out & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (x ^ y) & x;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n\twire xor_result;\n\t\n\tassign xor_result = x ^ y;\n\tassign z = xor_result & x;\n\nendmodule"]}
{"task_id": "shift18", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput reg [63:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else if (ena) begin\n case (amount)\n 2'b00: q <= {q[62:0], 1'b0}; // Shift left by 1 bit\n 2'b01: q <= {q[55:0], 8'b0}; // Shift left by 8 bits\n 2'b10: q <= {q[63], q[63:1]}; // Arithmetic shift right by 1 bit\n 2'b11: q <= {{8{q[63]}}, q[63:8]}; // Arithmetic shift right by 8 bits\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput reg [63:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else if (ena) begin\n case (amount)\n 2'b00: q <= {q[62:0], 1'b0}; // Left shift by 1\n 2'b01: q <= {q[55:0], 8'b0}; // Left shift by 8\n 2'b10: q <= {q[63], q[63:1]}; // Arithmetic right shift by 1\n 2'b11: q <= {{8{q[63]}}, q[63:8]}; // Arithmetic right shift by 8\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput reg [63:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else if (ena) begin\n case (amount)\n 2'b00: q <= {q[62:0], 1'b0}; // Shift left by 1 bit\n 2'b01: q <= {q[55:0], 8'b0}; // Shift left by 8 bits\n 2'b10: q <= {q[63], q[63:1]}; // Arithmetic shift right by 1 bit\n 2'b11: q <= {{8{q[63]}}, q[63:8]}; // Arithmetic shift right by 8 bits\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput reg [63:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else if (ena) begin\n case (amount)\n 2'b00: q <= {q[62:0], 1'b0}; // Left shift by 1\n 2'b01: q <= {q[55:0], 8'b0}; // Left shift by 8\n 2'b10: q <= {q[63], q[63:1]}; // Right shift by 1 (arithmetic)\n 2'b11: q <= {{8{q[63]}}, q[63:8]}; // Right shift by 8 (arithmetic)\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput reg [63:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else if (ena) begin\n case (amount)\n 2'b00: q <= {q[62:0], 1'b0}; // shift left by 1 bit\n 2'b01: q <= {q[55:0], 8'b0}; // shift left by 8 bits\n 2'b10: q <= {q[63], q[63:1]}; // arithmetic shift right by 1 bit\n 2'b11: q <= {{8{q[63]}}, q[63:8]}; // arithmetic shift right by 8 bits\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput reg [63:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else if (ena) begin\n case (amount)\n 2'b00: q <= {q[62:0], 1'b0}; // Shift left by 1 bit\n 2'b01: q <= {q[55:0], 8'b0}; // Shift left by 8 bits\n 2'b10: q <= {q[63], q[63:1]}; // Arithmetic shift right by 1 bit\n 2'b11: q <= {{8{q[63]}}, q[63:8]}; // Arithmetic shift right by 8 bits\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput ena,\n\tinput [1:0] amount,\n\tinput [63:0] data,\n\toutput
{"task_id": "ece241_2013_q8", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput aresetn,\n\tinput x,\n\toutput reg z\n);\n\n parameter S0 = 2'b00, S1 = 2'b01, S2 = 2'b10;\n reg [1:0] state, next_state;\n\n always @(posedge clk or negedge aresetn) begin\n if (!aresetn)\n state <= S0;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n z = 1'b0;\n case (state)\n S0: begin\n if (x)\n next_state = S1;\n end\n S1: begin\n if (!x)\n next_state = S2;\n else\n next_state = S1;\n end\n S2: begin\n if (x) begin\n next_state = S1;\n z = 1'b1;\n end\n else\n next_state = S0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput aresetn,\n\tinput x,\n\toutput reg z\n);\n\n reg [1:0] state, next_state;\n \n parameter S0 = 2'b00,\n S1 = 2'b01,\n S2 = 2'b10;\n \n always @(posedge clk or negedge aresetn) begin\n if (!aresetn)\n state <= S0;\n else\n state <= next_state;\n end\n \n always @(*) begin\n next_state = state;\n z = 1'b0;\n \n case (state)\n S0: begin\n if (x)\n next_state = S1;\n end\n S1: begin\n if (!x)\n next_state = S2;\n else\n next_state = S1;\n end\n S2: begin\n if (x) begin\n next_state = S1;\n z = 1'b1;\n end\n else\n next_state = S0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput aresetn,\n\tinput x,\n\toutput reg z\n);\n\n parameter S0 = 2'b00, S1 = 2'b01, S2 = 2'b10;\n reg [1:0] state, next_state;\n\n always @(posedge clk or negedge aresetn) begin\n if (!aresetn)\n state <= S0;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n z = 1'b0;\n case (state)\n S0: begin\n if (x)\n next_state = S1;\n end\n S1: begin\n if (!x)\n next_state = S2;\n else\n next_state = S1;\n end\n S2: begin\n if (x) begin\n next_state = S1;\n z = 1'b1;\n end\n else\n next_state = S0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput aresetn,\n\tinput x,\n\toutput reg z\n);\n\n reg [1:0] state, next_state;\n \n parameter S0 = 2'b00;\n parameter S1 = 2'b01;\n parameter S2 = 2'b10;\n\n always @(posedge clk or negedge aresetn) begin\n if (!aresetn)\n state <= S0;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n z = 1'b0;\n \n case (state)\n S0: begin\n if (x)\n next_state = S1;\n end\n S1: begin\n if (!x)\n next_state = S2;\n else\n next_state = S1;\n end\n S2: begin\n if (x) begin\n next_state = S1;\n z = 1'b1;\n end\n else\n next_state = S0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput aresetn,\n\tinput x,\n\toutput reg z\n);\n\n reg [1:0] state, next_state;\n parameter S0
{"task_id": "m2014_q6", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n reg [2:0] state, next_state;\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n\n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? A : B;\n B: next_state = w ? D : C;\n C: next_state = w ? D : E;\n D: next_state = w ? A : F;\n E: next_state = w ? D : E;\n F: next_state = w ? D : C;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n reg [2:0] state, next_state;\n\n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? A : B;\n B: next_state = w ? D : C;\n C: next_state = w ? D : E;\n D: next_state = w ? A : F;\n E: next_state = w ? D : E;\n F: next_state = w ? D : C;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n localparam A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n reg [2:0] state, next_state;\n\n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? A : B;\n B: next_state = w ? D : C;\n C: next_state = w ? D : E;\n D: next_state = w ? A : F;\n E: next_state = w ? D : E;\n F: next_state = w ? D : C;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\nreg [2:0] state, next_state;\nparameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n\nalways @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\nend\n\nalways @(*) begin\n case (state)\n A: next_state = w ? A : B;\n B: next_state = w ? D : C;\n C: next_state = w ? D : E;\n D: next_state = w ? A : F;\n E: next_state = w ? D : E;\n F: next_state = w ? D : C;\n default: next_state = A;\n endcase\nend\n\nassign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n reg [2:0] state, next_state;\n\n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? A : B;\n B: next_state = w ? D : C;\n C: next_state = w ? D : E;\n D: next_state = w ? A : F;\n E: next_state = w ? D : E;\n F: next_state = w ? D : C;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n reg [2:0] state, next_state;\n\n always @(posedge clk or posedge reset) begin\n if (reset)\n
{"task_id": "fsm_ps2data", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg [23:0] out_bytes,\n\toutput reg done\n);\n\nreg [1:0] state;\nreg [1:0] byte_count;\nreg [23:0] message_buffer;\n\nlocalparam IDLE = 2'b00;\nlocalparam RECEIVE = 2'b01;\nlocalparam COMPLETE = 2'b10;\n\nalways @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n byte_count <= 2'b00;\n message_buffer <= 24'b0;\n done <= 1'b0;\n out_bytes <= 24'b0;\n end else begin\n case (state)\n IDLE: begin\n done <= 1'b0;\n if (in[3]) begin\n state <= RECEIVE;\n byte_count <= 2'b01;\n message_buffer[23:16] <= in;\n end\n end\n RECEIVE: begin\n if (byte_count == 2'b01) begin\n message_buffer[15:8] <= in;\n byte_count <= 2'b10;\n end else if (byte_count == 2'b10) begin\n message_buffer[7:0] <= in;\n state <= COMPLETE;\n end\n end\n COMPLETE: begin\n out_bytes <= message_buffer;\n done <= 1'b1;\n state <= IDLE;\n end\n endcase\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg [23:0] out_bytes,\n\toutput reg done\n);\n\n reg [1:0] state, next_state;\n reg [23:0] buffer;\n reg [1:0] byte_count;\n\n localparam IDLE = 2'b00, COLLECT = 2'b01, FINISH = 2'b10;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n buffer <= 24'b0;\n byte_count <= 2'b0;\n done <= 1'b0;\n end else begin\n state <= next_state;\n if (state == COLLECT) begin\n buffer <= {buffer[15:0], in};\n byte_count <= byte_count + 1'b1;\n end\n if (state == FINISH) begin\n out_bytes <= buffer;\n done <= 1'b1;\n end else begin\n done <= 1'b0;\n end\n end\n end\n\n always @(*) begin\n case (state)\n IDLE: next_state = (in[3]) ? COLLECT : IDLE;\n COLLECT: begin\n if (byte_count == 2'b10)\n next_state = FINISH;\n else\n next_state = COLLECT;\n end\n FINISH: next_state = (in[3]) ? COLLECT : IDLE;\n default: next_state = IDLE;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput [23:0] out_bytes,\n\toutput done\n);\n\n reg [1:0] state, next_state;\n reg [23:0] message;\n reg [1:0] byte_count;\n\n parameter IDLE = 2'b00, COLLECT = 2'b01, FINISH = 2'b10;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n message <= 24'b0;\n byte_count <= 2'b0;\n end else begin\n state <= next_state;\n if (state == COLLECT) begin\n message <= {message[15:0], in};\n byte_count <= byte_count + 1'b1;\n end\n end\n end\n\n always @(*) begin\n case (state)\n IDLE: next_state = (in[3]) ? COLLECT : IDLE;\n COLLECT: next_state = (byte_count == 2'b10) ? FINISH : COLLECT;\n FINISH: next_state = (in[3]) ? COLLECT : IDLE;\n default: next_state = IDLE;\n endcase\n end\n\n assign done = (state == FINISH);\n assign out_bytes = (state == FINISH) ? message : 24'bx;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg [23:0] out_bytes,\n\toutput reg done\n);\n\n reg [1:0] state;\n reg [1:0] byte_count;\n reg [23:0] message;\n\n localparam IDLE = 2'b00;\n localparam COLLECT = 2'b01;\n localparam FINISH = 2'b10;\n\n always @(posedge cl
{"task_id": "2012_q2b", "llmgen_RTL": ["module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n input [5:0] y,\n input w,\n output Y1,\n output Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule", "module top_module (\n\tinput [5:0] y,\n\tinput w,\n\toutput Y1,\n\toutput Y3\n);\n\n assign Y1 = y[0] & w;\n assign Y3 = (y[1] & ~w) | (y[2] & ~w) | (y[4] & ~w) | (y[5] & ~w);\n\nendmodule"]}
{"task_id": "vector0", "llmgen_RTL": ["module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tinput [2:0] vec, \n\toutput [2:0] outv,\n\toutput o2,\n\toutput o1,\n\toutput o0\n);\n\n assign outv = vec;\n assign o2 = vec[2];\n assign o1 = vec[1];\n assign o0 = vec[0];\n\nendmodule", "module top_module(\n\tin
{"task_id": "kmap4", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0010, 4'b0100, 4'b0111, \n 4'b1001, 4'b1010, 4'b1100, 4'b1111: out = 1'b1;\n default: out = 1'b0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b1;\n 4'b0010: out = 1'b1;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b1;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b0;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b0;\n 4'b1010: out = 1'b0;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b0;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b1;\n 4'b0010: out = 1'b1;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b1;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b0;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b0;\n 4'b1010: out = 1'b0;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b0;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0010, 4'b0100, 4'b0111,\n 4'b1001, 4'b1010, 4'b1100, 4'b1111: out = 1'b1;\n default: out = 1'b0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n out = (a & ~b & ~c & d) | (~a & b & ~c & d) | (a & ~b & c & ~d) | (~a & b & c & ~d) |\n (~a & ~b & ~c & ~d) | (a & b & ~c & ~d) | (~a & ~b & c & d) | (a & b & c & d);\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0010, 4'b0100, 4'b0111, \n 4'b1001, 4'b1010, 4'b1100, 4'b1111: out = 1'b1;\n default: out = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0010, 4'b0100, 4'b0111, \n 4'b1001, 4'b1010, 4'b1100, 4'b1111: out = 1'b1;\n default: out = 1'b0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0100, 4'b0111, 4'b1010: out = 1'b1;\n 4'b0010, 4'b0101, 4'b1000, 4'b1011: out = 1'b1;\n default: out = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0010, 4'b0100, 4'b0111, \n 4'b1001, 4'b1010, 4'b1100, 4'b1111: out = 1'b1;\n default: out = 1'b0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n out = (a ^ b) ^ (c ^ d);\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0001, 4'b0010, 4'b0100, 4'b0111, \n 4'b1001,
{"task_id": "vector1", "llmgen_RTL": ["module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\nassign out_hi = in[15:8];\nassign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule", "module top_module (\n\tinput [15:0] in,\n\toutput [7:0] out_hi,\n\toutput [7:0] out_lo\n);\n\n assign out_hi = in[15:8];\n assign out_lo = in[7:0];\n\nendmodule"]}
{"task_id": "norgate", "llmgen_RTL": ["module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\nassign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\nassign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n input a, \n input b,\n output out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a | b);\n\nendmodule"]}
{"task_id": "alwaysblock2", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // Using assign statement\n assign out_assign = a ^ b;\n\n // Using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // Using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n out_always_ff <= a ^ b;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput a, \n\tinput b,\n\toutput out_assign,\n\toutput reg out_always_comb,\n\toutput reg out_always_ff\n);\n\n // XOR using assign statement\n assign out_assign = a ^ b;\n\n // XOR using combinational always block\n always @(*) begin\n out_always_comb = a ^ b;\n end\n\n // XOR using clocked always block\n always @(posedge clk) begin\n
{"task_id": "m2014_q6c", "llmgen_RTL": ["module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = (y[1] & ~w) | (y[3] & w);\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = (y[1] & ~w) | (y[3] & ~w);\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = y[1] & ~w;\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule", "module top_module (\n\tinput [6:1] y,\n\tinput w,\n\toutput Y2,\n\toutput Y4\n);\n\n assign Y2 = (y[1] & ~w) | (y[3] & ~w);\n assign Y4 = (y[2] & w) | (y[3] & w) | (y[5] & w) | (y[6] & w);\n\nendmodule"]}
{"task_id": "mux256to1", "llmgen_RTL": ["module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n\tassign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n\tassign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n\tassign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule", "module top_module (\n\tinput [255:0] in,\n\tinput [7:0] sel,\n\toutput out\n);\n\n assign out = in[sel];\n\nendmodule"]}
{"task_id": "2014_q4a", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux1_out, mux2_out;\n\n assign mux1_out = E ? w : Q;\n assign mux2_out = L ? R : mux1_out;\n\n always @(posedge clk) begin\n Q <= mux2_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: Choose between shift and hold\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: Choose between load and shift/hold\n always @(posedge clk) begin\n if (L)\n Q <= R;\n else\n Q <= mux_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\n assign mux_out = L ? R : (E ? w : Q);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: Choose between shift (w) and hold (Q)\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: Choose between load (R) and shift/hold (mux_out)\n always @(posedge clk) begin\n if (L)\n Q <= R;\n else\n Q <= mux_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: Choose between holding current value or shifting\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: Choose between shift/hold result and load value\n always @(posedge clk) begin\n if (L)\n Q <= R;\n else\n Q <= mux_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: Choose between w (shift) and Q (hold)\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: Choose between R (load) and the output of the first mux\n always @(posedge clk) begin\n if (L)\n Q <= R;\n else\n Q <= mux_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux1_out, mux2_out;\n\n // First multiplexer: Choose between holding current value (Q) or shifting (w)\n assign mux1_out = E ? w : Q;\n\n // Second multiplexer: Choose between shift/hold result or loading new value (R)\n assign mux2_out = L ? R : mux1_out;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux2_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: Choose between holding current value or shifting\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: Choose between shift/hold result or loading R\n always @(posedge clk) begin\n if (L)\n Q <= R;\n else\n Q <= mux_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: select between holding current value and shifting\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: select between shift/hold and load\n always @(posedge clk) begin\n if (L)\n Q <= R;\n else\n Q <= mux_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput w,\n\tinput R,\n\tinput E,\n\tinput L,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // First multiplexer: Choose between holding current value or shifting\n assign mux_out = E ? w : Q;\n\n // Second multiplexer: Choose between shift/hold result and load value\n always @(posedge clk) begin\n if (L)\n Q <= R;\n el
{"task_id": "ece241_2014_q4", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg [2:0] state;\n\n wire xor_out, and_out, or_out;\n\n assign xor_out = x ^ state[2];\n assign and_out = x & ~state[1];\n assign or_out = x | ~state[0];\n\n always @(posedge clk) begin\n state[2] <= xor_out;\n state[1] <= and_out;\n state[0] <= or_out;\n end\n\n assign z = ~(state[2] ^ state[1] ^ state[0]);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always @(posedge clk) begin\n q1 <= x ^ q1;\n q2 <= x & ~q2;\n q3 <= x | ~q3;\n end\n\n assign z = ~(q1 ^ q2 ^ q3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\toutput z\n);\n\n reg q1, q2, q3;\n\n always
{"task_id": "circuit4", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c) & (~a | ~d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c | d) & (~a | c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c | d) & (~a | c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c | d) & (~a | c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c | d) & (~a | c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c | d) & ~(a & ~b & ~c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c | d) & (~a | c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | c) & (~a | ~d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = b | c | (a & d);\n\nendmodule"]}
{"task_id": "rule110", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n integer i;\n reg [511:0] next_q;\n\n always @(*) begin\n for (i = 0; i < 512; i = i + 1) begin\n case ({(i > 0 ? q[i-1] : 1'b0), q[i], (i < 511 ? q[i+1] : 1'b0)})\n 3'b111: next_q[i] = 1'b0;\n 3'b110: next_q[i] = 1'b1;\n 3'b101: next_q[i] = 1'b1;\n 3'b100: next_q[i] = 1'b0;\n 3'b011: next_q[i] = 1'b1;\n 3'b010: next_q[i] = 1'b1;\n 3'b001: next_q[i] = 1'b1;\n 3'b000: next_q[i] = 1'b0;\n endcase\n end\n end\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else\n q <= next_q;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n integer i;\n reg [511:0] next_q;\n\n always @(*) begin\n for (i = 0; i < 512; i = i + 1) begin\n case ({(i > 0 ? q[i-1] : 1'b0), q[i], (i < 511 ? q[i+1] : 1'b0)})\n 3'b111: next_q[i] = 1'b0;\n 3'b110: next_q[i] = 1'b1;\n 3'b101: next_q[i] = 1'b1;\n 3'b100: next_q[i] = 1'b0;\n 3'b011: next_q[i] = 1'b1;\n 3'b010: next_q[i] = 1'b1;\n 3'b001: next_q[i] = 1'b1;\n 3'b000: next_q[i] = 1'b0;\n endcase\n end\n end\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else\n q <= next_q;\n end\n\nendmodule", "module top_module(\n input clk,\n input load,\n input [511:0] data,\n output reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= (q[510] | q[511]) & ~(q[510] & q[511]);\n \n for (integer i = 1; i < 511; i = i + 1) begin\n q[i] <= (q[i-1] | q[i] | q[i+1]) & ~(q[i-1] & q[i] & q[i+1]);\n end\n \n q[0] <= (q[0] | q[1]) & ~(q[0] & q[1]);\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n integer i;\n reg [511:0] next_q;\n\n always @(*) begin\n for (i = 0; i < 512; i = i + 1) begin\n case ({(i == 0 ? 1'b0 : q[i-1]), q[i], (i == 511 ? 1'b0 : q[i+1])})\n 3'b111: next_q[i] = 1'b0;\n 3'b110: next_q[i] = 1'b1;\n 3'b101: next_q[i] = 1'b1;\n 3'b100: next_q[i] = 1'b0;\n 3'b011: next_q[i] = 1'b1;\n 3'b010: next_q[i] = 1'b1;\n 3'b001: next_q[i] = 1'b1;\n 3'b000: next_q[i] = 1'b0;\n endcase\n end\n end\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else\n q <= next_q;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n integer i;\n reg left, center, right;\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n for (i = 0; i < 512; i = i + 1) begin\n left = (i == 0) ? 1'b0 : q[i-1];\n center = q[i];\n right = (i == 511) ? 1'b0 : q[i+1];\n\n case ({left, center, right})\n 3'b111: q[i] <= 1'b0;\n 3'b110: q[i] <= 1'b1;\n 3'b101: q[i] <= 1'b1;\n 3'b100: q[i] <= 1'b0;\n 3'b011: q[i] <= 1'b1;\n 3'b010: q[i] <= 1'b1;\n 3'b001: q[i] <= 1'b1;\n 3'b000: q[i] <= 1'b0;\n endcase\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n integer i;\n
{"task_id": "fsm3s", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n \n reg [1:0] state, next_state;\n \n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = in ? B : A;\n B: next_state = in ? B : C;\n C: next_state = in ? D : A;\n D: next_state = in ? B : C;\n default: next_state = A;\n endcase\n end\n \n assign out = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutpu
{"task_id": "circuit5", "llmgen_RTL": ["module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case (c)\n 4'h0: q = b;\n 4'h1: q = e;\n 4'h2: q = a;\n 4'h3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\n\toutput reg [3:0] q\n);\n\n always @(*) begin\n case(c)\n 4'd0: q = b;\n 4'd1: q = e;\n 4'd2: q = a;\n 4'd3: q = d;\n default: q = 4'hf;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] a, \n\tinput [3:0] b, \n\tinput [3:0] c, \n\tinput [3:0] d,\n\tinput [3:0] e,\
{"task_id": "bugs_mux2", "llmgen_RTL": ["module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\tinput sel,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out\n);\n\n always @(*) begin\n if (sel)\n out = b;\n else\n out = a;\n end\n\nendmodule", "module top_module (\n\
{"task_id": "mt2015_muxdff", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 Multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D Flip-Flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 Multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D Flip-Flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n \n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n \n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 Multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D Flip-Flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 Multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D Flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n sub_module sm (\n .clk(clk),\n .L(L),\n .q_in(q_in),\n .r_in(r_in),\n .Q(Q)\n );\n\nendmodule\n\nmodule sub_module(\n input clk,\n input L,\n input q_in,\n input r_in,\n output reg Q\n);\n\n wire mux_out;\n\n assign mux_out = L ? r_in : q_in;\n\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q\n);\n\n wire mux_out;\n\n // 2-1 Multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D Flip-Flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assign mux_out = L ? r_in : q_in;\n\n // D flip-flop\n always @(posedge clk) begin\n Q <= mux_out;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput L,\n\tinput q_in,\n\tinput r_in,\n\toutput reg Q);\n\n wire mux_out;\n\n // 2-1 multiplexer\n assig
{"task_id": "edgecapture", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out\n);\n\nreg [31:0] prev_in;\n\nalways @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (~in & prev_in));\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (prev_in & ~in));\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (prev_in & ~in));\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] in_prev;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n in_prev <= 32'b0;\n end else begin\n in_prev <= in;\n out <= out | (~in & in_prev);\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n\treg [31:0] prev_in;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tout <= 32'b0;\n\t\t\tprev_in <= 32'b0;\n\t\tend else begin\n\t\t\tprev_in <= in;\n\t\t\tout <= (out | (~in & prev_in));\n\t\tend\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (~in & prev_in));\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (prev_in & ~in));\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (~in & prev_in));\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out\n);\n\nreg [31:0] prev_in;\n\nalways @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (~in & prev_in));\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (prev_in & ~in));\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput [31:0] in,\n\toutput reg [31:0] out);\n\n reg [31:0] prev_in;\n\n always @(posedge clk) begin\n if (reset) begin\n out <= 32'b0;\n prev_in <= 32'b0;\n end else begin\n prev_in <= in;\n out <= (out | (~in & prev_in));\n end\n end\n\nendmodule", "module top_module(\n i
{"task_id": "dff8", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n\talways @(posedge clk) begin\n\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n\talways @(posedge clk) begin\n\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n\talways @(posedge clk) begin\n\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n\talways @(posedge clk) begin\n\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule"]}
{"task_id": "ece241_2014_q1c", "llmgen_RTL": ["module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] & b[7] & ~s[7]) | (~a[7] & ~b[7] & s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] & b[7] & ~s[7]) | (~a[7] & ~b[7] & s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n \n assign s = a + b;\n \n assign overflow = (a[7] & b[7] & ~s[7]) | (~a[7] & ~b[7] & s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] & b[7] & ~s[7]) | (~a[7] & ~b[7] & s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] & b[7] & ~s[7]) | (~a[7] & ~b[7] & s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n \n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput [7:0] s,\n\toutput overflow\n);\n\n wire [8:0] sum;\n\n assign sum = {a[7], a} + {b[7], b};\n assign s = sum[7:0];\n assign overflow = (a[7] == b[7]) && (a[7] != s[7]);\n\nendmodule", "module top_module (\n input [7:0] a
{"task_id": "review2015_fsmonehot", "llmgen_RTL": ["module top_module(\n input d,\n input done_counting,\n input ack,\n input [9:0] state, // 10-bit one-hot current state\n output B3_next,\n output S_next,\n output S1_next,\n output Count_next,\n output Wait_next,\n output done,\n output counting,\n output shift_ena\n);\n\n wire S, S1, S11, S110, B0, B1, B2, B3, Count, Wait;\n assign {Wait, Count, B3, B2, B1, B0, S110, S11, S1, S} = state;\n\n assign B3_next = B2;\n assign S_next = S & ~d | S1 & ~d | S110 & ~d | Wait & ack;\n assign S1_next = S & d;\n assign Count_next = B3 | (Count & ~done_counting);\n assign Wait_next = Count & done_counting | Wait & ~ack;\n \n assign done = Wait;\n assign counting = Count;\n assign shift_ena = B0 | B1 | B2 | B3;\n\nendmodule", "module top_module(\n input d,\n input done_counting,\n input ack,\n input [9:0] state, // 10-bit one-hot current state\n output B3_next,\n output S_next,\n output S1_next,\n output Count_next,\n output Wait_next,\n output done,\n output counting,\n output shift_ena\n);\n\n // State encoding\n wire S = state[0];\n wire S1 = state[1];\n wire S11 = state[2];\n wire S110 = state[3];\n wire B0 = state[4];\n wire B1 = state[5];\n wire B2 = state[6];\n wire B3 = state[7];\n wire Count = state[8];\n wire Wait = state[9];\n\n // Next state logic\n assign B3_next = B2;\n assign S_next = S & ~d | S1 & ~d | S110 & ~d | Wait & ack;\n assign S1_next = S & d;\n assign Count_next = B3 | Count & ~done_counting;\n assign Wait_next = Count & done_counting | Wait & ~ack;\n\n // Output logic\n assign done = Wait;\n assign counting = Count;\n assign shift_ena = B0 | B1 | B2 | B3;\n\nendmodule", "module top_module(\n input d,\n input done_counting,\n input ack,\n input [9:0] state, // 10-bit one-hot current state\n output B3_next,\n output S_next,\n output S1_next,\n output Count_next,\n output Wait_next,\n output done,\n output counting,\n output shift_ena\n);\n\n // State encodings\n wire S = state[0];\n wire S1 = state[1];\n wire S11 = state[2];\n wire S110 = state[3];\n wire B0 = state[4];\n wire B1 = state[5];\n wire B2 = state[6];\n wire B3 = state[7];\n wire Count = state[8];\n wire Wait = state[9];\n\n // Next state logic\n assign B3_next = B2;\n assign S_next = (S & ~d) | (S1 & ~d) | (S110 & ~d) | (Wait & ack);\n assign S1_next = S & d;\n assign Count_next = B3 | (Count & ~done_counting);\n assign Wait_next = (Count & done_counting) | (Wait & ~ack);\n\n // Output logic\n assign done = Wait;\n assign counting = Count;\n assign shift_ena = B0 | B1 | B2 | B3;\n\nendmodule", "module top_module(\n input d,\n input done_counting,\n input ack,\n input [9:0] state, // 10-bit one-hot current state\n output B3_next,\n output S_next,\n output S1_next,\n output Count_next,\n output Wait_next,\n output done,\n output counting,\n output shift_ena\n);\n\n wire S, S1, S11, S110, B0, B1, B2, B3, Count, Wait;\n assign {Wait, Count, B3, B2, B1, B0, S110, S11, S1, S} = state;\n\n assign B3_next = B2;\n assign S_next = S & ~d | S1 & ~d | S110 & ~d | Wait & ack;\n assign S1_next = S & d;\n assign Count_next = B3 | (Count & ~done_counting);\n assign Wait_next = Count & done_counting | Wait & ~ack;\n\n assign done = Wait;\n assign counting = Count;\n assign shift_ena = B0 | B1 | B2 | B3;\n\nendmodule", "module top_module(\n input d,\n input done_counting,\n input ack,\n input [9:0] state, // 10-bit one-hot current state\n output B3_next,\n output S_next,\n output S1_next,\n output Count_next,\n output Wait_next,\n output done,\n output counting,\n output shift_ena\n);\n\n wire S, S1, S11, S110, B0, B1, B2, B3, Count, Wait;\n assign {Wait, Count, B3, B2, B1, B0, S110, S11, S1, S} = state;\n\n assign
{"task_id": "counter_2bc", "llmgen_RTL": ["module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (train_valid) begin\n if (train_taken) begin\n state <= (state == 2'b11) ? 2'b11 : state + 1'b1; // Increment up to 3\n end else begin\n state <= (state == 2'b00) ? 2'b00 : state - 1'b1; // Decrement down to 0\n end\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (train_valid) begin\n if (train_taken) begin\n state <= (state == 2'b11) ? 2'b11 : state + 1'b1; // Increment up to 3\n end else begin\n state <= (state == 2'b00) ? 2'b00 : state - 1'b1; // Decrement down to 0\n end\n end\n // When train_valid is 0, state remains unchanged\n end\n\nendmodule", "module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (train_valid) begin\n if (train_taken) begin\n state <= (state == 2'b11) ? 2'b11 : state + 1'b1; // Increment up to 3\n end else begin\n state <= (state == 2'b00) ? 2'b00 : state - 1'b1; // Decrement down to 0\n end\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (train_valid) begin\n if (train_taken) begin\n state <= (state == 2'b11) ? 2'b11 : state + 1'b1; // Increment up to 3\n end else begin\n state <= (state == 2'b00) ? 2'b00 : state - 1'b1; // Decrement down to 0\n end\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (train_valid) begin\n if (train_taken) begin\n state <= (state == 2'b11) ? 2'b11 : state + 1'b1; // Increment up to 3\n end else begin\n state <= (state == 2'b00) ? 2'b00 : state - 1'b1; // Decrement down to 0\n end\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (train_valid) begin\n if (train_taken) begin\n state <= (state == 2'b11) ? 2'b11 : state + 1'b1; // Increment up to 3\n end else begin\n state <= (state == 2'b00) ? 2'b00 : state - 1'b1; // Decrement down to 0\n end\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input areset,\n input train_valid,\n input train_taken,\n output logic [1:0] state\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= 2'b01; // Reset to weakly not-taken\n end else if (t
{"task_id": "always_casez", "llmgen_RTL": ["module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'bzzzzzzz1: pos = 3'd0;\n 8'bzzzzzz10: pos = 3'd1;\n 8'bzzzzz100: pos = 3'd2;\n 8'bzzzz1000: pos = 3'd3;\n 8'bzzz10000: pos = 3'd4;\n 8'bzz100000: pos = 3'd5;\n 8'bz1000000: pos = 3'd6;\n 8'b10000000: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 8'b00000001: pos = 3'd0;\n 8'b0000001?: pos = 3'd1;\n 8'b000001??: pos = 3'd2;\n 8'b00001???: pos = 3'd3;\n 8'b0001????: pos = 3'd4;\n 8'b001?????: pos = 3'd5;\n 8'b01??????: pos = 3'd6;\n 8'b1???????: pos = 3'd7;\n default: pos = 3'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput reg [2:0] pos\n);\n\nalways @(*) begin\n casez(i
{"task_id": "always_nolatches", "llmgen_RTL": ["module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\nalways @(*) begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n\n case (scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\n always @(*) begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n \n case(scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\n always @(*) begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n \n case(scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\nalways @(*) begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n\n case(scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\n always @(*) begin\n // Default values\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n\n case(scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\nalways @(*) begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n\n case (scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [15:0] scancode,\n\toutput reg left,\n\toutput reg down,\n\toutput reg right,\n\toutput reg up\n);\n\nalways @(*) begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n \n case(scancode)\n 16'he06b: left = 1'b1;\n 16'he072: down = 1'b1;\n 16'he074: right = 1'b1;\n 16'he075: up = 1'b1;\n default: begin\n left = 1'b0;\n down = 1'b0;\n right = 1'b0;\n up = 1'b0;\n end\n endcase\ne
{"task_id": "m2014_q4j", "llmgen_RTL": ["module top_module (\n\tinput [3:0] x,\n\tinput [3:0] y,\n\toutput [4:0] sum\n);\n\n wire [3:0] carry;\n\n full_adder fa0 (.a(x[0]), .b(y[0]), .cin(1'b0), .sum(sum[0]), .cout(carry[0]));\n full_adder fa1 (.a(x[1]), .b(y[1]), .cin(carry[0]), .sum(sum[1]), .cout(carry[1]));\n full_adder fa2 (.a(x[2]), .b(y[2]), .cin(carry[1]), .sum(sum[2]), .cout(carry[2]));\n full_adder fa3 (.a(x[3]), .b(y[3]), .cin(carry[2]), .sum(sum[3]), .cout(sum[4]));\n\nendmodule\n\nmodule full_adder (\n input a,\n input b,\n input cin,\n output sum,\n output cout\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput [3:0] x,\n\tinput [3:0] y,\n\toutput [4:0] sum\n);\n\n wire [3:0] carry;\n\n full_adder fa0 (.a(x[0]), .b(y[0]), .cin(1'b0), .sum(sum[0]), .cout(carry[0]));\n full_adder fa1 (.a(x[1]), .b(y[1]), .cin(carry[0]), .sum(sum[1]), .cout(carry[1]));\n full_adder fa2 (.a(x[2]), .b(y[2]), .cin(carry[1]), .sum(sum[2]), .cout(carry[2]));\n full_adder fa3 (.a(x[3]), .b(y[3]), .cin(carry[2]), .sum(sum[3]), .cout(sum[4]));\n\nendmodule\n\nmodule full_adder (\n input a,\n input b,\n input cin,\n output sum,\n output cout\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput [3:0] x,\n\tinput [3:0] y,\n\toutput [4:0] sum\n);\n\n wire [3:0] carry;\n\n full_adder fa0 (.a(x[0]), .b(y[0]), .cin(1'b0), .sum(sum[0]), .cout(carry[0]));\n full_adder fa1 (.a(x[1]), .b(y[1]), .cin(carry[0]), .sum(sum[1]), .cout(carry[1]));\n full_adder fa2 (.a(x[2]), .b(y[2]), .cin(carry[1]), .sum(sum[2]), .cout(carry[2]));\n full_adder fa3 (.a(x[3]), .b(y[3]), .cin(carry[2]), .sum(sum[3]), .cout(sum[4]));\n\nendmodule\n\nmodule full_adder (\n input a,\n input b,\n input cin,\n output sum,\n output cout\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput [3:0] x,\n\tinput [3:0] y,\n\toutput [4:0] sum\n);\n\n wire [3:0] carry;\n\n full_adder fa0 (.a(x[0]), .b(y[0]), .cin(1'b0), .sum(sum[0]), .cout(carry[0]));\n full_adder fa1 (.a(x[1]), .b(y[1]), .cin(carry[0]), .sum(sum[1]), .cout(carry[1]));\n full_adder fa2 (.a(x[2]), .b(y[2]), .cin(carry[1]), .sum(sum[2]), .cout(carry[2]));\n full_adder fa3 (.a(x[3]), .b(y[3]), .cin(carry[2]), .sum(sum[3]), .cout(sum[4]));\n\nendmodule\n\nmodule full_adder (\n input a,\n input b,\n input cin,\n output sum,\n output cout\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput [3:0] x,\n\tinput [3:0] y,\n\toutput [4:0] sum\n);\n\n wire [3:0] carry;\n\n full_adder fa0 (.a(x[0]), .b(y[0]), .cin(1'b0), .sum(sum[0]), .cout(carry[0]));\n full_adder fa1 (.a(x[1]), .b(y[1]), .cin(carry[0]), .sum(sum[1]), .cout(carry[1]));\n full_adder fa2 (.a(x[2]), .b(y[2]), .cin(carry[1]), .sum(sum[2]), .cout(carry[2]));\n full_adder fa3 (.a(x[3]), .b(y[3]), .cin(carry[2]), .sum(sum[3]), .cout(sum[4]));\n\nendmodule\n\nmodule full_adder (\n input a,\n input b,\n input cin,\n output sum,\n output cout\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput [3:0] x,\n\tinput [3:0] y,\n\toutput [4:0] sum\n);\n \n wire [3:0] carry;\n \n full_adder fa0 (.a(x[0]), .b(y[0]), .cin(1'b0), .sum(sum[0]), .cout(carry[0]));\n full_adder fa1 (.a(x[1]), .b(y[1]), .cin(carry[0]), .sum(sum[1]), .cout(carry[1]));\n full_adder fa2 (.a(x[2]), .b(y[2]), .cin(carry[1]), .sum(sum[2]), .cout(carry[2]));\n full_adder fa3 (.a(x[3]), .b(y[3]), .cin(carry[2]), .sum(sum[3]), .cout(sum[4]));\n\nendmodule\n\nmodule full_adder (\n input a,\n input b,\n input cin,\n output sum,\n output cout\n);\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\nendmodule", "module top_module (\n\tinput
{"task_id": "history_shift", "llmgen_RTL": ["module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\n \n input train_mispredicted,\n input train_taken,\n input [31:0] train_history\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n predict_history <= 32'b0;\n end\n else if (train_mispredicted) begin\n predict_history <= {train_history[30:0], train_taken};\n end\n else if (predict_valid) begin\n predict_history <= {predict_history[30:0], predict_taken};\n end\n end\n\nendmodule", "module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\n \n input train_mispredicted,\n input train_taken,\n input [31:0] train_history\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n predict_history <= 32'b0;\n end else if (train_mispredicted) begin\n predict_history <= {train_history[30:0], train_taken};\n end else if (predict_valid) begin\n predict_history <= {predict_history[30:0], predict_taken};\n end\n end\n\nendmodule", "module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\n \n input train_mispredicted,\n input train_taken,\n input [31:0] train_history\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n predict_history <= 32'b0;\n end\n else if (train_mispredicted) begin\n predict_history <= {train_history[30:0], train_taken};\n end\n else if (predict_valid) begin\n predict_history <= {predict_history[30:0], predict_taken};\n end\n end\n\nendmodule", "module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\n \n input train_mispredicted,\n input train_taken,\n input [31:0] train_history\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n predict_history <= 32'b0;\n end else if (train_mispredicted) begin\n predict_history <= {train_history[30:0], train_taken};\n end else if (predict_valid) begin\n predict_history <= {predict_history[30:0], predict_taken};\n end\n end\n\nendmodule", "module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\n \n input train_mispredicted,\n input train_taken,\n input [31:0] train_history\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n predict_history <= 32'b0;\n end\n else if (train_mispredicted) begin\n predict_history <= {train_history[30:0], train_taken};\n end\n else if (predict_valid) begin\n predict_history <= {predict_history[30:0], predict_taken};\n end\n end\n\nendmodule", "module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\n \n input train_mispredicted,\n input train_taken,\n input [31:0] train_history\n);\n\n always_ff @(posedge clk or posedge areset) begin\n if (areset) begin\n predict_history <= 32'b0;\n end\n else if (train_mispredicted) begin\n predict_history <= {train_history[30:0], train_taken};\n end\n else if (predict_valid) begin\n predict_history <= {predict_history[30:0], predict_taken};\n end\n end\n\nendmodule", "module top_module\n(\n input clk,\n input areset,\n input predict_valid,\n input predict_taken,\n output logic [31:0] predict_history,\
{"task_id": "wire_decl", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assign and2_out = c & d;\n assign out = and1_out | and2_out;\n assign out_n = ~out;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out,\n\toutput out_n );\n\n wire and1_out, and2_out;\n\n assign and1_out = a & b;\n assig
{"task_id": "dff", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n input clk,\n input d,\n output reg q\n);\n\nalways @(posedge clk) begin\n q <= d;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\t\n\talways @(posedge clk) begin\n\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n always @(posedge clk) begin\n q <= d;\n end\n\nendmodule"]}
{"task_id": "ece241_2013_q12", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n wire [2:0] select;\n\n always @(posedge clk) begin\n if (enable) begin\n Q <= {Q[6:0], S};\n end\n end\n\n assign select = {A, B, C};\n\n always @(*) begin\n case (select)\n 3'b000: Z = Q[0];\n 3'b001: Z = Q[1];\n 3'b010: Z = Q[2];\n 3'b011: Z = Q[3];\n 3'b100: Z = Q[4];\n 3'b101: Z = Q[5];\n 3'b110: Z = Q[6];\n 3'b111: Z = Q[7];\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n wire [2:0] sel;\n\n always @(posedge clk) begin\n if (enable)\n Q <= {S, Q[7:1]};\n end\n\n assign sel = {A, B, C};\n\n always @(*) begin\n case (sel)\n 3'b000: Z = Q[0];\n 3'b001: Z = Q[1];\n 3'b010: Z = Q[2];\n 3'b011: Z = Q[3];\n 3'b100: Z = Q[4];\n 3'b101: Z = Q[5];\n 3'b110: Z = Q[6];\n 3'b111: Z = Q[7];\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n wire [2:0] sel;\n\n always @(posedge clk) begin\n if (enable)\n Q <= {S, Q[7:1]};\n end\n\n assign sel = {A, B, C};\n\n always @(*) begin\n case (sel)\n 3'b000: Z = Q[0];\n 3'b001: Z = Q[1];\n 3'b010: Z = Q[2];\n 3'b011: Z = Q[3];\n 3'b100: Z = Q[4];\n 3'b101: Z = Q[5];\n 3'b110: Z = Q[6];\n 3'b111: Z = Q[7];\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n wire [2:0] select;\n\n always @(posedge clk) begin\n if (enable)\n Q <= {S, Q[7:1]};\n end\n\n assign select = {A, B, C};\n\n always @(*) begin\n case(select)\n 3'b000: Z = Q[0];\n 3'b001: Z = Q[1];\n 3'b010: Z = Q[2];\n 3'b011: Z = Q[3];\n 3'b100: Z = Q[4];\n 3'b101: Z = Q[5];\n 3'b110: Z = Q[6];\n 3'b111: Z = Q[7];\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n wire [2:0] sel;\n\n always @(posedge clk) begin\n if (enable)\n Q <= {S, Q[7:1]};\n end\n\n assign sel = {A, B, C};\n\n always @(*) begin\n case (sel)\n 3'b000: Z = Q[0];\n 3'b001: Z = Q[1];\n 3'b010: Z = Q[2];\n 3'b011: Z = Q[3];\n 3'b100: Z = Q[4];\n 3'b101: Z = Q[5];\n 3'b110: Z = Q[6];\n 3'b111: Z = Q[7];\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n wire [2:0] sel;\n\n always @(posedge clk) begin\n if (enable)\n Q <= {S, Q[7:1]};\n end\n\n assign sel = {A, B, C};\n\n always @(*) begin\n case (sel)\n 3'b000: Z = Q[0];\n 3'b001: Z = Q[1];\n 3'b010: Z = Q[2];\n 3'b011: Z = Q[3];\n 3'b100: Z = Q[4];\n 3'b101: Z = Q[5];\n 3'b110: Z = Q[6];\n 3'b111: Z = Q[7];\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput enable,\n\tinput S,\n\tinput A,\n\tinput B,\n\tinput C,\n\toutput reg Z\n);\n\n reg [7:0] Q;\n\n always @(posedge clk) begin\n if (enable) begin\n Q <= {Q[6:0], S};\n end\n end\n\n always @(*) begin\n
{"task_id": "thermostat", "llmgen_RTL": ["module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput aircon,\n\toutput fan\n);\n\n assign heater = mode & too_cold;\n assign aircon = ~mode & too_hot;\n assign fan = heater | aircon | fan_on;\n\nendmodule", "module top_module(\n\tinput mode,\n\tinput too_cold, \n\tinput too_hot,\n\tinput fan_on,\n\toutput heater,\n\toutput ai
{"task_id": "ece241_2013_q2", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & b & c & d) | (a & b & c & d) | (~a & ~b & c & ~d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b | c | d) & (a | b | c | ~d) & (a | ~b | c | d) & (~a | b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // SOP form\n assign out_sop = (~a & ~b & c & d) | (~a & b & c & d) | (a & b & c & d);\n\n // POS form\n assign out_pos = (a | b | c) & (a | c | d) & (~a | b | c) & (~a | b | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & b & c & d) | (a & b & c & d) | (~a & ~b & c & ~d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b | c | d) & (a | b | c | ~d) & (a | ~b | c | d) & (~a | b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & ~b & c & d) | (~a & b & c & d) | (a & b & c & d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | c | d) & (b | c | d) & (~a | ~b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & ~b & c & d) | // 2\n (a & b & c & ~d) | // 7\n (a & b & c & d); // 15\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | c | d) &\n (b | c | d) &\n (a | b | d) &\n (a | b | c);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & ~b & c & d) | (~a & b & c & d) | (a & b & c & d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | c | d) & (b | c | d) & (~a | b | c | d) & (~a | ~b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & b & c & d) | (a & b & c & d) | (~a & ~b & c & ~d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b | c | d) & (a | b | c | ~d) & (~a | b | ~c | d) & (~a | ~b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & b & c & d) | (a & b & c & ~d) | (a & b & c & d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b | c | d) & (a | b | c | ~d) & (a | ~b | c | d) & (~a | b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & ~b & c & d) | (~a & b & c & d) | (a & b & c & d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b | c | d) & (a | b | c | ~d) & (a | ~b | ~c | d) & (~a | b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & b & c & d) | (a & b & c & d) | (~a & ~b & c & ~d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b | c | d) & (a | b | c | ~d) & (a | ~b | c | d) & (~a | b | c | d);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out_sop,\n\toutput out_pos\n);\n\n // Sum-of-Products (SOP) form\n assign out_sop = (~a & b & c & d) | (a & b & c & ~d) | (a & b & c & d);\n\n // Product-of-Sums (POS) form\n assign out_pos = (a | b |
{"task_id": "lfsr32", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[0] ^ q[1] ^ q[21] ^ q[31], q[31:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[0] ^ q[1] ^ q[21] ^ q[31], q[31:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[0] ^ q[1] ^ q[21] ^ q[31], q[31:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[0] ^ q[1] ^ q[21] ^ q[31], q[31:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[0] ^ q[1] ^ q[21] ^ q[31], q[31:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[0] ^ q[1] ^ q[21] ^ q[31], q[31:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n q <= {q[30:0], q[31] ^ q[21] ^ q[1] ^ q[0]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [31:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 32'h1;\n end else begin\n
{"task_id": "circuit3", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | a) & (c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | a) & (c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | a) & (c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | a) & (c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | a) & (c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b | a) & (c | d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (b & d) | (b & c) | (a & d) | (a & c);\n\nendmodule"]}
{"task_id": "7420", "llmgen_RTL": ["module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n \n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n assign p1y = ~(p1a & p1b & p1c & p1d);\n assign p2y = ~(p2a & p2b & p2c & p2d);\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d, \n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput
{"task_id": "popcount255", "llmgen_RTL": ["module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n reg [7:0] count;\n\n always @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\nend\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n always @(*) begin\n out = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n out = out + in[i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n if (in[i] == 1'b1)\n count = count + 1'b1;\n end\n out = count;\nend\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\nend\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n reg [7:0] count;\n\n always @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n if (in[i] == 1'b1)\n count = count + 8'd1;\n end\n out = count;\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n \n always @(*) begin\n out = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n out = out + in[i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\nend\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n always @(*) begin\n out = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n out = out + in[i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\nend\n\nendmodule", "module top_module (\n input [254:0] in,\n output reg [7:0] out\n);\n\n integer i;\n always @(*) begin\n out = 8'b0;\n for (i = 0; i < 255; i = i + 1) begin\n out = out + in[i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n \n always @(*) begin\n out = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n out = out + in[i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\nend\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\ninteger i;\nreg [7:0] count;\n\nalways @(*) begin\n count = 8'd0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\nend\n\nendmodule", "module top_module (\n\tinput [254:0] in,\n\toutput reg [7:0] out\n);\n\n integer i;\n reg [7:0] count;\n\n always @(*) begin\n count = 8'b0;\n for (i = 0; i < 255; i = i + 1) begin\n count = count + in[i];\n end\n out = count;\n en
{"task_id": "gatesv", "llmgen_RTL": ["module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[3] & in[2];\n assign out_both[1] = in[2] & in[1];\n assign out_both[0] = in[1] & in[0];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[2];\n assign out_different[2] = in[2] ^ in[1];\n assign out_different[1] = in[1] ^ in[0];\n assign out_different[0] = in[0] ^ in[3];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[3] & in[2];\n assign out_both[1] = in[2] & in[1];\n assign out_both[0] = in[1] & in[0];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[2];\n assign out_different[2] = in[2] ^ in[1];\n assign out_different[1] = in[1] ^ in[0];\n assign out_different[0] = in[0] ^ in[3];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[2] & in[3];\n assign out_both[1] = in[1] & in[2];\n assign out_both[0] = in[0] & in[1];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[0];\n assign out_different[2] = in[2] ^ in[3];\n assign out_different[1] = in[1] ^ in[2];\n assign out_different[0] = in[0] ^ in[1];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[3] & in[2];\n assign out_both[1] = in[2] & in[1];\n assign out_both[0] = in[1] & in[0];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[2];\n assign out_different[2] = in[2] ^ in[1];\n assign out_different[1] = in[1] ^ in[0];\n assign out_different[0] = in[0] ^ in[3];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[3] & in[2];\n assign out_both[1] = in[2] & in[1];\n assign out_both[0] = in[1] & in[0];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[2];\n assign out_different[2] = in[2] ^ in[1];\n assign out_different[1] = in[1] ^ in[0];\n assign out_different[0] = in[0] ^ in[3];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[2] & in[3];\n assign out_both[1] = in[1] & in[2];\n assign out_both[0] = in[0] & in[1];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[0];\n assign out_different[2] = in[2] ^ in[3];\n assign out_different[1] = in[1] ^ in[2];\n assign out_different[0] = in[0] ^ in[1];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput [2:0] out_both,\n\toutput [3:1] out_any,\n\toutput [3:0] out_different\n);\n\n assign out_both[2] = in[2] & in[3];\n assign out_both[1] = in[1] & in[2];\n assign out_both[0] = in[0] & in[1];\n\n assign out_any[3] = in[3] | in[2];\n assign out_any[2] = in[2] | in[1];\n assign out_any[1] = in[1] | in[0];\n\n assign out_different[3] = in[3] ^ in[0];\n assign out_different[2] = in[2] ^ in[3];\n assign out_different[1] = in[1] ^ in[2];\n assign out_different[0] = in[0] ^ in[1];\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutp
{"task_id": "circuit6", "llmgen_RTL": ["module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n default: q = 16'h0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n default: q = 16'h0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\n always @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n default: q = 16'h0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n \n always @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n default: q = 16'h0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'b000: q = 16'h1232;\n 3'b001: q = 16'haee0;\n 3'b010: q = 16'h27d4;\n 3'b011: q = 16'h5a0e;\n 3'b100: q = 16'h2066;\n 3'b101: q = 16'h64ce;\n 3'b110: q = 16'hc526;\n 3'b111: q = 16'h2f19;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n default: q = 16'h0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\n case(a)\n 3'd0: q = 16'h1232;\n 3'd1: q = 16'haee0;\n 3'd2: q = 16'h27d4;\n 3'd3: q = 16'h5a0e;\n 3'd4: q = 16'h2066;\n 3'd5: q = 16'h64ce;\n 3'd6: q = 16'hc526;\n 3'd7: q = 16'h2f19;\n default: q = 16'h0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] a, \n\toutput reg [15:0] q\n);\n\nalways @(*) begin\
{"task_id": "countslow", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (slowena)\n q <= (q == 4'd9) ? 4'd0 : q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (slowena)\n q <= (q == 4'd9) ? 4'd0 : q + 4'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'd0;\n end else if (slowena) begin\n if (q == 4'd9) begin\n q <= 4'd0;\n end else begin\n q <= q + 1'd1;\n end\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input slowena,\n input reset,\n output reg [3:0] q\n);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (slowena)\n q <= (q == 4'd9) ? 4'd0 : q + 4'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'd0;\n end else if (slowena) begin\n if (q == 4'd9) begin\n q <= 4'd0;\n end else begin\n q <= q + 1'd1;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'd0;\n end else if (slowena) begin\n if (q == 4'd9) begin\n q <= 4'd0;\n end else begin\n q <= q + 1'd1;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (slowena)\n q <= (q == 4'd9) ? 4'd0 : q + 4'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'd0;\n end else if (slowena) begin\n if (q == 4'd9) begin\n q <= 4'd0;\n end else begin\n q <= q + 1'd1;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (slowena) begin\n if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1'd1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'd0;\n end else if (slowena) begin\n if (q == 4'd9) begin\n q <= 4'd0;\n end else begin\n q <= q + 1'd1;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'b0000;\n end else if (slowena) begin\n if (q == 4'd9) begin\n q <= 4'b0000;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput slowena,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (slowena) begin\n if (q == 4'd9)\n q <= 4'd0;\n
{"task_id": "m2014_q4f", "llmgen_RTL": ["module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n\tassign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = in1 & ~in2;\n\nendmodule"]}
{"task_id": "m2014_q4h", "llmgen_RTL": ["module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule"]}
{"task_id": "fsm1", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput areset,\n\toutput out\n);\n\n parameter A = 1'b0;\n parameter B = 1'b1;\n\n reg state, next_state;\n\n
{"task_id": "dualedge", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n\treg q1, q2;\n\n\talways @(posedge clk) begin\n\t\tq1 <= d;\n\tend\n\n\talways @(negedge clk) begin\n\t\tq2 <= d;\n\tend\n\n\talways @(*) begin\n\t\tq = clk ? q1 : q2;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge clk) begin\n q1 <= d;\n end\n\n always @(negedge clk) begin\n q2 <= d;\n end\n\n always @(*) begin\n q = clk ? q1 : q2;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput d,\n\toutput reg q);\n\n reg q1, q2;\n\n always @(posedge
{"task_id": "xnorgate", "llmgen_RTL": ["module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\nassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = ~(a ^ b);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = ~(a ^ b);\n\nendmodule"]}
{"task_id": "mt2015_q4", "llmgen_RTL": ["module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\nwire a1_out, a2_out, b1_out, b2_out;\nwire or_out, and_out;\n\n// Module A instances\nA a1 (.x(x), .y(y), .z(a1_out));\nA a2 (.x(x), .y(y), .z(a2_out));\n\n// Module B instances\nB b1 (.x(x), .y(y), .z(b1_out));\nB b2 (.x(x), .y(y), .z(b2_out));\n\n// OR gate\nassign or_out = a1_out | b1_out;\n\n// AND gate\nassign and_out = a2_out & b2_out;\n\n// XOR gate\nassign z = or_out ^ and_out;\n\nendmodule\n\nmodule A(\n input x,\n input y,\n output z\n);\n\nassign z = (x ^ y) & x;\n\nendmodule\n\nmodule B(\n input x,\n input y,\n output reg z\n);\n\nalways @(*) begin\n if (x == 1'b0 && y == 1'b0)\n z = 1'b1;\n else if (x == 1'b1 && y == 1'b1)\n z = 1'b1;\n else\n z = 1'b0;\nend\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\nwire a1_out, a2_out, b1_out, b2_out;\nwire or_out, and_out;\n\n// Module A instances\nA a1 (.x(x), .y(y), .z(a1_out));\nA a2 (.x(x), .y(y), .z(a2_out));\n\n// Module B instances\nB b1 (.x(x), .y(y), .z(b1_out));\nB b2 (.x(x), .y(y), .z(b2_out));\n\n// OR gate\nassign or_out = a1_out | b1_out;\n\n// AND gate\nassign and_out = a2_out & b2_out;\n\n// XOR gate\nassign z = or_out ^ and_out;\n\nendmodule\n\nmodule A(\n input x,\n input y,\n output z\n);\n\nassign z = (x ^ y) & x;\n\nendmodule\n\nmodule B(\n input x,\n input y,\n output reg z\n);\n\nalways @(*) begin\n if (x == 1'b0 && y == 1'b0)\n z = 1'b1;\n else if (x == 1'b1 && y == 1'b1)\n z = 1'b1;\n else\n z = 1'b0;\nend\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n wire a1_out, a2_out, b1_out, b2_out;\n wire or_out, and_out;\n\n // Module A instances\n assign a1_out = (x ^ y) & x;\n assign a2_out = (x ^ y) & x;\n\n // Module B instances\n assign b1_out = (~x & ~y) | (x & y);\n assign b2_out = (~x & ~y) | (x & y);\n\n // OR gate\n assign or_out = a1_out | b1_out;\n\n // AND gate\n assign and_out = a2_out & b2_out;\n\n // XOR gate\n assign z = or_out ^ and_out;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\nwire z_a1, z_b1, z_a2, z_b2;\nwire or_out, and_out;\n\n// Module A implementations\nassign z_a1 = (x ^ y) & x;\nassign z_a2 = (x ^ y) & x;\n\n// Module B implementations\nreg z_b1_reg, z_b2_reg;\n\nalways @(*) begin\n if (x == 0 && y == 0)\n z_b1_reg = 1;\n else if (x == 1 && y == 1)\n z_b1_reg = 1;\n else\n z_b1_reg = 0;\nend\n\nalways @(*) begin\n if (x == 0 && y == 0)\n z_b2_reg = 1;\n else if (x == 1 && y == 1)\n z_b2_reg = 1;\n else\n z_b2_reg = 0;\nend\n\nassign z_b1 = z_b1_reg;\nassign z_b2 = z_b2_reg;\n\n// OR and AND gates\nassign or_out = z_a1 | z_b1;\nassign and_out = z_a2 & z_b2;\n\n// Final XOR\nassign z = or_out ^ and_out;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\nwire z_a1, z_b1, z_a2, z_b2;\nwire or_out, and_out;\n\n// Module A instances\nA a1 (.x(x), .y(y), .z(z_a1));\nA a2 (.x(x), .y(y), .z(z_a2));\n\n// Module B instances\nB b1 (.x(x), .y(y), .z(z_b1));\nB b2 (.x(x), .y(y), .z(z_b2));\n\n// OR gate\nassign or_out = z_a1 | z_b1;\n\n// AND gate\nassign and_out = z_a2 & z_b2;\n\n// XOR gate\nassign z = or_out ^ and_out;\n\nendmodule\n\nmodule A(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\nassign z = (x^y) & x;\n\nendmodule\n\nmodule B(\n\tinput x,\n\tinput y,\n\toutput reg z\n);\n\nalways @(*) begin\n\tif (x == 0 && y == 0)\n\t\tz = 1;\n\telse if (x == 1 && y == 1)\n\t\tz = 1;\n\telse\n\t\tz = 0;\nend\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n \n wire a1_out, a2_out, b1_out, b2_out;\n wire or_out, and_out;\n \n // Module A instances\n module_a a1 (.x(x), .y(y), .z(a1_out));\n module_a a2 (.x(x), .y(y), .z(a2_out));\n \n // Module B instances\n module_b b1 (.x(x), .y(y), .z(b1_out));\n module_b b2 (.x(x), .y(y), .z(b2_out));\n \n // OR gate\n
{"task_id": "rotate100", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // Rotate right\n 2'b10: q <= {q[98:0], q[99]}; // Rotate left\n default: q <= q; // No rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // Rotate right\n 2'b10: q <= {q[98:0], q[99]}; // Rotate left\n default: q <= q; // No rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // rotate right\n 2'b10: q <= {q[98:0], q[99]}; // rotate left\n default: q <= q; // no rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // rotate right\n 2'b10: q <= {q[98:0], q[99]}; // rotate left\n default: q <= q; // no rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // Rotate right\n 2'b10: q <= {q[98:0], q[99]}; // Rotate left\n default: q <= q; // No rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // Rotate right\n 2'b10: q <= {q[98:0], q[99]}; // Rotate left\n default: q <= q; // No rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // Rotate right\n 2'b10: q <= {q[98:0], q[99]}; // Rotate left\n default: q <= q; // No rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [99:0] q);\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else begin\n case (ena)\n 2'b01: q <= {q[0], q[99:1]}; // Rotate right\n 2'b10: q <= {q[98:0], q[99]}; // Rotate left\n default: q <= q; // No rotation\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [1:0] ena,\n\tinput [99:0] data,\n\toutput reg [9
{"task_id": "review2015_count1k", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 10'd0;\n end else if (q == 10'd999) begin\n q <= 10'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 10'd0;\n end else if (q == 10'd999) begin\n q <= 10'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 10'd0;\n else if (q == 10'd999)\n q <= 10'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [9:0] q);\n\n always @(
{"task_id": "notgate", "llmgen_RTL": ["module top_module(\n\tinput in,\n\toutput out\n);\n\nassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\nassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\nassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n assign out = ~in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out\n);\n\n\tassign out = ~in;\n\nendmodule"]}
{"task_id": "fsm_onehot", "llmgen_RTL": ["module top_module (\n\tinput in,\n\tinput [9:0] state,\n\toutput [9:0] next_state,\n\toutput out1,\n\toutput out2\n);\n\n assign next_state[0] = (~in & (state[0] | state[1] | state[2] | state[3] | state[4])) | (state[7] & ~in) | (state[8] & ~in) | (state[9] & ~in);\n assign next_state[1] = (state[0] & in) | (state[8] & in) | (state[9] & in);\n assign next_state[2] = state[1] & in;\n assign next_state[3] = state[2] & in;\n assign next_state[4] = state[3] & in;\n assign next_state[5] = state[4] & in;\n assign next_state[6] = state[5] & in;\n assign next_state[7] = state[6] & in;\n assign next_state[8] = state[5] & ~in;\n assign next_state[9] = state[6] & ~in;\n\n assign out1 = state[8] | state[9];\n assign out2 = state[7] | state[9];\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [9:0] state,\n\toutput [9:0] next_state,\n\toutput out1,\n\toutput out2\n);\n\n assign next_state[0] = (~in & (state[0] | state[1] | state[2] | state[3] | state[4])) | (state[7] & ~in) | (state[8] & ~in) | (state[9] & ~in);\n assign next_state[1] = (state[0] & in) | (state[8] & in) | (state[9] & in);\n assign next_state[2] = state[1] & in;\n assign next_state[3] = state[2] & in;\n assign next_state[4] = state[3] & in;\n assign next_state[5] = state[4] & in;\n assign next_state[6] = state[5] & in;\n assign next_state[7] = state[6] & in;\n assign next_state[8] = state[5] & ~in;\n assign next_state[9] = state[6] & ~in;\n\n assign out1 = state[8] | state[9];\n assign out2 = state[7] | state[9];\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [9:0] state,\n\toutput [9:0] next_state,\n\toutput out1,\n\toutput out2\n);\n\n assign next_state[0] = (~in & (state[0] | state[1] | state[2] | state[3] | state[4])) | (state[7] & ~in) | (state[8] & ~in) | (state[9] & ~in);\n assign next_state[1] = (state[0] & in) | (state[8] & in) | (state[9] & in);\n assign next_state[2] = state[1] & in;\n assign next_state[3] = state[2] & in;\n assign next_state[4] = state[3] & in;\n assign next_state[5] = state[4] & in;\n assign next_state[6] = state[5] & in;\n assign next_state[7] = state[6] & in;\n assign next_state[8] = state[5] & ~in;\n assign next_state[9] = state[6] & ~in;\n\n assign out1 = state[8] | state[9];\n assign out2 = state[7] | state[9];\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [9:0] state,\n\toutput [9:0] next_state,\n\toutput out1,\n\toutput out2\n);\n\n assign next_state[0] = (~in & (state[0] | state[1] | state[2] | state[3] | state[4])) | (state[7] & ~in) | (state[8] & ~in) | (state[9] & ~in);\n assign next_state[1] = (state[0] & in) | (state[8] & in) | (state[9] & in);\n assign next_state[2] = state[1] & in;\n assign next_state[3] = state[2] & in;\n assign next_state[4] = state[3] & in;\n assign next_state[5] = state[4] & in;\n assign next_state[6] = state[5] & in;\n assign next_state[7] = state[6] & in;\n assign next_state[8] = state[5] & ~in;\n assign next_state[9] = state[6] & ~in;\n\n assign out1 = state[8] | state[9];\n assign out2 = state[7] | state[9];\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [9:0] state,\n\toutput [9:0] next_state,\n\toutput out1,\n\toutput out2);\n\n assign next_state[0] = (state[0] & ~in) | (state[1] & ~in) | (state[2] & ~in) | (state[3] & ~in) | (state[4] & ~in) | (state[7] & ~in) | (state[8] & ~in) | (state[9] & ~in);\n assign next_state[1] = (state[0] & in) | (state[8] & in) | (state[9] & in);\n assign next_state[2] = state[1] & in;\n assign next_state[3] = state[2] & in;\n assign next_state[4] = state[3] & in;\n assign next_state[5] = state[4] & in;\n assign next_state[6] = state[5] & in;\n assign next_state[7] = state[6] & in;\n assign next_state[8] = state[5] & ~in;\n assign next_state[9] = state[6] & ~in;\n\n assign out1 = state[8] | state[9];\n assign out2 = state[7] | state[9];\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [9:0] state,\
{"task_id": "ece241_2013_q7", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\nalways @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\nalways @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~Q; // Toggle\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\toutput reg Q\n);\n\n always @(posedge clk) begin\n case ({j, k})\n 2'b00: Q <= Q; // No change\n 2'b01: Q <= 1'b0; // Reset\n 2'b10: Q <= 1'b1; // Set\n 2'b11: Q <= ~
{"task_id": "popcount3", "llmgen_RTL": ["module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n\tassign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n input [2:0] in,\n output [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule", "module top_module (\n\tinput [2:0] in,\n\toutput [1:0] out\n);\n\n assign out = in[0] + in[1] + in[2];\n\nendmodule"]}
{"task_id": "vector5", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n wire [4:0] inputs = {a, b, c, d, e};\n \n genvar i, j;\n generate\n for (i = 0; i < 5; i = i + 1) begin : outer_loop\n for (j = 0; j < 5; j = j + 1) begin : inner_loop\n assign out[i*5 + j] = ~(inputs[i] ^ inputs[j]);\n end\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n wire [4:0] inputs = {a, b, c, d, e};\n \n genvar i, j;\n generate\n for (i = 0; i < 5; i = i + 1) begin : outer_loop\n for (j = 0; j < 5; j = j + 1) begin : inner_loop\n assign out[i*5 + j] = ~(inputs[i] ^ inputs[j]);\n end\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n assign out[24] = ~(a ^ a);\n assign out[23] = ~(a ^ b);\n assign out[22] = ~(a ^ c);\n assign out[21] = ~(a ^ d);\n assign out[20] = ~(a ^ e);\n \n assign out[19] = ~(b ^ a);\n assign out[18] = ~(b ^ b);\n assign out[17] = ~(b ^ c);\n assign out[16] = ~(b ^ d);\n assign out[15] = ~(b ^ e);\n \n assign out[14] = ~(c ^ a);\n assign out[13] = ~(c ^ b);\n assign out[12] = ~(c ^ c);\n assign out[11] = ~(c ^ d);\n assign out[10] = ~(c ^ e);\n \n assign out[9] = ~(d ^ a);\n assign out[8] = ~(d ^ b);\n assign out[7] = ~(d ^ c);\n assign out[6] = ~(d ^ d);\n assign out[5] = ~(d ^ e);\n \n assign out[4] = ~(e ^ a);\n assign out[3] = ~(e ^ b);\n assign out[2] = ~(e ^ c);\n assign out[1] = ~(e ^ d);\n assign out[0] = ~(e ^ e);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n wire [4:0] inputs = {a, b, c, d, e};\n \n genvar i, j;\n generate\n for (i = 0; i < 5; i = i + 1) begin : outer_loop\n for (j = 0; j < 5; j = j + 1) begin : inner_loop\n assign out[i*5 + j] = ~(inputs[i] ^ inputs[j]);\n end\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n wire [4:0] inputs = {a, b, c, d, e};\n \n genvar i, j;\n generate\n for (i = 0; i < 5; i = i + 1) begin : outer_loop\n for (j = 0; j < 5; j = j + 1) begin : inner_loop\n assign out[i*5 + j] = ~(inputs[i] ^ inputs[j]);\n end\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n assign out[24] = ~(a ^ a);\n assign out[23] = ~(a ^ b);\n assign out[22] = ~(a ^ c);\n assign out[21] = ~(a ^ d);\n assign out[20] = ~(a ^ e);\n \n assign out[19] = ~(b ^ a);\n assign out[18] = ~(b ^ b);\n assign out[17] = ~(b ^ c);\n assign out[16] = ~(b ^ d);\n assign out[15] = ~(b ^ e);\n \n assign out[14] = ~(c ^ a);\n assign out[13] = ~(c ^ b);\n assign out[12] = ~(c ^ c);\n assign out[11] = ~(c ^ d);\n assign out[10] = ~(c ^ e);\n \n assign out[9] = ~(d ^ a);\n assign out[8] = ~(d ^ b);\n assign out[7] = ~(d ^ c);\n assign out[6] = ~(d ^ d);\n assign out[5] = ~(d ^ e);\n \n assign out[4] = ~(e ^ a);\n assign out[3] = ~(e ^ b);\n assign out[2] = ~(e ^ c);\n assign out[1] = ~(e ^ d);\n assign out[0] = ~(e ^ e);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\tinput d,\n\tinput e,\n\toutput [24:0] out\n);\n\n wire [4:0] inputs = {a, b, c, d, e};\n \n genvar i, j;\n generate\n for (i = 0; i < 5; i = i + 1) begin : outer_loop\n for (j = 0; j < 5; j = j + 1) begin : inner_loop\n assign out[i*5 + j] = ~(inputs[i] ^ inputs[j]);\n end\n end\n endgenerate\n\nendmodule", "module
{"task_id": "lemmings1", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\toutput walk_left,\n\toutput walk_right\n);\n\n parameter LEFT = 1'b0, RIGHT = 1'b1;\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: next_state = (bump_left) ? RIGHT : LEFT;\n RIGHT: next_state = (bump_right) ? LEFT : RIGHT;\n endcase\n end\n\n assign walk_left = (state == LEFT);\n assign walk_right = (state == RIGHT);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\toutput walk_left,\n\toutput walk_right\n);\n\n parameter LEFT = 1'b0;\n parameter RIGHT = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: next_state = (bump_left) ? RIGHT : LEFT;\n RIGHT: next_state = (bump_right) ? LEFT : RIGHT;\n default: next_state = LEFT;\n endcase\n end\n\n assign walk_left = (state == LEFT);\n assign walk_right = (state == RIGHT);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\toutput walk_left,\n\toutput walk_right\n);\n\n parameter LEFT = 1'b0;\n parameter RIGHT = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: next_state = (bump_left) ? RIGHT : LEFT;\n RIGHT: next_state = (bump_right) ? LEFT : RIGHT;\n default: next_state = LEFT;\n endcase\n end\n\n assign walk_left = (state == LEFT);\n assign walk_right = (state == RIGHT);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\toutput walk_left,\n\toutput walk_right\n);\n\n parameter LEFT = 1'b0;\n parameter RIGHT = 1'b1;\n\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: next_state = (bump_left) ? RIGHT : LEFT;\n RIGHT: next_state = (bump_right) ? LEFT : RIGHT;\n default: next_state = LEFT;\n endcase\n end\n\n assign walk_left = (state == LEFT);\n assign walk_right = (state == RIGHT);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\toutput reg walk_left,\n\toutput reg walk_right\n);\n\n parameter LEFT = 1'b0;\n parameter RIGHT = 1'b1;\n \n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: \n if (bump_left)\n next_state = RIGHT;\n else\n next_state = LEFT;\n RIGHT:\n if (bump_right)\n next_state = LEFT;\n else\n next_state = RIGHT;\n endcase\n end\n\n always @(*) begin\n case (state)\n LEFT: begin\n walk_left = 1'b1;\n walk_right = 1'b0;\n end\n RIGHT: begin\n walk_left = 1'b0;\n walk_right = 1'b1;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\toutput reg walk_left,\
{"task_id": "circuit1", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\toutput q\n);\n\n assign q = a & b;\n\nendmodule"]}
{"task_id": "7458", "llmgen_RTL": ["module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module top_module(\n\tinput p1a, \n\tinput p1b, \n\tinput p1c, \n\tinput p1d,\n\tinput p1e,\n\tinput p1f,\n\toutput p1y, \n\tinput p2a, \n\tinput p2b, \n\tinput p2c, \n\tinput p2d, \n\toutput p2y\n);\n\n wire and1, and2, and3, and4;\n\n assign and1 = p1a & p1b & p1c;\n assign and2 = p1d & p1e & p1f;\n assign and3 = p2a & p2b;\n assign and4 = p2c & p2d;\n\n assign p1y = and1 | and2;\n assign p2y = and3 | and4;\n\nendmodule", "module to
{"task_id": "2014_q3c", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput x,\n\tinput [2:0] y,\n\toutput reg Y0,\n\toutput reg z\n);\n\n always @(*) begin\n case (y)\n 3'b000: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b001: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n 3'b010: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b011: begin\n Y0 = x;\n z = 1'b1;\n end\n 3'b100: begin\n Y0 = 1'b0;\n z = 1'b1;\n end\n default: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\tinput [2:0] y,\n\toutput reg Y0,\n\toutput reg z\n);\n\n always @(*) begin\n case (y)\n 3'b000: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b001: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n 3'b010: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b011: begin\n Y0 = ~x;\n z = 1'b1;\n end\n 3'b100: begin\n Y0 = 1'b1;\n z = 1'b1;\n end\n default: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\tinput [2:0] y,\n\toutput reg Y0,\n\toutput reg z\n);\n\n always @(*) begin\n case (y)\n 3'b000: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b001: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n 3'b010: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b011: begin\n Y0 = x;\n z = 1'b1;\n end\n 3'b100: begin\n Y0 = 1'b1;\n z = 1'b1;\n end\n default: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\tinput [2:0] y,\n\toutput reg Y0,\n\toutput reg z\n);\n\n always @(*) begin\n case (y)\n 3'b000: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b001: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n 3'b010: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b011: begin\n Y0 = x;\n z = 1'b1;\n end\n 3'b100: begin\n Y0 = 1'b0;\n z = 1'b1;\n end\n default: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\tinput [2:0] y,\n\toutput reg Y0,\n\toutput reg z\n);\n\n always @(*) begin\n case (y)\n 3'b000: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b001: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n 3'b010: begin\n Y0 = x;\n z = 1'b0;\n end\n 3'b011: begin\n Y0 = x;\n z = 1'b1;\n end\n 3'b100: begin\n Y0 = 1'b1;\n z = 1'b1;\n end\n default: begin\n Y0 = 1'b0;\n z = 1'b0;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput x,\n\tinput [2:0] y,\n\toutput reg Y0,\n\toutput reg z\n);\n\n always @(*) begin\n case (y)\n 3'b000: begin\n
{"task_id": "m2014_q4e", "llmgen_RTL": ["module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n\tassign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\nassign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n\tassign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n\tassign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n\tassign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\toutput logic out\n);\n\n assign out = ~(in1 | in2);\n\nendmodule"]}
{"task_id": "wire4", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\t\n\tassign w = a;\n\tassign x = b;\n\tassign y = b;\n\tassign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n\tassign w = a;\n\tassign x = b;\n\tassign y = b;\n\tassign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n\tassign w = a;\n\tassign x = b;\n\tassign y = b;\n\tassign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z = c;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput c,\n\toutput w,\n\toutput x,\n\toutput y,\n\toutput z );\n\n assign w = a;\n assign x = b;\n assign y = b;\n assign z =
{"task_id": "m2014_q4b", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\n always_ff @(posedge clk or posedge ar) begin\n if (ar)\n q <= 1'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar)\n q <= 1'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\n always_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\nalways_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput ar,\n\toutput logic q\n);\n\n always_ff @(posedge clk or posedge ar) begin\n if (ar) begin\n q <= 1'b0;\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput d,\n\tinput
{"task_id": "always_case", "llmgen_RTL": ["module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\nalways @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [2:0] sel,\n\tinput [3:0] data0,\n\tinput [3:0] data1,\n\tinput [3:0] data2,\n\tinput [3:0] data3,\n\tinput [3:0] data4,\n\tinput [3:0] data5,\n\toutput reg [3:0] out\n);\n\n always @(*) begin\n case(sel)\n 3'd0: out = data0;\n 3'd1: out = data1;\n 3'd2: out = data2;\n 3'd3: out = data3;\n 3'd4: out = data4;\n 3'd5: out = data5;\n default: out = 4'b0000;\n endcase\n
{"task_id": "timer", "llmgen_RTL": ["module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\n reg [9:0] counter;\n\n always @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'b0)\n counter <= counter - 1'b1;\n end\n\n assign tc = (counter == 10'b0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'b0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'b0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'b0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'b0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'b0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'b0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n\tinput load, \n\tinput [9:0] data, \n\toutput tc\n);\n\nreg [9:0] counter;\n\nalways @(posedge clk) begin\n if (load)\n counter <= data;\n else if (counter != 10'd0)\n counter <= counter - 1'b1;\nend\n\nassign tc = (counter == 10'd0);\n\nendmodule", "module top_module(\n\tinput clk, \n
{"task_id": "review2015_fsmseq", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\tinput data,\n\toutput reg start_shifting\n);\n\n\tlocalparam S0 = 3'b000;\n\tlocalparam S1 = 3'b001;\n\tlocalparam S11 = 3'b010;\n\tlocalparam S110 = 3'b011;\n\tlocalparam S1101 = 3'b100;\n\n\treg [2:0] state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tstate <= S0;\n\t\t\tstart_shifting <= 0;\n\t\tend else begin\n\t\t\tstate <= next_state;\n\t\t\tif (state == S1101)\n\t\t\t\tstart_shifting <= 1;\n\t\tend\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tS0: next_state = data ? S1 : S0;\n\t\t\tS1: next_state = data ? S11 : S0;\n\t\t\tS11: next_state = data ? S11 : S110;\n\t\t\tS110: next_state = data ? S1101 : S0;\n\t\t\tS1101: next_state = S1101;\n\t\t\tdefault: next_state = S0;\n\t\tendcase\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput data,\n\toutput reg start_shifting\n);\n\n reg [2:0] state, next_state;\n parameter S0 = 3'b000, S1 = 3'b001, S11 = 3'b010, S110 = 3'b011, S1101 = 3'b100;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= S0;\n start_shifting <= 0;\n end else begin\n state <= next_state;\n if (state == S1101)\n start_shifting <= 1;\n end\n end\n\n always @(*) begin\n case (state)\n S0: next_state = data ? S1 : S0;\n S1: next_state = data ? S11 : S0;\n S11: next_state = data ? S11 : S110;\n S110: next_state = data ? S1101 : S0;\n S1101: next_state = S1101;\n default: next_state = S0;\n endcase\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput data,\n\toutput reg start_shifting\n);\n\n reg [3:0] state;\n parameter S0 = 4'b0000,\n S1 = 4'b0001,\n S11 = 4'b0010,\n S110 = 4'b0011,\n S1101 = 4'b0100;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= S0;\n start_shifting <= 0;\n end else begin\n case (state)\n S0: state <= data ? S1 : S0;\n S1: state <= data ? S11 : S0;\n S11: state <= data ? S11 : S110;\n S110: state <= data ? S1101 : S0;\n S1101: state <= S1101;\n default: state <= S0;\n endcase\n\n if (state == S1101)\n start_shifting <= 1;\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input reset,\n input data,\n output reg start_shifting\n);\n\n reg [3:0] state, next_state;\n parameter S0 = 4'b0000, S1 = 4'b0001, S11 = 4'b0011, S110 = 4'b0111, S1101 = 4'b1111;\n\n always @(posedge clk) begin\n if (reset)\n state <= S0;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n S0: next_state = data ? S1 : S0;\n S1: next_state = data ? S11 : S0;\n S11: next_state = data ? S11 : S110;\n S110: next_state = data ? S1101 : S0;\n S1101: next_state = S1101;\n default: next_state = S0;\n endcase\n end\n\n always @(posedge clk) begin\n if (reset)\n start_shifting <= 0;\n else if (state == S1101)\n start_shifting <= 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput data,\n\toutput reg start_shifting\n);\n\n reg [3:0] state;\n parameter S0 = 4'b0000,\n S1 = 4'b0001,\n S11 = 4'b0010,\n S110 = 4'b0011,\n S1101 = 4'b0100;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= S0;\n start_shifting <= 0;\n end else begin\n case (state)\n S0: state <= data ? S1 : S0;\n S1: state <= data ? S11 : S0;\n S11: state <= data ? S11 : S110;\n S110: state <= data ? S1101 : S0
{"task_id": "dff8r", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 8'b0;\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 8'b0;\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\nalways @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 8'b0;\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7
{"task_id": "edgedetect2", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] prev_in;\n\nalways @(posedge clk) begin\n prev_in <= in;\n anyedge <= in ^ prev_in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] prev_in;\n\nalways @(posedge clk) begin\n prev_in <= in;\n anyedge <= in ^ prev_in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] prev_in;\n\nalways @(posedge clk) begin\n prev_in <= in;\n anyedge <= in ^ prev_in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] anyedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n anyedge <= in ^ in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutpu
{"task_id": "count1to10", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1; // Reset to 1\n else if (q == 4'd10)\n q <= 4'd1; // Wrap around to 1 after reaching 10\n else\n q <= q + 1'b1; // Increment counter\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\t\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tq <= 4'd1;\n\t\telse if (q == 4'd10)\n\t\t\tq <= 4'd1;\n\t\telse\n\t\t\tq <= q + 1'd1;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q\n);\n\nalways @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'b1;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q\n);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q\n);\n\nalways @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'd1;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'd1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q\n);\n\nalways @(posedge clk) begin\n if (reset)\n q <= 4'd1;\n else if (q == 4'd10)\n q <= 4'd1;\n else\n q <= q + 1'd1;\nend\n\nendmodule", "module top_module
{"task_id": "circuit9", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a == 1'b1)\n q <= 3'd4;\n else if (q == 3'd0)\n q <= 3'd1;\n else if (q == 3'd6)\n q <= 3'd0;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0) begin\n q <= 3'd1;\n end else if (q == 3'd6) begin\n q <= 3'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0)\n q <= 3'd1;\n else if (q == 3'd6)\n q <= 3'd0;\n else\n q <= q + 1'b1;\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0) begin\n q <= 3'd1;\n end else if (q == 3'd6) begin\n q <= 3'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0)\n q <= 3'd1;\n else if (q == 3'd6)\n q <= 3'd0;\n else\n q <= q + 1'b1;\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0) begin\n q <= 3'd1;\n end else if (q == 3'd6) begin\n q <= 3'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0) begin\n q <= 3'd1;\n end else if (q == 3'd6) begin\n q <= 3'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0) begin\n q <= 3'd1;\n end else if (q == 3'd6) begin\n q <= 3'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0 || q == 3'd7) begin\n q <= 3'd1;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a, \n\toutput reg [2:0] q\n);\n\n always @(posedge clk) begin\n if (a) begin\n q <= 3'd4;\n end else begin\n if (q == 3'd0) begin\n q <= 3'd1;\n end else if (q == 3'd6) begin\n q <= 3'd0;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\
{"task_id": "lfsr5", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q <= {q[3:0], q[4] ^ q[2]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'b00001;\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\nalways @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n end else begin\n q[4] <= q[3];\n q[3] <= q[2] ^ q[4];\n q[2] <= q[1];\n q[1] <= q[0];\n q[0] <= q[4];\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [4:0] q\n);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 5'h1; // Reset to 1\n
{"task_id": "bugs_addsubz", "llmgen_RTL": ["module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_is_zero\n);\n\n always @(*) begin\n case (do_sub)\n 1'b0: out = a + b;\n 1'b1: out = a - b;\n endcase\n\n result_is_zero = (out == 8'b0);\n end\n\nendmodule", "module top_module (\n\tinput do_sub,\n\tinput [7:0] a,\n\tinput [7:0] b,\n\toutput reg [7:0] out,\n\toutput reg result_
{"task_id": "m2014_q3", "llmgen_RTL": ["module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0101, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = x[1] | (~x[2] & x[3]);\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0101, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = x[1] | (x[3] & ~x[4]);\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0111, 4'b1011, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = 1'b0; // Assigning don't-care outputs to 0\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case(x)\n 4'b0001, 4'b0010, 4'b0100: f = 1'b0;\n 4'b0111, 4'b1011, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0111, 4'b1000, 4'b1001, 4'b1010, 4'b1011, 4'b1100, 4'b1101: f = 1'b1;\n default: f = 1'b0; // Assigning 0 to don't-care conditions\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0101, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = x[3] | (~x[4] & x[2]);\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0111, 4'b1000, 4'b1001, 4'b1010, 4'b1011: f = 1'b1;\n 4'b0010, 4'b0100, 4'b0110, 4'b1110: f = 1'b0;\n default: f = 1'b0; // Assigning don't-care outputs to 0\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0111, 4'b1011, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = 1'b0; // Treating don't-cares as 0\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0101, 4'b1000: f = 1'b0;\n 4'b0110, 4'b1100, 4'b1101, 4'b1110: f = 1'b1;\n default: f = x[1] | (~x[2] & x[3]);\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0111, 4'b1000, 4'b1001, 4'b1010, 4'b1011, 4'b1100: f = 1'b1;\n default: f = 1'b0; // Assigning don't-care conditions to 0\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0100, 4'b0110: f = 1'b0;\n 4'b0111, 4'b1000, 4'b1001, 4'b1010, 4'b1011, 4'b1100, 4'b1101: f = 1'b1;\n default: f = 1'b0; // Assign don't-cares to 0 for simplicity\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n 4'b0001, 4'b0010, 4'b0100: f = 1'b0;\n 4'b0110, 4'b1000, 4'b1001, 4'b1010, 4'b1011, 4'b1100, 4'b1101: f = 1'b1;\n 4'b0111: f = 1'b1;\n default: f = 1'b0; // Assigning 0 to don't-care conditions\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x)\n
{"task_id": "bugs_case", "llmgen_RTL": ["module top_module (\n\tinput [7:0] code,\n\toutput reg [3:0] out,\n\toutput reg valid\n);\n\n always @(*) begin\n case(code)\n 8'h45: begin out = 4'd0; valid = 1'b1; end\n 8'h16: begin out = 4'd1; valid = 1'b1; end\n 8'h1e: begin out = 4'd2; valid = 1'b1; end\n 8'h26: begin out = 4'd3; valid = 1'b1; end\n 8'h25: begin out = 4'd4; valid = 1'b1; end\n 8'h2e: begin out = 4'd5; valid = 1'b1; end\n 8'h36: begin out = 4'd6; valid = 1'b1; end\n 8'h3d: begin out = 4'd7; valid = 1'b1; end\n 8'h3e: begin out = 4'd8; valid = 1'b1; end\n 8'h46: begin out = 4'd9; valid = 1'b1; end\n default: begin out = 4'd0; valid = 1'b0; end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [7:0] code,\n\toutput reg [3:0] out,\n\toutput reg valid\n);\n\nalways @(*) begin\n case (code)\n 8'h45: begin out = 4'd0; valid = 1'b1; end\n 8'h16: begin out = 4'd1; valid = 1'b1; end\n 8'h1e: begin out = 4'd2; valid = 1'b1; end\n 8'h26: begin out = 4'd3; valid = 1'b1; end\n 8'h25: begin out = 4'd4; valid = 1'b1; end\n 8'h2e: begin out = 4'd5; valid = 1'b1; end\n 8'h36: begin out = 4'd6; valid = 1'b1; end\n 8'h3d: begin out = 4'd7; valid = 1'b1; end\n 8'h3e: begin out = 4'd8; valid = 1'b1; end\n 8'h46: begin out = 4'd9; valid = 1'b1; end\n default: begin out = 4'd0; valid = 1'b0; end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] code,\n\toutput reg [3:0] out,\n\toutput reg valid\n);\n\nalways @(*) begin\n case (code)\n 8'h45: begin out = 4'd0; valid = 1'b1; end\n 8'h16: begin out = 4'd1; valid = 1'b1; end\n 8'h1e: begin out = 4'd2; valid = 1'b1; end\n 8'h26: begin out = 4'd3; valid = 1'b1; end\n 8'h25: begin out = 4'd4; valid = 1'b1; end\n 8'h2e: begin out = 4'd5; valid = 1'b1; end\n 8'h36: begin out = 4'd6; valid = 1'b1; end\n 8'h3d: begin out = 4'd7; valid = 1'b1; end\n 8'h3e: begin out = 4'd8; valid = 1'b1; end\n 8'h46: begin out = 4'd9; valid = 1'b1; end\n default: begin out = 4'd0; valid = 1'b0; end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] code,\n\toutput reg [3:0] out,\n\toutput reg valid\n);\n\nalways @(*) begin\n case (code)\n 8'h45: begin out = 4'd0; valid = 1'b1; end\n 8'h16: begin out = 4'd1; valid = 1'b1; end\n 8'h1e: begin out = 4'd2; valid = 1'b1; end\n 8'h26: begin out = 4'd3; valid = 1'b1; end\n 8'h25: begin out = 4'd4; valid = 1'b1; end\n 8'h2e: begin out = 4'd5; valid = 1'b1; end\n 8'h36: begin out = 4'd6; valid = 1'b1; end\n 8'h3d: begin out = 4'd7; valid = 1'b1; end\n 8'h3e: begin out = 4'd8; valid = 1'b1; end\n 8'h46: begin out = 4'd9; valid = 1'b1; end\n default: begin out = 4'd0; valid = 1'b0; end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] code,\n\toutput reg [3:0] out,\n\toutput reg valid\n);\n\nalways @(*) begin\n case (code)\n 8'h45: begin out = 4'd0; valid = 1'b1; end\n 8'h16: begin out = 4'd1; valid = 1'b1; end\n 8'h1e: begin out = 4'd2; valid = 1'b1; end\n 8'h26: begin out = 4'd3; valid = 1'b1; end\n 8'h25: begin out = 4'd4; valid = 1'b1; end\n 8'h2e: begin out = 4'd5; valid = 1'b1; end\n 8'h36: begin out = 4'd6; valid = 1'b1; end\n 8'h3d: begin out = 4'd7; valid = 1'b1; end\n 8'h3e: begin out = 4'd8; valid = 1'b1; end\n 8'h46: begin out = 4'd9; valid = 1'b1; end\n default: begin out = 4'd0; valid = 1'b0; end\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [7:0] code,\n\toutput reg [3:0] out,\n\toutput reg valid\n);\n\nalways @(*) begin\n case(code)\n 8'h45: begin out = 4'd0; valid = 1'b1; end\n 8'h16: begin out = 4'd1; valid = 1'b1; end\n 8'h1e: begin out = 4'd2; valid = 1'b1; end\n 8'h26: begin out = 4'd3
{"task_id": "vectorr", "llmgen_RTL": ["module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] = in[3];\n\tassign out[5] = in[2];\n\tassign out[6] = in[1];\n\tassign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] = in[3];\n\tassign out[5] = in[2];\n\tassign out[6] = in[1];\n\tassign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] = in[3];\n\tassign out[5] = in[2];\n\tassign out[6] = in[1];\n\tassign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] = in[3];\n\tassign out[5] = in[2];\n\tassign out[6] = in[1];\n\tassign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] = in[3];\n\tassign out[5] = in[2];\n\tassign out[6] = in[1];\n\tassign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] = in[3];\n\tassign out[5] = in[2];\n\tassign out[6] = in[1];\n\tassign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n assign out[0] = in[7];\n assign out[1] = in[6];\n assign out[2] = in[5];\n assign out[3] = in[4];\n assign out[4] = in[3];\n assign out[5] = in[2];\n assign out[6] = in[1];\n assign out[7] = in[0];\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [7:0] out\n);\n\n\tassign out[0] = in[7];\n\tassign out[1] = in[6];\n\tassign out[2] = in[5];\n\tassign out[3] = in[4];\n\tassign out[4] =
{"task_id": "kmap3", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0100: out = 1'b0;\n 4'b0101: out = 1'b0;\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b0;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b1;\n 4'b1100: out = 1'b1;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b1;\n 4'b1010: out = 1'b1;\n 4'b1011: out = 1'b1;\n default: out = 1'b1; // Covering don't care conditions\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b0;\n 4'b0010: out = 1'b0;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b0;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b1;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b1;\n 4'b1010: out = 1'b1;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b1;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b1;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b0;\n 4'b0010: out = 1'b0;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b0;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b1;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b1;\n 4'b1010: out = 1'b1;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b1;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b1;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\n always @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b0;\n 4'b0010: out = 1'b0;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b0;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b1;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b1;\n 4'b1010: out = 1'b1;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b1;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b1;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b0;\n 4'b0010: out = 1'b0;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b0;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b1;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b1;\n 4'b1010: out = 1'b1;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b1;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b1;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput reg out\n);\n\nalways @(*) begin\n case ({a, b, c, d})\n 4'b0000: out = 1'b0;\n 4'b0001: out = 1'b0;\n 4'b0010: out = 1'b0;\n 4'b0011: out = 1'b0;\n 4'b0100: out = 1'b0;\n 4'b0101: out = 1'b0;\n 4'b0110: out = 1'b1;\n 4'b0111: out = 1'b1;\n 4'b1000: out = 1'b1;\n 4'b1001: out = 1'b1;\n 4'b1010: out = 1'b1;\n 4'b1011: out = 1'b1;\n 4'b1100: out = 1'b1;\n 4'b1101: out = 1'b1;\n 4'b1110: out = 1'b1;\n 4'b1111: out = 1'b1;\n endcase\n
{"task_id": "review2015_shiftcount", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {data, q[3:1]};\n end\n else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end\n else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end\n else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end else if (count_ena) begin\n q <= q - 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput shift_ena,\n\tinput count_ena,\n\tinput data,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (shift_ena) begin\n q <= {q[2:0], data};\n end\n else if (co
{"task_id": "wire", "llmgen_RTL": ["module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\t\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule", "module top_module(\n\tinput in,\n\toutput out);\n\n\tassign out = in;\n\nendmodule"]}
{"task_id": "review2015_fsmshift", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\n reg [2:0] count;\n\n always @(posedge clk) begin\n if (reset) begin\n count <= 3'd0;\n shift_ena <= 1'b1;\n end else if (count < 3'd4) begin\n count <= count + 1'b1;\n shift_ena <= 1'b1;\n end else begin\n shift_ena <= 1'b0;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\nreg [2:0] count;\n\nalways @(posedge clk) begin\n if (reset) begin\n shift_ena <= 1'b1;\n count <= 3'd0;\n end else begin\n if (count < 3'd3) begin\n shift_ena <= 1'b1;\n count <= count + 1'b1;\n end else begin\n shift_ena <= 1'b0;\n count <= count;\n end\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\nreg [2:0] count;\n\nalways @(posedge clk) begin\n if (reset) begin\n count <= 3'd0;\n shift_ena <= 1'b1;\n end else begin\n if (count < 3'd3) begin\n count <= count + 1'b1;\n shift_ena <= 1'b1;\n end else begin\n count <= count;\n shift_ena <= 1'b0;\n end\n end\nend\n\nendmodule", "module top_module(\n input clk,\n input reset,\n output reg shift_ena\n);\n\n reg [1:0] count;\n\n always @(posedge clk) begin\n if (reset) begin\n shift_ena <= 1'b1;\n count <= 2'b00;\n end else begin\n if (count < 2'b11) begin\n count <= count + 1'b1;\n shift_ena <= 1'b1;\n end else begin\n shift_ena <= 1'b0;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\n\treg [2:0] count;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tshift_ena <= 1'b1;\n\t\t\tcount <= 3'd0;\n\t\tend\n\t\telse begin\n\t\t\tif (count < 3'd3) begin\n\t\t\t\tshift_ena <= 1'b1;\n\t\t\t\tcount <= count + 1'b1;\n\t\t\tend\n\t\t\telse begin\n\t\t\t\tshift_ena <= 1'b0;\n\t\t\t\tcount <= count;\n\t\t\tend\n\t\tend\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\nreg [2:0] count;\n\nalways @(posedge clk) begin\n if (reset) begin\n shift_ena <= 1'b1;\n count <= 3'd0;\n end else begin\n if (count < 3'd3) begin\n shift_ena <= 1'b1;\n count <= count + 1'b1;\n end else begin\n shift_ena <= 1'b0;\n count <= count;\n end\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\nreg [2:0] counter;\n\nalways @(posedge clk) begin\n if (reset) begin\n shift_ena <= 1'b1;\n counter <= 3'd0;\n end else begin\n if (counter < 3'd3) begin\n shift_ena <= 1'b1;\n counter <= counter + 1'b1;\n end else begin\n shift_ena <= 1'b0;\n counter <= counter;\n end\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\n reg [2:0] count;\n\n always @(posedge clk) begin\n if (reset) begin\n shift_ena <= 1'b1;\n count <= 3'd0;\n end else begin\n if (count < 3'd3) begin\n shift_ena <= 1'b1;\n count <= count + 1'b1;\n end else begin\n shift_ena <= 1'b0;\n count <= count;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg shift_ena\n);\n\nreg [2:0] count;\n\nalways @(posedge clk) begin\n if (reset) begin\n shift_ena <= 1'b1;\n count <= 3'd0;\n end else begin\n if (count < 3'd3) begin\n shift_ena <= 1'b1;\n count <= count + 1'b1;\n end else begin\n
{"task_id": "count15", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n input clk,\n input reset,\n output reg [3:0] q\n);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n input clk,\n input reset,\n output reg [3:0] q\n);\n\nalways @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'b0000;\n end else begin\n if (q == 4'b1111) begin\n q <= 4'b0000;\n end else begin\n q <= q + 1;\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'b0000;\n end else begin\n if (q == 4'b1111) begin\n q <= 4'b0000;\n end else begin\n q <= q + 1'b1;\n end\n end\n end\n\nendmodule", "module
{"task_id": "always_if", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n // Using assign statement\n assign out_assign = (sel_b1 & sel_b2) ? b : a;\n\n // Using procedural if statement\n always @(*) begin\n if (sel_b1 & sel_b2)\n out_always = b;\n else\n out_always = a;\n end\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel_b1,\n\tinput sel_b2,\n\toutput out_assign,\n\toutput reg out_always\n);\n\n assign out_assig
{"task_id": "kmap1", "llmgen_RTL": ["module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = ~a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = ~a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = ~a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = (~a & b) | (b) | (c);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = (~a & b) | (b) | (c);\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\tinput c,\n\toutput out\n);\n\n assign out = a | b | c;\n\nendmodule"]}
{"task_id": "2013_q2afsm", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput [3:1] r,\n\toutput [3:1] g\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk) begin\n if (!resetn)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: begin\n if (r[1]) next_state = B;\n else if (r[2]) next_state = C;\n else if (r[3]) next_state = D;\n else next_state = A;\n end\n B: begin\n if (r[1]) next_state = B;\n else next_state = A;\n end\n C: begin\n if (r[2]) next_state = C;\n else next_state = A;\n end\n D: begin\n if (r[3]) next_state = D;\n else next_state = A;\n end\n default: next_state = A;\n endcase\n end\n\n assign g[1] = (state == B);\n assign g[2] = (state == C);\n assign g[3] = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput [3:1] r,\n\toutput [3:1] g\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk) begin\n if (!resetn)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: begin\n if (r[1])\n next_state = B;\n else if (r[2])\n next_state = C;\n else if (r[3])\n next_state = D;\n else\n next_state = A;\n end\n B: begin\n if (r[1])\n next_state = B;\n else\n next_state = A;\n end\n C: begin\n if (r[2])\n next_state = C;\n else\n next_state = A;\n end\n D: begin\n if (r[3])\n next_state = D;\n else\n next_state = A;\n end\n default: next_state = A;\n endcase\n end\n\n assign g[1] = (state == B);\n assign g[2] = (state == C);\n assign g[3] = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput [3:1] r,\n\toutput [3:1] g\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk) begin\n if (!resetn)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: begin\n if (r[1])\n next_state = B;\n else if (r[2])\n next_state = C;\n else if (r[3])\n next_state = D;\n else\n next_state = A;\n end\n B: begin\n if (r[1])\n next_state = B;\n else\n next_state = A;\n end\n C: begin\n if (r[2])\n next_state = C;\n else\n next_state = A;\n end\n D: begin\n if (r[3])\n next_state = D;\n else\n next_state = A;\n end\n default: next_state = A;\n endcase\n end\n\n assign g[1] = (state == B);\n assign g[2] = (state == C);\n assign g[3] = (state == D);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput [3:1] r,\n\toutput [3:1] g\n);\n\n parameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk) begin\n if (!resetn)\n
{"task_id": "count10", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else if (q == 4'b1001)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n q <= 4'd0;\n else\n q <= q + 1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else if (q == 4'b1001)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 4'b0000;\n end else if (q == 4'b1001) begin\n q <= 4'b0000;\n end else begin\n q <= q + 1'b1;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else if (q == 4'b1001)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'b0000;\n else if (q == 4'b1001)\n q <= 4'b0000;\n else\n q <= q + 1'b1;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput reg [3:0] q);\n\n always @(posedge clk) begin\n if (reset)\n q <= 4'd0;\n else if (q == 4'd9)\n
{"task_id": "fsm_ps2", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg done\n);\n\n parameter SEARCH = 2'b00, BYTE2 = 2'b01, BYTE3 = 2'b10;\n reg [1:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= SEARCH;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n done = 1'b0;\n\n case (state)\n SEARCH: begin\n if (in[3])\n next_state = BYTE2;\n end\n BYTE2: begin\n next_state = BYTE3;\n end\n BYTE3: begin\n done = 1'b1;\n if (in[3])\n next_state = BYTE2;\n else\n next_state = SEARCH;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput done\n);\n\n parameter SEARCH = 2'b00, BYTE2 = 2'b01, BYTE3 = 2'b10;\n reg [1:0] state, next_state;\n reg done_reg;\n\n always @(posedge clk) begin\n if (reset)\n state <= SEARCH;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n done_reg = 1'b0;\n case (state)\n SEARCH: if (in[3]) next_state = BYTE2;\n BYTE2: next_state = BYTE3;\n BYTE3: begin\n next_state = in[3] ? BYTE2 : SEARCH;\n done_reg = 1'b1;\n end\n endcase\n end\n\n assign done = done_reg;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg done\n);\n\n parameter SEARCH = 2'b00, BYTE2 = 2'b01, BYTE3 = 2'b10;\n reg [1:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= SEARCH;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n done = 1'b0;\n case (state)\n SEARCH: begin\n if (in[3])\n next_state = BYTE2;\n end\n BYTE2: begin\n next_state = BYTE3;\n end\n BYTE3: begin\n done = 1'b1;\n if (in[3])\n next_state = BYTE2;\n else\n next_state = SEARCH;\n end\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg done\n);\n\n\treg [1:0] state, next_state;\n\tparameter S0 = 2'b00, S1 = 2'b01, S2 = 2'b10;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= S0;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tdone = 1'b0;\n\t\tcase (state)\n\t\t\tS0: if (in[3]) next_state = S1;\n\t\t\tS1: next_state = S2;\n\t\t\tS2: begin\n\t\t\t\tif (in[3])\n\t\t\t\t\tnext_state = S1;\n\t\t\t\telse\n\t\t\t\t\tnext_state = S0;\n\t\t\t\tdone = 1'b1;\n\t\t\tend\n\t\tendcase\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput done\n);\n\n reg [1:0] state, next_state;\n parameter SEARCH = 2'b00, BYTE2 = 2'b01, BYTE3 = 2'b10;\n\n always @(posedge clk) begin\n if (reset)\n state <= SEARCH;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n SEARCH: next_state = (in[3]) ? BYTE2 : SEARCH;\n BYTE2: next_state = BYTE3;\n BYTE3: next_state = (in[3]) ? BYTE2 : SEARCH;\n default: next_state = SEARCH;\n endcase\n end\n\n assign done = (state == BYTE3);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput [7:0] in,\n\tinput reset,\n\toutput reg done\n);\n\n\tlocalparam SEARCH = 2'b00, BYTE2 = 2'b01, BYTE3 = 2'b10;\n\treg [1:0] state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= SEARCH;\n\t\telse\n\t\t\tstate <= next_state
{"task_id": "mux2to1", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel == 0) ? a : b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = sel ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n\tassign out = (sel) ? b : a;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput sel,\n\toutput out\n);\n\n assign out = (sel) ? b : a;\n\nendmodule"]}
{"task_id": "gates4", "llmgen_RTL": ["module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n\tassign out_and = &in;\n\tassign out_or = |in;\n\tassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n\tassign out_and = &in;\n\tassign out_or = |in;\n\tassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n\tassign out_and = &in;\n\tassign out_or = |in;\n\tassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule"]}
{"task_id": "2014_q3bfsm", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput reset,\n\tinput x,\n\toutput reg z\n);\n\nreg [2:0] state, next_state;\n\nalways @(posedge clk) begin\n if (reset)\n state <= 3'b000;\n else\n state <= next_state;\nend\n\nalways @(*) begin\n case (state)\n 3'b000: next_state = x ? 3'b001 : 3'b000;\n 3'b001: next_state = x ? 3'b100 : 3'b001;\n 3'b010: next_state = x ? 3'b001 : 3'b010;\n 3'b011: next_state = x ? 3'b010 : 3'b001;\n 3'b100: next_state = x ? 3'b100 : 3'b011;\n default: next_state = 3'b000;\n endcase\nend\n\nalways @(*) begin\n case (state)\n 3'b011, 3'b100: z = 1'b1;\n default: z = 1'b0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput x,\n\toutput reg z\n);\n\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= 3'b000;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n 3'b000: next_state = x ? 3'b001 : 3'b000;\n 3'b001: next_state = x ? 3'b100 : 3'b001;\n 3'b010: next_state = x ? 3'b001 : 3'b010;\n 3'b011: next_state = x ? 3'b010 : 3'b001;\n 3'b100: next_state = x ? 3'b100 : 3'b011;\n default: next_state = 3'b000;\n endcase\n end\n\n always @(*) begin\n case (state)\n 3'b011, 3'b100: z = 1'b1;\n default: z = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput x,\n\toutput reg z\n);\n\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= 3'b000;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n 3'b000: next_state = x ? 3'b001 : 3'b000;\n 3'b001: next_state = x ? 3'b100 : 3'b001;\n 3'b010: next_state = x ? 3'b001 : 3'b010;\n 3'b011: next_state = x ? 3'b010 : 3'b001;\n 3'b100: next_state = x ? 3'b100 : 3'b011;\n default: next_state = 3'b000;\n endcase\n end\n\n always @(*) begin\n case (state)\n 3'b011, 3'b100: z = 1'b1;\n default: z = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput x,\n\toutput reg z\n);\n\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= 3'b000;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n 3'b000: next_state = x ? 3'b001 : 3'b000;\n 3'b001: next_state = x ? 3'b100 : 3'b001;\n 3'b010: next_state = x ? 3'b001 : 3'b010;\n 3'b011: next_state = x ? 3'b010 : 3'b001;\n 3'b100: next_state = x ? 3'b100 : 3'b011;\n default: next_state = 3'b000;\n endcase\n end\n\n always @(*) begin\n case (state)\n 3'b011, 3'b100: z = 1'b1;\n default: z = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput x,\n\toutput reg z\n);\n\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= 3'b000;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n 3'b000: next_state = x ? 3'b001 : 3'b000;\n 3'b001: next_state = x ? 3'b100 : 3'b001;\n 3'b010: next_state = x ? 3'b001 : 3'b010;\n 3'b011: next_state = x ? 3'b010 : 3'b001;\n 3'b100: next_state = x ? 3'b100 : 3'b011;\n default: next_state = 3'b000;\n endcase\n end\n\n always @(*) begin\n case (state)\n 3'b011, 3'b100: z = 1'b1;\n default: z = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput x,\n\toutput reg z\n);\n\n
{"task_id": "2013_q2bfsm", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput x,\n\tinput y,\n\toutput reg f,\n\toutput reg g\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101, G = 3'b110;\n reg [2:0] state, next_state;\n reg [1:0] count;\n\n always @(posedge clk) begin\n if (!resetn)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n f = 0;\n case (state)\n A: begin\n if (resetn) next_state = B;\n end\n B: begin\n f = 1;\n next_state = C;\n end\n C: begin\n if (x) next_state = D;\n end\n D: begin\n if (!x) next_state = E;\n else next_state = C;\n end\n E: begin\n if (x) next_state = F;\n else next_state = C;\n end\n F: begin\n next_state = G;\n end\n G: begin\n if (count == 2'b10 && !y)\n next_state = A;\n end\n endcase\n end\n\n always @(posedge clk) begin\n if (!resetn) begin\n g <= 0;\n count <= 0;\n end\n else if (state == F) begin\n g <= 1;\n count <= 0;\n end\n else if (state == G) begin\n if (y)\n count <= 2'b11;\n else if (count != 2'b11)\n count <= count + 1;\n \n if (count == 2'b10 && !y)\n g <= 0;\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput x,\n\tinput y,\n\toutput reg f,\n\toutput reg g\n);\n\n parameter STATE_A = 3'b000;\n parameter STATE_B = 3'b001;\n parameter STATE_C = 3'b010;\n parameter STATE_D = 3'b011;\n parameter STATE_E = 3'b100;\n parameter STATE_F = 3'b101;\n parameter STATE_G = 3'b110;\n parameter STATE_H = 3'b111;\n\n reg [2:0] current_state, next_state;\n reg [1:0] x_count, y_count;\n\n always @(posedge clk) begin\n if (!resetn)\n current_state <= STATE_A;\n else\n current_state <= next_state;\n end\n\n always @(*) begin\n case (current_state)\n STATE_A: next_state = resetn ? STATE_B : STATE_A;\n STATE_B: next_state = STATE_C;\n STATE_C: next_state = (x_count == 2'b11) ? STATE_D : STATE_C;\n STATE_D: next_state = STATE_E;\n STATE_E: next_state = y ? STATE_G : ((y_count == 2'b10) ? STATE_H : STATE_E);\n STATE_F: next_state = STATE_F;\n STATE_G: next_state = STATE_G;\n STATE_H: next_state = STATE_H;\n default: next_state = STATE_A;\n endcase\n end\n\n always @(posedge clk) begin\n if (!resetn) begin\n x_count <= 2'b00;\n y_count <= 2'b00;\n end\n else begin\n case (current_state)\n STATE_C: begin\n if (x == 1 && x_count == 2'b00)\n x_count <= 2'b01;\n else if (x == 0 && x_count == 2'b01)\n x_count <= 2'b10;\n else if (x == 1 && x_count == 2'b10)\n x_count <= 2'b11;\n else\n x_count <= 2'b00;\n end\n STATE_E: y_count <= y_count + 1;\n default: begin\n x_count <= 2'b00;\n y_count <= 2'b00;\n end\n endcase\n end\n end\n\n always @(posedge clk) begin\n if (!resetn) begin\n f <= 0;\n g <= 0;\n end\n else begin\n f <= (current_state == STATE_B);\n g <= (current_state == STATE_D) || (current_state == STATE_E) || (current_state == STATE_G);\n end\n end\n\nend
{"task_id": "dff8p", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\nalways @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\nalways @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n\talways @(negedge clk) begin\n\t\tif (reset)\n\t\t\tq <= 8'h34;\n\t\telse\n\t\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34; // Reset to 0x34\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset) begin\n q <= 8'h34; // Reset to 0x34\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34; // Reset to 0x34\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\nalways @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q);\n\n always @(negedge clk) begin\n if (reset)\n q <= 8'h34;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput reset,\n\toutput reg [7:0] q\n);\n\n always @(negedge clk) be
{"task_id": "reduction", "llmgen_RTL": ["module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n\tassign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput parity\n);\n\n assign parity = ^in;\n\nendmodule"]}
{"task_id": "fsm3comb", "llmgen_RTL": ["module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b01 : 2'b00;\n 2'b01: next_state = in ? 2'b01 : 2'b10;\n 2'b10: next_state = in ? 2'b11 : 2'b00;\n 2'b11: next_state = in ? 2'b01 : 2'b10;\n endcase\n end\n\n assign out = (state == 2'b11);\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n\tparameter A = 2'b00, B = 2'b01, C = 2'b10, D = 2'b11;\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tA: next_state = in ? B : A;\n\t\t\tB: next_state = in ? B : C;\n\t\t\tC: next_state = in ? D : A;\n\t\t\tD: next_state = in ? B : C;\n\t\t\tdefault: next_state = A;\n\t\tendcase\n\tend\n\n\tassign out = (state == D);\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b01 : 2'b00; // State A\n 2'b01: next_state = in ? 2'b01 : 2'b10; // State B\n 2'b10: next_state = in ? 2'b11 : 2'b00; // State C\n 2'b11: next_state = in ? 2'b01 : 2'b10; // State D\n endcase\n end\n\n assign out = (state == 2'b11); // Output is 1 only in state D\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case(state)\n 2'b00: next_state = in ? 2'b01 : 2'b00; // A\n 2'b01: next_state = in ? 2'b01 : 2'b10; // B\n 2'b10: next_state = in ? 2'b11 : 2'b00; // C\n 2'b11: next_state = in ? 2'b01 : 2'b10; // D\n endcase\n end\n\n assign out = (state == 2'b11); // Output is 1 only when in state D\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b01 : 2'b00; // A\n 2'b01: next_state = in ? 2'b01 : 2'b10; // B\n 2'b10: next_state = in ? 2'b11 : 2'b00; // C\n 2'b11: next_state = in ? 2'b01 : 2'b10; // D\n endcase\n end\n\n assign out = (state == 2'b11); // Output is 1 only when in state D\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b01 : 2'b00; // A\n 2'b01: next_state = in ? 2'b01 : 2'b10; // B\n 2'b10: next_state = in ? 2'b11 : 2'b00; // C\n 2'b11: next_state = in ? 2'b01 : 2'b10; // D\n endcase\n end\n\n assign out = (state == 2'b11); // Output is 1 only when in state D\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b01 : 2'b00; // A\n 2'b01: next_state = in ? 2'b01 : 2'b10; // B\n 2'b10: next_state = in ? 2'b11 : 2'b00; // C\n 2'b11: next_state = in ? 2'b01 : 2'b10; // D\n endcase\n end\n\n assign out = (state == 2'b11); // Output is 1 only in state D\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b01 : 2'b00;\n 2'b01: next_state = in ? 2'b01 : 2'b10;\n 2'b10: next_state = in ? 2'b11 : 2'b00;\n 2'b11: next_state = in ? 2'b01 : 2'b10;\n endcase\n end\n\n assign out = (state == 2'b11);\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [1:0] state,\n\toutput reg [1:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 2'b00: next_state = in ? 2'b0
{"task_id": "mt2015_q4b", "llmgen_RTL": ["module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n reg z;\n reg [1:0] state;\n \n always @(*) begin\n case (state)\n 2'b00: z = 1;\n 2'b01: z = 0;\n 2'b10: z = 0;\n 2'b11: z = 1;\n endcase\n end\n \n always @(x or y) begin\n state = {x, y};\n end\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n reg z;\n reg [1:0] state;\n \n always @(*) begin\n case (state)\n 2'b00: z = 1'b1;\n 2'b01: z = 1'b0;\n 2'b10: z = 1'b0;\n 2'b11: z = 1'b1;\n endcase\n end\n \n always @(x or y) begin\n case ({x, y})\n 2'b00: state <= 2'b00;\n 2'b01: state <= 2'b10;\n 2'b10: state <= 2'b01;\n 2'b11: state <= 2'b11;\n endcase\n end\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n reg [2:0] state;\n reg [2:0] next_state;\n\n always @(*) begin\n case (state)\n 3'b000: next_state = (x | y) ? 3'b001 : 3'b000;\n 3'b001: next_state = (x & y) ? 3'b010 : 3'b001;\n 3'b010: next_state = 3'b000;\n default: next_state = 3'b000;\n endcase\n end\n\n always @(posedge x or posedge y) begin\n state <= next_state;\n end\n\n assign z = (state == 3'b000) | (state == 3'b010);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n reg [1:0] state;\n wire [1:0] next_state;\n\n always @(posedge x or posedge y) begin\n if (x || y)\n state <= next_state;\n end\n\n assign next_state = (x & y) ? 2'b11 :\n (x & ~y) ? 2'b01 :\n (~x & y) ? 2'b10 :\n 2'b00;\n\n assign z = (state == 2'b00) | (state == 2'b11);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z\n);\n\n reg z_reg;\n \n always @(*) begin\n if (x && y)\n z_reg = 1'b1;\n else if (!x && !y)\n z_reg = 1'b1;\n else\n z_reg = 1'b0;\n end\n \n assign z = z_reg;\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule", "module top_module(\n\tinput x,\n\tinput y,\n\toutput z);\n\n assign z = (~x & ~y) | (x & y);\n\nendmodule"]}
{"task_id": "2012_q2fsm", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? B : A;\n B: next_state = w ? C : D;\n C: next_state = w ? E : D;\n D: next_state = w ? F : A;\n E: next_state = w ? E : D;\n F: next_state = w ? C : D;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) | (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n \n reg [2:0] state, next_state;\n \n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = w ? B : A;\n B: next_state = w ? C : D;\n C: next_state = w ? E : D;\n D: next_state = w ? F : A;\n E: next_state = w ? E : D;\n F: next_state = w ? C : D;\n default: next_state = A;\n endcase\n end\n \n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n \n reg [2:0] state, next_state;\n \n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n A: next_state = w ? B : A;\n B: next_state = w ? C : D;\n C: next_state = w ? E : D;\n D: next_state = w ? F : A;\n E: next_state = w ? E : D;\n F: next_state = w ? C : D;\n default: next_state = A;\n endcase\n end\n \n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n reg [2:0] state, next_state;\n \n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n\n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? B : A;\n B: next_state = w ? C : D;\n C: next_state = w ? E : D;\n D: next_state = w ? F : A;\n E: next_state = w ? E : D;\n F: next_state = w ? C : D;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n reg [2:0] state, next_state;\n \n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n\n always @(posedge clk) begin\n if (reset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = w ? B : A;\n B: next_state = w ? C : D;\n C: next_state = w ? E : D;\n D: next_state = w ? F : A;\n E: next_state = w ? E : D;\n F: next_state = w ? C : D;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == E) || (state == F);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput w,\n\toutput z\n);\n\n reg [2:0] state, next_state;\n \n parameter A = 3'b000, B = 3'b001, C = 3'b010, D = 3'b011, E = 3'b100, F = 3'b101;\n \n always @(posedge clk) b
{"task_id": "dff16e", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0])\n q[7:0] <= d[7:0];\n if (byteena[1])\n q[15:8] <= d[15:8];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n q[7:0] <= d[7:0];\n end\n if (byteena[1]) begin\n q[15:8] <= d[15:8];\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\nalways @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0])\n q[7:0] <= d[7:0];\n if (byteena[1])\n q[15:8] <= d[15:8];\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n q[7:0] <= d[7:0];\n end\n if (byteena[1]) begin\n q[15:8] <= d[15:8];\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0])\n q[7:0] <= d[7:0];\n if (byteena[1])\n q[15:8] <= d[15:8];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n q[7:0] <= d[7:0];\n end\n if (byteena[1]) begin\n q[15:8] <= d[15:8];\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n q[7:0] <= d[7:0];\n end\n if (byteena[1]) begin\n q[15:8] <= d[15:8];\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n q[7:0] <= d[7:0];\n end\n if (byteena[1]) begin\n q[15:8] <= d[15:8];\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q\n);\n\nalways @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n q[7:0] <= d[7:0];\n end\n if (byteena[1]) begin\n q[15:8] <= d[15:8];\n end\n end\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput resetn,\n\tinput [1:0] byteena,\n\tinput [15:0] d,\n\toutput reg [15:0] q);\n\n always @(posedge clk) begin\n if (!resetn) begin\n q <= 16'b0;\n end else begin\n if (byteena[0]) begin\n
{"task_id": "edgedetect", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n\treg [7:0] in_prev;\n\n\talways @(posedge clk) begin\n\t\tin_prev <= in;\n\t\tpedge <= in & ~in_prev;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= in & ~in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n reg [7:0] in_prev;\n\n always @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= in & ~in_prev;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= ~in_prev & in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n pedge <= (~in_prev) & in;\nend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge);\n\n\treg [7:0] in_prev;\n\n\talways @(posedge clk) begin\n\t\tin_prev <= in;\n\t\tpedge <= in & ~in_prev;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] in,\n\toutput reg [7:0] pedge\n);\n\nreg [7:0] in_prev;\n\nalways @(posedge clk) begin\n in_prev <= in;\n ped
{"task_id": "circuit8", "llmgen_RTL": ["module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\nreg state;\n\nalways @(posedge clock or posedge a) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end else begin\n p <= 0;\n if (state) begin\n q <= 1;\n state <= 0;\n end\n end\nend\n\nalways @(negedge clock) begin\n if (a) begin\n p <= 1;\n end else if (p) begin\n q <= 1;\n end\nend\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\nreg state;\n\nalways @(posedge clock or negedge clock) begin\n if (clock) begin\n state <= a;\n p <= a;\n end else begin\n q <= state & p;\n end\nend\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clock) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end\n else begin\n p <= 0;\n if (state)\n q <= 1;\n state <= 0;\n end\n end\n\n always @(negedge clock) begin\n if (a)\n q <= 0;\n end\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clock) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end else begin\n p <= 0;\n if (state) begin\n q <= 1;\n end\n state <= 0;\n end\n end\n\n always @(negedge clock) begin\n if (a) begin\n p <= 1;\n end else begin\n p <= 0;\n if (state) begin\n q <= 1;\n end\n end\n end\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\nreg state;\n\nalways @(posedge clock) begin\n state <= a;\n p <= a & ~state;\nend\n\nalways @(negedge clock) begin\n q <= p;\nend\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clock) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end\n else begin\n p <= 0;\n state <= 0;\n end\n end\n\n always @(negedge clock) begin\n if (state)\n q <= 1;\n else\n q <= 0;\n end\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clock) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end\n else begin\n p <= 0;\n state <= 0;\n end\n end\n\n always @(negedge clock) begin\n if (state)\n q <= 1;\n else\n q <= 0;\n end\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clock) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end else begin\n p <= 0;\n if (state)\n q <= 1;\n state <= 0;\n end\n end\n\n always @(negedge clock) begin\n if (a) begin\n p <= 1;\n end else begin\n p <= 0;\n q <= state;\n end\n end\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\nreg state;\n\nalways @(posedge clock) begin\n if (a) begin\n p <= 1;\n state <= 1;\n end\n else begin\n p <= 0;\n state <= 0;\n end\nend\n\nalways @(negedge clock) begin\n if (state)\n q <= 1;\n else\n q <= 0;\nend\n\nendmodule", "module top_module (\n\tinput clock,\n\tinput a, \n\toutput reg p,\n\toutput reg q\n);\n\n reg state;\n\n always @(posedge clock) begin\n if (a) begin\n
{"task_id": "rule90", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[0] <= q[1];\n \n for (integer i = 1; i < 511; i = i + 1) begin\n q[i] <= q[i-1] ^ q[i+1];\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input load,\n input [511:0] data,\n output reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n input clk,\n input load,\n input [511:0] data,\n output reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(posedge clk) begin\n if (load) begin\n q <= data;\n end else begin\n q[511] <= q[510];\n q[510:1] <= q[511:2] ^ q[509:0];\n q[0] <= q[1];\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [511:0] data,\n\toutput reg [511:0] q\n);\n\n always @(p
{"task_id": "mt2015_eq2", "llmgen_RTL": ["module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z\n);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n input [1:0] A,\n input [1:0] B,\n output z\n);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n input [1:0] A,\n input [1:0] B,\n output z\n);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z\n);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z\n);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z\n);\n\n\tassign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n input [1:0] A,\n input [1:0] B,\n output z\n);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule", "module top_module(\n\tinput [1:0] A,\n\tinput [1:0] B,\n\toutput z);\n\n assign z = (A == B);\n\nendmodule"]}
{"task_id": "gatesv100", "llmgen_RTL": ["module top_module (\n\tinput [99:0] in,\n\toutput [98:0] out_both,\n\toutput [99:1] out_any,\n\toutput [99:0] out_different\n);\n\n genvar i;\n \n // Generate out_both\n generate\n for (i = 0; i < 99; i = i + 1) begin : gen_out_both\n assign out_both[i] = in[i] & in[i+1];\n end\n endgenerate\n\n // Generate out_any\n generate\n for (i = 1; i < 100; i = i + 1) begin : gen_out_any\n assign out_any[i] = in[i] | in[i-1];\n end\n endgenerate\n\n // Generate out_different\n assign out_different[99] = in[99] ^ in[0];\n generate\n for (i = 0; i < 99; i = i + 1) begin : gen_out_different\n assign out_different[i] = in[i] ^ in[i+1];\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput [98:0] out_both,\n\toutput [99:1] out_any,\n\toutput [99:0] out_different\n);\n\n genvar i;\n\n // out_both\n generate\n for (i = 0; i < 99; i = i + 1) begin : both_loop\n assign out_both[i] = in[i] & in[i+1];\n end\n endgenerate\n\n // out_any\n generate\n for (i = 1; i < 100; i = i + 1) begin : any_loop\n assign out_any[i] = in[i] | in[i-1];\n end\n endgenerate\n\n // out_different\n assign out_different[99] = in[99] ^ in[0];\n generate\n for (i = 0; i < 99; i = i + 1) begin : different_loop\n assign out_different[i] = in[i] ^ in[i+1];\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput [98:0] out_both,\n\toutput [99:1] out_any,\n\toutput [99:0] out_different\n);\n\n genvar i;\n \n // (1) out_both\n generate\n for (i = 0; i < 99; i = i + 1) begin : both_loop\n assign out_both[i] = in[i] & in[i+1];\n end\n endgenerate\n\n // (2) out_any\n generate\n for (i = 1; i < 100; i = i + 1) begin : any_loop\n assign out_any[i] = in[i] | in[i-1];\n end\n endgenerate\n\n // (3) out_different\n assign out_different[99] = in[99] ^ in[0];\n generate\n for (i = 0; i < 99; i = i + 1) begin : different_loop\n assign out_different[i] = in[i] ^ in[i+1];\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput [98:0] out_both,\n\toutput [99:1] out_any,\n\toutput [99:0] out_different\n);\n\n genvar i;\n\n // out_both\n generate\n for (i = 0; i < 99; i = i + 1) begin : both_loop\n assign out_both[i] = in[i] & in[i+1];\n end\n endgenerate\n\n // out_any\n generate\n for (i = 1; i < 100; i = i + 1) begin : any_loop\n assign out_any[i] = in[i] | in[i-1];\n end\n endgenerate\n\n // out_different\n assign out_different[99] = in[99] ^ in[0];\n generate\n for (i = 0; i < 99; i = i + 1) begin : different_loop\n assign out_different[i] = in[i] ^ in[i+1];\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput [98:0] out_both,\n\toutput [99:1] out_any,\n\toutput [99:0] out_different\n);\n\n genvar i;\n \n // (1) out_both\n generate\n for (i = 0; i < 99; i = i + 1) begin : both_gen\n assign out_both[i] = in[i] & in[i+1];\n end\n endgenerate\n\n // (2) out_any\n generate\n for (i = 1; i < 100; i = i + 1) begin : any_gen\n assign out_any[i] = in[i] | in[i-1];\n end\n endgenerate\n\n // (3) out_different\n assign out_different[99] = in[99] ^ in[0];\n generate\n for (i = 0; i < 99; i = i + 1) begin : different_gen\n assign out_different[i] = in[i] ^ in[i+1];\n end\n endgenerate\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput [98:0] out_both,\n\toutput [99:1] out_any,\n\toutput [99:0] out_different\n);\n\n genvar i;\n \n // out_both\n generate\n for (i = 0; i < 99; i = i + 1) begin : both_loop\n assign out_both[i] = in[i] & in[i+1];\n
{"task_id": "m2014_q4a", "llmgen_RTL": ["module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n\tif (ena) begin\n\t\tq <= d;\n\tend\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n if (ena) begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n if (ena) begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n\talways_latch begin\n\t\tif (ena) begin\n\t\t\tq <= d;\n\t\tend\n\tend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n if (ena) begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n\tif (ena) begin\n\t\tq <= d;\n\tend\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n if (ena) begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\nalways_latch begin\n if (ena) begin\n q <= d;\n end\nend\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule", "module top_module (\n\tinput d,\n\tinput ena,\n\toutput logic q\n);\n\n always_latch begin\n if (ena) begin\n q <= d;\n end\n end\n\nendmodule"]}
{"task_id": "mux256to1v", "llmgen_RTL": ["module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] selected;\n assign selected = in[sel*4 +: 4];\n assign out = selected;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] selected;\n \n assign selected = in[sel*4 +: 4];\n assign out = selected;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n assign out = in[sel*4 +: 4];\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] selected_bits;\n \n assign selected_bits = in[sel*4 +: 4];\n assign out = selected_bits;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n assign out = in[sel*4 +: 4];\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] selected;\n assign selected = in[sel*4 +: 4];\n assign out = selected;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n assign out = in[sel*4 +: 4];\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n assign out = in[sel*4 +: 4];\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] selected_bits;\n \n assign selected_bits = in[sel*4 +: 4];\n assign out = selected_bits;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n assign out = in[sel*4 +: 4];\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n\tassign out = in[sel*4 +: 4];\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n wire [3:0] mux_out;\n \n assign mux_out = in[sel*4 +: 4];\n assign out = mux_out;\n\nendmodule", "module top_module (\n\tinput [1023:0] in,\n\tinput [7:0] sel,\n\toutput [3:0] out\n);\n\n assign out = in[sel*4 +: 4];\n\nendmodule"]}
{"task_id": "mux9to1v", "llmgen_RTL": ["module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\n always @(*) begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n 4'd4: out = e;\n 4'd5: out = f;\n 4'd6: out = g;\n 4'd7: out = h;\n 4'd8: out = i;\n default: out = 16'hFFFF;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\n always @(*) begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n 4'd4: out = e;\n 4'd5: out = f;\n 4'd6: out = g;\n 4'd7: out = h;\n 4'd8: out = i;\n default: out = 16'hFFFF;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\n always_comb begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n 4'd4: out = e;\n 4'd5: out = f;\n 4'd6: out = g;\n 4'd7: out = h;\n 4'd8: out = i;\n default: out = 16'hFFFF;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\nalways @(*) begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n 4'd4: out = e;\n 4'd5: out = f;\n 4'd6: out = g;\n 4'd7: out = h;\n 4'd8: out = i;\n default: out = 16'hFFFF;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\n always @(*) begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n 4'd4: out = e;\n 4'd5: out = f;\n 4'd6: out = g;\n 4'd7: out = h;\n 4'd8: out = i;\n default: out = 16'hFFFF;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\n always @(*) begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n 4'd4: out = e;\n 4'd5: out = f;\n 4'd6: out = g;\n 4'd7: out = h;\n 4'd8: out = i;\n default: out = 16'hFFFF;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [15:0] a,\n\tinput [15:0] b,\n\tinput [15:0] c,\n\tinput [15:0] d,\n\tinput [15:0] e,\n\tinput [15:0] f,\n\tinput [15:0] g,\n\tinput [15:0] h,\n\tinput [15:0] i,\n\tinput [3:0] sel,\n\toutput logic [15:0] out\n);\n\n always @(*) begin\n case(sel)\n 4'd0: out = a;\n 4'd1: out = b;\n 4'd2: out = c;\n 4'd3: out = d;\n
{"task_id": "vectorgates", "llmgen_RTL": ["module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[5:3] = ~b;\n assign out_not[2:0] = ~a;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n assign out_or_bitwise = a | b;\n assign out_or_logical = |a || |b;\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n assign out_or_bitwise = a | b;\n assign out_or_logical = |a || |b;\n assign out_not = {~b, ~a};\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n assign out_or_bitwise = a | b;\n assign out_or_logical = |a || |b;\n assign out_not[5:3] = ~b;\n assign out_not[2:0] = ~a;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operations\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n // Bitwise OR\n assign out_or_bitwise = a | b;\n\n // Logical OR\n assign out_or_logical = |a || |b;\n\n // NOT operation\n assign out_not[2:0] = ~a;\n assign out_not[5:3] = ~b;\n\nendmodule", "module top_module(\n\tinput [2:0] a, \n\tinput [2:0] b, \n\toutput [2:0] out_or_bitwise,\n\toutput out_or_logical,\n\toutput [5:0] out_not\n);\n\n assign out_or_bitwise = a | b;\n assign out_or_logical = |a || |b;\n assign out_not = {~b, ~a};\n\nendmodule", "module top_module(\n\ti
{"task_id": "fsm3onehot", "llmgen_RTL": ["module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n // State transition logic\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001; // A\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100; // B\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001; // C\n 4'b1000: next_state = in ? 4'b0010 : 4'b0100; // D\n default: next_state = 4'b0001; // Default to state A\n endcase\n end\n\n // Output logic\n assign out = state[3]; // Output is 1 only when in state D (4'b1000)\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n // State transition logic\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001; // A\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100; // B\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001; // C\n 4'b1000: next_state = in ? 4'b0010 : 4'b0100; // D\n default: next_state = 4'b0001; // Default to state A\n endcase\n end\n\n // Output logic\n assign out = state[3]; // Output is 1 only when in state D (4'b1000)\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001;\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100;\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001;\n 4'b1000: next_state = in ? 4'b0010 : 4'b0100;\n default: next_state = 4'b0001;\n endcase\n end\n\n assign out = state[3];\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n // State transition logic\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001; // A\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100; // B\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001; // C\n 4'b1000: next_state = in ? 4'b0010 : 4'b0100; // D\n default: next_state = 4'b0001; // Default to state A\n endcase\n end\n\n // Output logic\n assign out = state[3]; // Output is 1 only in state D (4'b1000)\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n // State transition logic\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001; // A\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100; // B\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001; // C\n 4'b1000: next_state = in ? 4'b0010 : 4'b0100; // D\n default: next_state = 4'b0001; // Default to state A\n endcase\n end\n\n // Output logic\n assign out = state[3]; // Output is 1 only when in state D (4'b1000)\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n // State transition logic\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001; // A\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100; // B\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001; // C\n 4'b1000: next_state = in ? 4'b0010 : 4'b0100; // D\n default: next_state = 4'b0001; // Default to state A\n endcase\n end\n\n // Output logic\n assign out = state[3]; // Output is 1 only when in state D (4'b1000)\n\nendmodule", "module top_module (\n\tinput in,\n\tinput [3:0] state,\n\toutput reg [3:0] next_state,\n\toutput out\n);\n\n always @(*) begin\n case (state)\n 4'b0001: next_state = in ? 4'b0010 : 4'b0001;\n 4'b0010: next_state = in ? 4'b0010 : 4'b0100;\n 4'b0100: next_state = in ? 4'b1000 : 4'b0001;
{"task_id": "conditional", "llmgen_RTL": ["module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "module top_module (\n\tinput [7:0] a,\n\tinput [7:0] b,\n\tinput [7:0] c,\n\tinput [7:0] d,\n\toutput reg [7:0] min\n);\n\n always @(*) begin\n if (a <= b && a <= c && a <= d)\n min = a;\n else if (b <= a && b <= c && b <= d)\n min = b;\n else if (c <= a && c <= b && c <= d)\n min = c;\n else\n min = d;\n end\n\nendmodule", "mo
{"task_id": "gates", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n assign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n assign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\nassign out_and = a & b;\nassign out_or = a | b;\nassign out_xor = a ^ b;\nassign out_nand = ~(a & b);\nassign out_nor = ~(a | b);\nassign out_xnor = ~(a ^ b);\nassign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n assign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n assign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n assign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\nassign out_and = a & b;\nassign out_or = a | b;\nassign out_xor = a ^ b;\nassign out_nand = ~(a & b);\nassign out_nor = ~(a | b);\nassign out_xnor = ~(a ^ b);\nassign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n assign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n\tassign out_and = a & b;\n\tassign out_or = a | b;\n\tassign out_xor = a ^ b;\n\tassign out_nand = ~(a & b);\n\tassign out_nor = ~(a | b);\n\tassign out_xnor = ~(a ^ b);\n\tassign out_anotb = a & ~b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor,\n\toutput out_nand,\n\toutput out_nor,\n\toutput out_xnor,\n\toutput out_anotb\n);\n\n assign out_and = a & b;\n assign out_or = a | b;\n assign out_xor = a ^ b;\n assign out_nand = ~(a & b);\n assign out_nor = ~(a | b);\n assign out_xnor = ~(a ^ b);\n a
{"task_id": "kmap2", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~b & ~c & ~d) | \n (~a & ~b & ~c & d) | \n (~a & ~b & c & ~d) | \n (~a & b & ~c & ~d) | \n (~a & b & c & d) | \n (a & ~b & ~c & ~d) | \n (a & ~b & ~c & d) | \n (a & b & c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~b & ~c & ~d) | \n (~a & ~b & ~c & d) | \n (~a & ~b & c & ~d) | \n (~a & b & ~c & ~d) | \n (~a & b & c & d) | \n (a & ~b & ~c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & d) | \n (a & b & c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~d) | (~b & ~c & d) | (a & ~b & ~d) | (b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (b & c & d) | (a & c & ~d) | (a & ~b & ~c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~b & ~c & ~d) |\n (~a & ~b & ~c & d) |\n (~a & ~b & c & ~d) |\n (~a & b & ~c & ~d) |\n (~a & b & c & d) |\n (a & ~b & ~c & ~d) |\n (a & ~b & ~c & d) |\n (a & b & c & ~d) |\n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (~b & ~c & ~d) | (a & ~b & c) | (b & c) | (a & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (b & c & d) | (a & c & ~d) | (a & ~b & ~c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~b & ~c & ~d) |\n (~a & ~b & ~c & d) |\n (~a & b & ~c & ~d) |\n (~a & ~b & c & ~d) |\n (a & ~b & ~c & ~d) |\n (a & ~b & ~c & d) |\n (~a & b & c & d) |\n (a & b & c & ~d) |\n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (b & c & d) | (a & ~b & ~c) | (a & c & ~d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (b & c & d) | (a & ~b & ~c) | (a & c & ~d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (b & c & d) | (a & c & ~d) | (~b & c & ~d) | (a & ~b & ~c);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b & ~d) | (b & c & d) | (a & ~b & ~c) | (a & c & ~d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~b & ~c & ~d) | \n (~a & ~b & ~c & d) | \n (~a & ~b & c & ~d) | \n (~a & b & ~c & ~d) | \n (~a & b & c & d) | \n (a & ~b & ~c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & d) | \n (a & b & c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b,\n\tinput c,\n\tinput d,\n\toutput out\n);\n\n assign out = (~a & ~c) | (~a & ~b
{"task_id": "2014_q3fsm", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput reset,\n\tinput s,\n\tinput w,\n\toutput reg z\n);\n\n reg [2:0] state, next_state;\n reg [1:0] count;\n \n localparam A = 3'd0, B1 = 3'd1, B2 = 3'd2, B3 = 3'd3;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= A;\n count <= 2'd0;\n z <= 1'b0;\n end else begin\n state <= next_state;\n if (state == B1 || state == B2)\n count <= count + w;\n else if (state == B3) begin\n z <= (count == 2'd2);\n count <= w;\n end\n end\n end\n\n always @(*) begin\n case (state)\n A: next_state = s ? B1 : A;\n B1: next_state = B2;\n B2: next_state = B3;\n B3: next_state = B1;\n default: next_state = A;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput s,\n\tinput w,\n\toutput reg z\n);\n\n reg [2:0] state;\n reg [1:0] count;\n \n parameter A = 3'd0, B1 = 3'd1, B2 = 3'd2, B3 = 3'd3;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= A;\n count <= 2'd0;\n z <= 1'b0;\n end else begin\n case (state)\n A: begin\n if (s) state <= B1;\n count <= 2'd0;\n z <= 1'b0;\n end\n B1: begin\n state <= B2;\n count <= w ? count + 1'b1 : count;\n end\n B2: begin\n state <= B3;\n count <= w ? count + 1'b1 : count;\n end\n B3: begin\n state <= B1;\n count <= w ? count + 1'b1 : count;\n z <= (count + w) == 2'd2;\n count <= 2'd0;\n end\n endcase\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput s,\n\tinput w,\n\toutput reg z\n);\n\n reg [2:0] state, next_state;\n reg [1:0] count;\n \n localparam A = 3'd0, B1 = 3'd1, B2 = 3'd2, B3 = 3'd3;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= A;\n count <= 2'd0;\n z <= 1'b0;\n end else begin\n state <= next_state;\n if (state == B1 || state == B2) begin\n count <= count + w;\n end else if (state == B3) begin\n z <= (count + w == 2'd2);\n count <= 2'd0;\n end else begin\n z <= 1'b0;\n end\n end\n end\n\n always @(*) begin\n case (state)\n A: next_state = s ? B1 : A;\n B1: next_state = B2;\n B2: next_state = B3;\n B3: next_state = B1;\n default: next_state = A;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput s,\n\tinput w,\n\toutput reg z\n);\n\n reg [2:0] state;\n reg [1:0] count;\n \n localparam A = 3'd0, B1 = 3'd1, B2 = 3'd2, B3 = 3'd3;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= A;\n count <= 2'd0;\n z <= 0;\n end else begin\n case (state)\n A: begin\n if (s) state <= B1;\n count <= 2'd0;\n z <= 0;\n end\n B1: begin\n state <= B2;\n count <= w ? count + 1 : count;\n end\n B2: begin\n state <= B3;\n count <= w ? count + 1 : count;\n end\n B3: begin\n state <= B1;\n count <= w ? count + 1 : count;\n z <= (count + w) == 2;\n count <= 2'd0;\n end\n
{"task_id": "vector4", "llmgen_RTL": ["module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n\tassign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule", "module top_module (\n\tinput [7:0] in,\n\toutput [31:0] out\n);\n\n assign out = {{24{in[7]}}, in};\n\nendmodule"]}
{"task_id": "m2014_q4k", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\nreg [3:0] shift_reg;\n\nalways @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\nend\n\nassign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn)\n shift_reg <= 4'b0000;\n else\n shift_reg <= {shift_reg[2:0], in};\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\nreg [3:0] shift_reg;\n\nalways @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\nend\n\nassign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n end\n end\n\n assign out = shift_reg[3];\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput resetn,\n\tinput in,\n\toutput out\n);\n\n reg [3:0] shift_reg;\n\n always @(posedge clk) begin\n if (!resetn) begin\n shift_reg <= 4'b0000;\n end else begin\n shift_reg <= {shift_reg[2:0], in};\n
{"task_id": "always_case2", "llmgen_RTL": ["module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b0001: pos = 2'd0;\n 4'b001?: pos = 2'd1;\n 4'b01??: pos = 2'd2;\n 4'b1???: pos = 2'd3;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\n always @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casex(in)\n 4'b1xxx: pos = 2'd3;\n 4'b01xx: pos = 2'd2;\n 4'b001x: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b???1: pos = 2'd0;\n 4'b??10: pos = 2'd1;\n 4'b?100: pos = 2'd2;\n 4'b1000: pos = 2'd3;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b1???: pos = 2'd3;\n 4'b01??: pos = 2'd2;\n 4'b001?: pos = 2'd1;\n 4'b0001: pos = 2'd0;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b???1: pos = 2'd0;\n 4'b??10: pos = 2'd1;\n 4'b?100: pos = 2'd2;\n 4'b1000: pos = 2'd3;\n default: pos = 2'd0;\n endcase\nend\n\nendmodule", "module top_module (\n\tinput [3:0] in,\n\toutput reg [1:0] pos\n);\n\nalways @(*) begin\n casez(in)\n 4'b???1: pos = 2'b00;\n 4'b??10: pos = 2'b01;\n 4'b?100: pos = 2'b10;\n 4'b1000: pos = 2'b11;\n default: pos = 2'b00;\n endcase\nend\n\nendmo
{"task_id": "fsm2", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput out\n);\n\n parameter OFF = 1'b0, ON = 1'b1;\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= OFF;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n OFF: next_state = j ? ON : OFF;\n ON: next_state = k ? OFF : ON;\n default: next_state = OFF;\n endcase\n end\n\n assign out = (state == ON);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput out\n);\n\n reg state, next_state;\n \n parameter OFF = 1'b0, ON = 1'b1;\n \n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= OFF;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n OFF: next_state = j ? ON : OFF;\n ON: next_state = k ? OFF : ON;\n endcase\n end\n \n assign out = (state == ON);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\t\tdefault: next_state = OFF;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\t\tdefault: next_state = OFF;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput out\n);\n\n reg state, next_state;\n \n parameter OFF = 1'b0, ON = 1'b1;\n \n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= OFF;\n else\n state <= next_state;\n end\n \n always @(*) begin\n case (state)\n OFF: next_state = j ? ON : OFF;\n ON: next_state = k ? OFF : ON;\n default: next_state = OFF;\n endcase\n end\n \n assign out = (state == ON);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput out\n);\n\n reg out;\n parameter OFF = 1'b0, ON = 1'b1;\n reg state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= OFF;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n OFF: next_state = j ? ON : OFF;\n ON: next_state = k ? OFF : ON;\n default: next_state = OFF;\n endcase\n end\n\n always @(*) begin\n out = (state == ON);\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput areset,\n\toutput out\n);\n\n reg out;\n parameter OFF = 1'b0, ON = 1'
{"task_id": "m2014_q4i", "llmgen_RTL": ["module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\t\nendmodule", "module top_module(\n\toutput out);\n\n assign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n output out\n);\n\n assign out = 1'b0;\n\nendmodule", "module top_module(\n output out\n);\n\n assign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n output out\n);\n\n assign out = 1'b0;\n\nendmodule", "module top_module(\n output out\n);\n\n assign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n assign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\t\n\tassign out = 1'b0;\n\nendmodule", "module top_module(\n\toutput out);\n\n\tassign out = 1'b0;\n\nendmodule"]}
{"task_id": "step_one", "llmgen_RTL": ["module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule", "module top_module(\n\toutput one\n);\n\n\tassign one = 1'b1;\n\nendmodule", "module top_module(\n output one\n);\n\n assign one = 1'b1;\n\nendmodule"]}
{"task_id": "vector100r", "llmgen_RTL": ["module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n\tinteger i;\n\talways @(*) begin\n\t\tfor (i = 0; i < 100; i = i + 1) begin\n\t\t\tout[i] = in[99-i];\n\t\tend\n\tend\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n\tinteger i;\n\t\n\talways @(*) begin\n\t\tfor (i = 0; i < 100; i = i + 1) begin\n\t\t\tout[i] = in[99-i];\n\t\tend\n\tend\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\ninteger i;\n\nalways @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\nend\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\ninteger i;\n\nalways @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\nend\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\ninteger i;\n\nalways @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\nend\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\ninteger i;\n\nalways @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\nend\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput reg [99:0] out\n);\n\n integer i;\n \n always @(*) begin\n for (i = 0; i < 100; i = i + 1) begin\n out[i] = in[99-i];\n end\n end\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput
{"task_id": "m2014_q4d", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n wire xor_out;\n\n assign xor_out = in ^ out;\n\n always_ff @(posedge clk) begin\n out <= xor_out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\toutput logic out\n);\n\n always_ff @(posedge clk) begin\n out <= in ^ out;\n end\n\nendmodule"]}
{"task_id": "shift4", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 4'b0000;\n end else if (load) begin\n q <= data;\n end else if (ena) begin\n q <= {1'b0, q[3:1]};\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset,\n\tinput load,\n\tinput ena,\n\tinput [3:0] data,\n\toutput reg [3:
{"task_id": "truthtable1", "llmgen_RTL": ["module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (~x3 & x2) | (x3 & x1);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule", "module top_module (\n\tinput x3,\n\tinput x2,\n\tinput x1,\n\toutput f\n);\n\n assign f = (x2 & ~x3) | (x1 & x3);\n\nendmodule"]}
{"task_id": "dff8ar", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tq <= 8'b0;\n\t\telse\n\t\t\tq <= d;\n\tend\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n q <= 8'b0;\n end else begin\n q <= d;\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n\tinput areset,\n\toutput reg [7:0] q);\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n q <= 8'b0;\n else\n q <= d;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput [7:0] d,\n
{"task_id": "gates100", "llmgen_RTL": ["module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n\tassign out_and = &in;\n\tassign out_or = |in;\n\tassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n\tassign out_and = &in;\n\tassign out_or = |in;\n\tassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n\tassign out_and = &in;\n\tassign out_or = |in;\n\tassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\nassign out_and = &in;\nassign out_or = |in;\nassign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule", "module top_module (\n\tinput [99:0] in,\n\toutput out_and,\n\toutput out_or,\n\toutput out_xor\n);\n\n assign out_and = &in;\n assign out_or = |in;\n assign out_xor = ^in;\n\nendmodule"]}
{"task_id": "hadd", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\nassign sum = a ^ b;\nassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n\tassign sum = a ^ b;\n\tassign cout = a & b;\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\toutput sum,\n\toutput cout\n);\n\n assign sum = a ^ b;\n assign cout = a & b;\n\nendmodule"]}
{"task_id": "always_if2", "llmgen_RTL": ["module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived)\n keep_driving = ~gas_tank_empty;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived)\n keep_driving = ~gas_tank_empty;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived && ~gas_tank_empty)\n keep_driving = 1;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived && ~gas_tank_empty)\n keep_driving = 1;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived)\n keep_driving = ~gas_tank_empty;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived && ~gas_tank_empty)\n keep_driving = 1;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived)\n keep_driving = ~gas_tank_empty;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) begin\n if (~arrived && ~gas_tank_empty)\n keep_driving = 1;\n else\n keep_driving = 0;\n end\n\nendmodule", "module top_module (\n\tinput cpu_overheated,\n\toutput reg shut_off_computer,\n\tinput arrived,\n\tinput gas_tank_empty,\n\toutput reg keep_driving\n);\n\n always @(*) begin\n if (cpu_overheated)\n shut_off_computer = 1;\n else\n shut_off_computer = 0;\n end\n\n always @(*) b
{"task_id": "fsm2s", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput out\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (reset)\n state <= 1'b0; // OFF state\n else\n case (state)\n 1'b0: // OFF state\n if (j)\n state <= 1'b1; // Transition to ON state\n 1'b1: // ON state\n if (k)\n state <= 1'b0; // Transition to OFF state\n endcase\n end\n \n assign out = state;\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\t\tdefault: next_state = OFF;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0;\n\tparameter ON = 1'b1;\n\n\treg state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\t\tdefault: next_state = OFF;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0;\n\tparameter ON = 1'b1;\n\n\treg state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\t\tdefault: next_state = OFF;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: out = 1'b0;\n\t\t\tON: out = 1'b1;\n\t\t\tdefault: out = 1'b0;\n\t\tendcase\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\t\tdefault: next_state = OFF;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n\tparameter OFF = 1'b0, ON = 1'b1;\n\treg state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= OFF;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tOFF: next_state = j ? ON : OFF;\n\t\t\tON: next_state = k ? OFF : ON;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\tout = (state == ON);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput j,\n\tinput k,\n\tinput reset,\n\toutput reg out\n);\n\n parameter OFF = 1'b0, ON = 1'b1;\n reg state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= OFF;\n else\n state <= next_state;\n end\n\
{"task_id": "vector3", "llmgen_RTL": ["module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n \n assign concatenated = {a, b, c, d, e, f, 2'b11};\n \n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n \n assign concatenated = {a, b, c, d, e, f, 2'b11};\n \n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n \n assign concatenated = {a, b, c, d, e, f, 2'b11};\n \n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n\n assign concatenated = {a, b, c, d, e, f, 2'b11};\n\n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n\n assign concatenated = {a, b, c, d, e, f, 2'b11};\n\n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n \n assign concatenated = {a, b, c, d, e, f, 2'b11};\n \n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n \n assign concatenated = {a, b, c, d, e, f, 2'b11};\n \n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n\n assign concatenated = {a, b, c, d, e, f, 2'b11};\n\n assign w = concatenated[31:24];\n assign x = concatenated[23:16];\n assign y = concatenated[15:8];\n assign z = concatenated[7:0];\n\nendmodule", "module top_module (\n\tinput [4:0] a,\n\tinput [4:0] b,\n\tinput [4:0] c,\n\tinput [4:0] d,\n\tinput [4:0] e,\n\tinput [4:0] f,\n\toutput [7:0] w,\n\toutput [7:0] x,\n\toutput [7:0] y,\n\toutput [7:0] z\n);\n\n wire [31:0] concatenated;\n\n assign concatenated = {a, b, c, d, e, f, 2'b11};\n\n assign w = concatenated[31:24];\n assi
{"task_id": "circuit2", "llmgen_RTL": ["module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & c & ~d) | \n (~a & b & d) | \n (a & ~b & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & c & ~d) | \n (~a & b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & c & ~d) | \n (~a & b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\toutput q\n);\n\n assign q = (~a & ~b & ~c & ~d) | \n (~a & ~b & c & d) | \n (~a & b & ~c & d) | \n (~a & b & c & ~d) | \n (a & ~b & ~c & d) | \n (a & ~b & c & ~d) | \n (a & b & ~c & ~d) | \n (a & b & c & d);\n\nendmodule", "module top_module (\n\tinput a, \n\tinput b, \n\tinput c, \n\tinput d,\n\to
{"task_id": "andgate", "llmgen_RTL": ["module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\nassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\nassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n assign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\n\tassign out = a & b;\n\nendmodule", "module top_module(\n\tinput a, \n\tinput b,\n\toutput out\n);\n\nassign out = a & b;\n\nendmodule"]}
{"task_id": "fsm1s", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = (state == B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n parameter STATE_A = 1'b0;\n parameter STATE_B = 1'b1;\n\n reg current_state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n current_state <= STATE_B;\n else\n current_state <= next_state;\n end\n\n always @(*) begin\n case (current_state)\n STATE_A: next_state = in ? STATE_A : STATE_B;\n STATE_B: next_state = in ? STATE_B : STATE_A;\n default: next_state = STATE_B;\n endcase\n end\n\n assign out = (current_state == STATE_B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = (state == B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = (state == B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = (state == B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = (state == B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = in ? A : B;\n B: next_state = in ? B : A;\n default: next_state = B;\n endcase\n end\n\n assign out = (state == B);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput out\n);\n\n reg state, next_state;\n parameter A = 1'b0, B = 1'b1;\n\n always @(posedge clk) begin\n if (reset)\n state <= B;\n else\n
{"task_id": "fadd", "llmgen_RTL": ["module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (b & cin) | (a & cin);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (a & cin) | (b & cin);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (b & cin) | (a & cin);\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\n assign sum = a ^ b ^ cin;\n assign cout = (a & b) | (cin & (a ^ b));\n\nendmodule", "module top_module (\n\tinput a,\n\tinput b,\n\tinput cin,\n\toutput cout,\n\toutput sum\n);\n\t\n\tassign sum = a ^ b ^ cin;\n\tassign cout = (a & b) | (cin & (a ^ b));\n\nendmodule"]}
{"task_id": "m2014_q4g", "llmgen_RTL": ["module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n\twire xnor_out;\n\n\tassign xnor_out = ~(in1 ^ in2);\n\tassign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\nwire xnor_out;\n\nassign xnor_out = ~(in1 ^ in2);\nassign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n logic xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\nwire xnor_out;\n\nassign xnor_out = ~(in1 ^ in2);\nassign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule", "module top_module (\n\tinput in1,\n\tinput in2,\n\tinput in3,\n\toutput logic out\n);\n\n wire xnor_out;\n\n assign xnor_out = ~(in1 ^ in2);\n assign out = xnor_out ^ in3;\n\nendmodule"]}
{"task_id": "ece241_2014_q3", "llmgen_RTL": ["module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n \n assign mux_out = c ? 1'b1 : d;\n assign mux_in[3] = mux_out;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c | d;\n \n assign mux_out = c ? 1'b1 : 1'b0;\n assign mux_in[3] = d ? mux_out : 1'b1;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? c : 1'b1;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c;\n assign mux_in[3] = d ? c : 1'b1;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n \n assign mux_out = c ? d : 1'b1;\n assign mux_in[3] = mux_out;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n \n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n \n assign mux_out = c ? (d ? 1'b1 : 1'b1) : (d ? 1'b0 : 1'b1);\n assign mux_in[3] = mux_out;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c | d;\n \n assign mux_out = c ? 1'b1 : 1'b0;\n assign mux_in[3] = d ? mux_out : 1'b1;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n \n assign mux_in[0] = d ? c : 1'b1;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c | d;\n assign mux_in[3] = ~d;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n \n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n \n mux2to1 mux_3 (\n .sel(c),\n .in0(1'b1),\n .in1(d),\n .out(mux_out)\n );\n \n assign mux_in[3] = mux_out;\n\nendmodule\n\nmodule mux2to1 (\n input sel,\n input in0,\n input in1,\n output out\n);\n\n assign out = sel ? in1 : in0;\n\nendmodule", "module top_module (\n input c,\n input d,\n output [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c | d;\n assign mux_in[3] = ~d;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : c;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c | d;\n assign mux_in[3] = ~d;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n\n assign mux_out = c ? d : 1'b1;\n assign mux_in[3] = mux_out;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n \n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n \n assign mux_out = c ? (d ? 1'b1 : 1'b1) : (d ? 1'b0 : 1'b1);\n assign mux_in[3] = mux_out;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n\n assign mux_in[0] = d ? 1'b1 : 1'b0;\n assign mux_in[1] = 1'b0;\n assign mux_in[2] = c ? 1'b1 : 1'b0;\n \n assign mux_out = c ? d : 1'b1;\n assign mux_in[3] = mux_out;\n\nendmodule", "module top_module (\n\tinput c,\n\tinput d,\n\toutput [3:0] mux_in\n);\n\n wire mux_out;\n \n assign mux_in[0
{"task_id": "ece241_2014_q5b", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state, next_state;\n parameter A = 2'b01, B = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = x ? B : A;\n B: next_state = B;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == A & x) | (state == B & ~x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state, next_state;\n parameter A = 2'b01, B = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = x ? B : A;\n B: next_state = B;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == A && x) || (state == B && !x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n parameter A = 2'b01;\n parameter B = 2'b10;\n\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = x ? B : A;\n B: next_state = B;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == A && x) || (state == B && !x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state, next_state;\n parameter A = 2'b01, B = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = x ? B : A;\n B: next_state = B;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == A && x) || (state == B && !x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state;\n parameter A = 2'b01, B = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n case (state)\n A: state <= x ? B : A;\n B: state <= B;\n default: state <= A;\n endcase\n end\n\n assign z = (state == A && x) || (state == B && !x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n parameter A = 2'b01;\n parameter B = 2'b10;\n\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = x ? B : A;\n B: next_state = B;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == A && x) || (state == B && !x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state, next_state;\n parameter A = 2'b01, B = 2'b10;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= A;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n A: next_state = x ? B : A;\n B: next_state = B;\n default: next_state = A;\n endcase\n end\n\n assign z = (state == A && x) || (state == B && !x);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput x,\n\toutput z\n);\n\n reg [1:0] state;\n parameter A = 2'b01
{"task_id": "circuit10", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state) ? (!a && b) || (a && !b) : (a || b);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a & b)\n state <= 1'b1;\n else if (~a & ~b)\n state <= 1'b0;\n end\n \n assign q = (state & ~a & ~b) | (~state & ((~a & b) | (a & ~b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state == 1'b0) ? (a ^ b) : !(a ^ b);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && (a ^ b));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\n if (a && b)\n state <= 1'b1;\n else if (!a && !b)\n state <= 1'b0;\n end\n \n assign q = (state && !a && !b) || (!state && ((a && !b) || (!a && b)));\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput a,\n\tinput b,\n\toutput q,\n\toutput state\n);\n\n reg state;\n \n always @(posedge clk) begin\
{"task_id": "2012_q1g", "llmgen_RTL": ["module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x[4:3])\n 2'b00: f = (x[2:1] == 2'b00) || (x[2:1] == 2'b10);\n 2'b01: f = 1'b0;\n 2'b11: f = ~(x[2:1] == 2'b10);\n 2'b10: f = ~(x[2:1] == 2'b11);\n default: f = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x[4:3])\n 2'b00: f = (x[2:1] == 2'b00 || x[2:1] == 2'b10);\n 2'b01: f = 1'b0;\n 2'b11: f = (x[2:1] != 2'b10);\n 2'b10: f = (x[2:1] != 2'b11);\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | (~x[3] & ~x[4] & x[1]) | (x[3] & x[4] & ~x[1]) | (x[3] & ~x[2] & ~x[1]) | (~x[4] & x[3] & x[2]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x[4:3])\n 2'b00: f = (x[2:1] == 2'b00) || (x[2:1] == 2'b10);\n 2'b01: f = 1'b0;\n 2'b11: f = ~(x[2:1] == 2'b10);\n 2'b10: f = ~(x[2:1] == 2'b11);\n default: f = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case(x[4:3])\n 2'b00: f = (x[2:1] == 2'b00) || (x[2:1] == 2'b10);\n 2'b01: f = 1'b0;\n 2'b11: f = ~(x[2:1] == 2'b10);\n 2'b10: f = ~(x[2:1] == 2'b11);\n default: f = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n always_comb begin\n case (x[4:3])\n 2'b00: f = (x[2:1] == 2'b00) || (x[2:1] == 2'b10);\n 2'b01: f = 1'b0;\n 2'b11: f = ~(x[2:1] == 2'b10);\n 2'b10: f = ~(x[2:1] == 2'b11);\n default: f = 1'b0;\n endcase\n end\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n (~x[3] & ~x[4] & x[1]) | \n (x[3] & ~x[4]) | \n (x[3] & x[4] & ~x[1]) | \n (x[4] & ~x[2] & ~x[1]);\n\nendmodule", "module top_module (\n\tinput [4:1] x,\n\toutput logic f\n);\n\n assign f = (~x[3] & ~x[4] & ~x[2]) | \n
{"task_id": "fsm_hdlc", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput reset,\n\tinput in,\n\toutput reg disc,\n\toutput reg flag,\n\toutput reg err\n);\n\n\treg [3:0] state, next_state;\n\tparameter S0 = 4'd0, S1 = 4'd1, S2 = 4'd2, S3 = 4'd3, S4 = 4'd4, S5 = 4'd5, S6 = 4'd6, S7 = 4'd7;\n\n\talways @(posedge clk) begin\n\t\tif (reset)\n\t\t\tstate <= S0;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tcase (state)\n\t\t\tS0: next_state = in ? S1 : S0;\n\t\t\tS1: next_state = in ? S2 : S0;\n\t\t\tS2: next_state = in ? S3 : S0;\n\t\t\tS3: next_state = in ? S4 : S0;\n\t\t\tS4: next_state = in ? S5 : S0;\n\t\t\tS5: next_state = in ? S6 : S0;\n\t\t\tS6: next_state = in ? S7 : S0;\n\t\t\tS7: next_state = in ? S7 : S0;\n\t\tendcase\n\tend\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tdisc <= 0;\n\t\t\tflag <= 0;\n\t\t\terr <= 0;\n\t\tend\n\t\telse begin\n\t\t\tdisc <= (state == S5) && !in;\n\t\t\tflag <= (state == S6) && !in;\n\t\t\terr <= (state == S7);\n\t\tend\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput in,\n\toutput reg disc,\n\toutput reg flag,\n\toutput reg err\n);\n\n parameter S0 = 3'd0, S1 = 3'd1, S2 = 3'd2, S3 = 3'd3, S4 = 3'd4, S5 = 3'd5, S6 = 3'd6;\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset) state <= S0;\n else state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n case (state)\n S0: next_state = in ? S1 : S0;\n S1: next_state = in ? S2 : S0;\n S2: next_state = in ? S3 : S0;\n S3: next_state = in ? S4 : S0;\n S4: next_state = in ? S5 : S0;\n S5: next_state = in ? S6 : S0;\n S6: next_state = in ? S6 : S0;\n endcase\n end\n\n always @(posedge clk) begin\n if (reset) begin\n disc <= 0;\n flag <= 0;\n err <= 0;\n end else begin\n disc <= (state == S5) && !in;\n flag <= (state == S6) && !in;\n err <= (state == S6) && in;\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput in,\n\toutput reg disc,\n\toutput reg flag,\n\toutput reg err\n);\n\n\tparameter S0 = 3'd0, S1 = 3'd1, S2 = 3'd2, S3 = 3'd3, S4 = 3'd4, S5 = 3'd5, S6 = 3'd6;\n\treg [2:0] state, next_state;\n\n\talways @(posedge clk) begin\n\t\tif (reset) state <= S0;\n\t\telse state <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tcase (state)\n\t\t\tS0: next_state = in ? S1 : S0;\n\t\t\tS1: next_state = in ? S2 : S0;\n\t\t\tS2: next_state = in ? S3 : S0;\n\t\t\tS3: next_state = in ? S4 : S0;\n\t\t\tS4: next_state = in ? S5 : S0;\n\t\t\tS5: next_state = in ? S6 : S0;\n\t\t\tS6: next_state = in ? S6 : S0;\n\t\tendcase\n\tend\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tdisc <= 0;\n\t\t\tflag <= 0;\n\t\t\terr <= 0;\n\t\tend else begin\n\t\t\tdisc <= (state == S5) && !in;\n\t\t\tflag <= (state == S6) && !in;\n\t\t\terr <= (state == S6) && in;\n\t\tend\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput in,\n\toutput reg disc,\n\toutput reg flag,\n\toutput reg err\n);\n\n parameter S0 = 3'd0, S1 = 3'd1, S2 = 3'd2, S3 = 3'd3, S4 = 3'd4, S5 = 3'd5, S6 = 3'd6;\n reg [2:0] state, next_state;\n\n always @(posedge clk) begin\n if (reset)\n state <= S0;\n else\n state <= next_state;\n end\n\n always @(*) begin\n next_state = state;\n case (state)\n S0: next_state = in ? S1 : S0;\n S1: next_state = in ? S2 : S0;\n S2: next_state = in ? S3 : S0;\n S3: next_state = in ? S4 : S0;\n S4: next_state = in ? S5 : S0;\n S5: next_state = in ? S6 : S0;\n S6: next_state = in ? S6 : S0;\n endcase\n end\n\n always @(posedge clk) begin\n if (reset) begin\n disc <= 0;\n flag <= 0;\n err <= 0;\n end else begin\
{"task_id": "review2015_fancytimer", "llmgen_RTL": ["module top_module(\n\tinput wire clk,\n\tinput wire reset,\n\tinput wire data,\n output wire [3:0] count,\n output reg counting,\n output reg done,\n input wire ack );\n\n localparam IDLE = 3'd0, DETECT = 3'd1, READ_DELAY = 3'd2, COUNT = 3'd3, FINISH = 3'd4;\n reg [2:0] state, next_state;\n reg [3:0] pattern, delay;\n reg [3:0] delay_counter;\n reg [9:0] cycle_counter;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n pattern <= 4'b0000;\n delay <= 4'b0000;\n delay_counter <= 4'b0000;\n cycle_counter <= 10'b0;\n counting <= 1'b0;\n done <= 1'b0;\n end else begin\n state <= next_state;\n case (state)\n IDLE: pattern <= {pattern[2:0], data};\n DETECT: pattern <= {pattern[2:0], data};\n READ_DELAY: delay <= {delay[2:0], data};\n COUNT: begin\n if (cycle_counter == 10'd999) begin\n cycle_counter <= 10'b0;\n if (delay_counter == 4'b0) begin\n counting <= 1'b0;\n end else begin\n delay_counter <= delay_counter - 1'b1;\n end\n end else begin\n cycle_counter <= cycle_counter + 1'b1;\n end\n end\n endcase\n end\n end\n\n always @(*) begin\n next_state = state;\n case (state)\n IDLE: if (pattern == 4'b1101) next_state = DETECT;\n DETECT: next_state = READ_DELAY;\n READ_DELAY: begin\n if (delay_counter == 4'b0011) begin\n next_state = COUNT;\n delay_counter = delay;\n counting = 1'b1;\n end else begin\n delay_counter = delay_counter + 1'b1;\n end\n end\n COUNT: if (delay_counter == 4'b0 && cycle_counter == 10'd999) next_state = FINISH;\n FINISH: if (ack) next_state = IDLE;\n endcase\n end\n\n always @(posedge clk) begin\n if (state == FINISH) done <= 1'b1;\n else if (ack) done <= 1'b0;\n end\n\n assign count = (state == COUNT) ? delay_counter : 4'bxxxx;\n\nendmodule", "module top_module(\n\tinput wire clk,\n\tinput wire reset,\n\tinput wire data,\n output wire [3:0] count,\n output reg counting,\n output reg done,\n input wire ack );\n\n reg [3:0] state;\n reg [3:0] delay;\n reg [3:0] pattern;\n reg [13:0] timer;\n reg [3:0] remaining;\n\n parameter IDLE = 4'd0, READ_PATTERN = 4'd1, READ_DELAY = 4'd2, COUNT = 4'd3, FINISH = 4'd4;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n pattern <= 4'b0;\n delay <= 4'b0;\n timer <= 14'd0;\n counting <= 1'b0;\n done <= 1'b0;\n remaining <= 4'b0;\n end else begin\n case (state)\n IDLE: begin\n pattern <= {pattern[2:0], data};\n if (pattern == 4'b1101) state <= READ_DELAY;\n end\n READ_DELAY: begin\n delay <= {delay[2:0], data};\n if (&delay[3:1]) state <= COUNT;\n end\n COUNT: begin\n if (timer == 14'd0) begin\n timer <= (delay + 1'b1) * 1000 - 1'b1;\n counting <= 1'b1;\n remaining <= delay;\n end else if (timer == 14'd999) begin\n timer <= timer - 1'b1;\n remaining <= remaining - 1'b1;\n end else if (timer == 14'd1) begin\n timer <= timer - 1'b1;\n state <= FINISH;\n counting <= 1'b0;\n
{"task_id": "ece241_2013_q4", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput reset,\n\tinput [3:1] s,\n\toutput reg fr3,\n\toutput reg fr2,\n\toutput reg fr1,\n\toutput reg dfr\n);\n\n reg [3:1] prev_s;\n reg [2:0] state;\n\n always @(posedge clk or posedge reset) begin\n if (reset) begin\n state <= 3'b000;\n prev_s <= 3'b000;\n fr3 <= 1;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= 1;\n end else begin\n prev_s <= s;\n case (s)\n 3'b111: begin\n state <= 3'b111;\n fr3 <= 0;\n fr2 <= 0;\n fr1 <= 0;\n dfr <= 0;\n end\n 3'b011: begin\n state <= 3'b011;\n fr3 <= 0;\n fr2 <= 0;\n fr1 <= 1;\n dfr <= (prev_s < s);\n end\n 3'b001: begin\n state <= 3'b001;\n fr3 <= 0;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= (prev_s < s);\n end\n 3'b000: begin\n state <= 3'b000;\n fr3 <= 1;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= 1;\n end\n default: begin\n state <= state;\n fr3 <= fr3;\n fr2 <= fr2;\n fr1 <= fr1;\n dfr <= dfr;\n end\n endcase\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput [3:1] s,\n\toutput reg fr3,\n\toutput reg fr2,\n\toutput reg fr1,\n\toutput reg dfr\n);\n\n reg [3:1] prev_s;\n reg [2:0] state;\n \n always @(posedge clk or posedge reset) begin\n if (reset) begin\n state <= 3'b000;\n prev_s <= 3'b000;\n fr3 <= 1;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= 1;\n end else begin\n prev_s <= s;\n case (s)\n 3'b111: begin\n state <= 3'b111;\n fr3 <= 0;\n fr2 <= 0;\n fr1 <= 0;\n dfr <= 0;\n end\n 3'b011: begin\n state <= 3'b011;\n fr3 <= 0;\n fr2 <= 0;\n fr1 <= 1;\n dfr <= (prev_s < s);\n end\n 3'b001: begin\n state <= 3'b001;\n fr3 <= 0;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= (prev_s < s);\n end\n 3'b000: begin\n state <= 3'b000;\n fr3 <= 1;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= 1;\n end\n default: begin\n state <= state;\n fr3 <= fr3;\n fr2 <= fr2;\n fr1 <= fr1;\n dfr <= dfr;\n end\n endcase\n end\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput reset,\n\tinput [3:1] s,\n\toutput reg fr3,\n\toutput reg fr2,\n\toutput reg fr1,\n\toutput reg dfr\n);\n\nreg [3:1] prev_s;\nreg [2:0] state;\n\nalways @(posedge clk) begin\n if (reset) begin\n state <= 3'b000;\n prev_s <= 3'b000;\n fr3 <= 1;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= 1;\n end else begin\n prev_s <= s;\n case (s)\n 3'b000: begin\n state <= 3'b000;\n fr3 <= 1;\n fr2 <= 1;\n fr1 <= 1;\n dfr <= (prev_s > s) ? 1 : dfr;\n end\n 3'b001: begin\n state <= 3'b001;\n fr3 <= 0;\n
{"task_id": "fsm_serial", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput reg done\n);\n\n\tlocalparam IDLE = 3'b000;\n\tlocalparam START = 3'b001;\n\tlocalparam DATA = 3'b010;\n\tlocalparam STOP = 3'b011;\n\tlocalparam ERROR = 3'b100;\n\n\treg [2:0] state, next_state;\n\treg [3:0] bit_count;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tstate <= IDLE;\n\t\t\tbit_count <= 0;\n\t\t\tdone <= 0;\n\t\tend else begin\n\t\t\tstate <= next_state;\n\t\t\tif (state == DATA)\n\t\t\t\tbit_count <= bit_count + 1;\n\t\t\telse\n\t\t\t\tbit_count <= 0;\n\t\tend\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tdone = 0;\n\t\tcase (state)\n\t\t\tIDLE: begin\n\t\t\t\tif (!in)\n\t\t\t\t\tnext_state = START;\n\t\t\tend\n\t\t\tSTART: begin\n\t\t\t\tnext_state = DATA;\n\t\t\tend\n\t\t\tDATA: begin\n\t\t\t\tif (bit_count == 4'b0111)\n\t\t\t\t\tnext_state = STOP;\n\t\t\tend\n\t\t\tSTOP: begin\n\t\t\t\tif (in) begin\n\t\t\t\t\tdone = 1;\n\t\t\t\t\tnext_state = IDLE;\n\t\t\t\tend else\n\t\t\t\t\tnext_state = ERROR;\n\t\t\tend\n\t\t\tERROR: begin\n\t\t\t\tif (in)\n\t\t\t\t\tnext_state = IDLE;\n\t\t\tend\n\t\tendcase\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput reg done\n);\n\n\tlocalparam IDLE = 3'd0;\n\tlocalparam START = 3'd1;\n\tlocalparam DATA = 3'd2;\n\tlocalparam STOP = 3'd3;\n\tlocalparam ERROR = 3'd4;\n\n\treg [2:0] state, next_state;\n\treg [3:0] bit_count;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tstate <= IDLE;\n\t\t\tbit_count <= 0;\n\t\tend else begin\n\t\t\tstate <= next_state;\n\t\t\tif (state == DATA)\n\t\t\t\tbit_count <= bit_count + 1;\n\t\t\telse\n\t\t\t\tbit_count <= 0;\n\t\tend\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tdone = 1'b0;\n\n\t\tcase (state)\n\t\t\tIDLE: begin\n\t\t\t\tif (~in) next_state = START;\n\t\t\tend\n\t\t\tSTART: begin\n\t\t\t\tnext_state = DATA;\n\t\t\tend\n\t\t\tDATA: begin\n\t\t\t\tif (bit_count == 4'd7) begin\n\t\t\t\t\tif (in) next_state = STOP;\n\t\t\t\t\telse next_state = ERROR;\n\t\t\t\tend\n\t\t\tend\n\t\t\tSTOP: begin\n\t\t\t\tdone = 1'b1;\n\t\t\t\tnext_state = IDLE;\n\t\t\tend\n\t\t\tERROR: begin\n\t\t\t\tif (in) next_state = IDLE;\n\t\t\tend\n\t\tendcase\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput reg done\n);\n\n localparam IDLE = 3'd0;\n localparam START = 3'd1;\n localparam DATA = 3'd2;\n localparam STOP = 3'd3;\n localparam ERROR = 3'd4;\n\n reg [2:0] state, next_state;\n reg [3:0] bit_count;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n bit_count <= 0;\n done <= 0;\n end else begin\n state <= next_state;\n if (state == DATA)\n bit_count <= bit_count + 1;\n else\n bit_count <= 0;\n end\n end\n\n always @(*) begin\n next_state = state;\n done = 0;\n\n case (state)\n IDLE: begin\n if (!in)\n next_state = START;\n end\n START: begin\n next_state = DATA;\n end\n DATA: begin\n if (bit_count == 4'd7)\n next_state = STOP;\n end\n STOP: begin\n if (in) begin\n next_state = IDLE;\n done = 1;\n end else\n next_state = ERROR;\n end\n ERROR: begin\n if (in)\n next_state = IDLE;\n end\n endcase\n end\n\nendmodule", "module top_module (\n input clk,\n input in,\n input reset,\n output done\n);\n\n parameter IDLE = 3'd0, START = 3'd1, DATA = 3'd2, STOP = 3'd3, ERROR = 3'd4;\n \n reg [2:0] state, next_state;\n reg [3:0] bit_count;\n \n always @(posedge clk or posedge reset) begin\n if (reset)\n state <= IDLE;\n else\n state <= next
{"task_id": "fsm_serialdata", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput reg [7:0] out_byte,\n\toutput reg done\n);\n\nreg [3:0] state;\nreg [3:0] bit_count;\nreg [7:0] shift_reg;\n\nparameter IDLE = 4'd0, START = 4'd1, DATA = 4'd2, STOP = 4'd3, ERROR = 4'd4;\n\nalways @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n bit_count <= 0;\n shift_reg <= 8'b0;\n out_byte <= 8'b0;\n done <= 0;\n end else begin\n case (state)\n IDLE: begin\n done <= 0;\n if (in == 0) begin\n state <= START;\n bit_count <= 0;\n end\n end\n START: begin\n state <= DATA;\n bit_count <= 0;\n shift_reg <= 8'b0;\n end\n DATA: begin\n shift_reg <= {in, shift_reg[7:1]};\n bit_count <= bit_count + 1;\n if (bit_count == 7) begin\n state <= STOP;\n end\n end\n STOP: begin\n if (in == 1) begin\n state <= IDLE;\n out_byte <= shift_reg;\n done <= 1;\n end else begin\n state <= ERROR;\n end\n end\n ERROR: begin\n if (in == 1) begin\n state <= IDLE;\n end\n end\n endcase\n end\nend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput reg [7:0] out_byte,\n\toutput reg done\n);\n\n\tlocalparam IDLE = 3'd0,\n\t\t\t START = 3'd1,\n\t\t\t DATA = 3'd2,\n\t\t\t STOP = 3'd3,\n\t\t\t ERROR = 3'd4;\n\n\treg [2:0] state, next_state;\n\treg [3:0] bit_count;\n\treg [7:0] shift_reg;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tstate <= IDLE;\n\t\t\tbit_count <= 0;\n\t\t\tshift_reg <= 8'b0;\n\t\t\tout_byte <= 8'b0;\n\t\t\tdone <= 1'b0;\n\t\tend else begin\n\t\t\tstate <= next_state;\n\t\t\tif (state == DATA) begin\n\t\t\t\tshift_reg <= {in, shift_reg[7:1]};\n\t\t\t\tbit_count <= bit_count + 1;\n\t\t\tend else begin\n\t\t\t\tbit_count <= 0;\n\t\t\tend\n\t\tend\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tdone = 1'b0;\n\t\tcase (state)\n\t\t\tIDLE: begin\n\t\t\t\tif (!in) next_state = START;\n\t\t\tend\n\t\t\tSTART: begin\n\t\t\t\tnext_state = DATA;\n\t\t\tend\n\t\t\tDATA: begin\n\t\t\t\tif (bit_count == 4'd7) next_state = STOP;\n\t\t\tend\n\t\t\tSTOP: begin\n\t\t\t\tif (in) begin\n\t\t\t\t\tnext_state = IDLE;\n\t\t\t\t\tdone = 1'b1;\n\t\t\t\t\tout_byte = shift_reg;\n\t\t\t\tend else begin\n\t\t\t\t\tnext_state = ERROR;\n\t\t\t\tend\n\t\t\tend\n\t\t\tERROR: begin\n\t\t\t\tif (in) next_state = IDLE;\n\t\t\tend\n\t\tendcase\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput in,\n\tinput reset,\n\toutput reg [7:0] out_byte,\n\toutput reg done\n);\n\n\tlocalparam IDLE = 3'd0, START = 3'd1, DATA = 3'd2, STOP = 3'd3, ERROR = 3'd4;\n\treg [2:0] state, next_state;\n\treg [3:0] bit_count;\n\treg [7:0] shift_reg;\n\n\talways @(posedge clk) begin\n\t\tif (reset) begin\n\t\t\tstate <= IDLE;\n\t\t\tbit_count <= 0;\n\t\t\tshift_reg <= 8'b0;\n\t\t\tdone <= 0;\n\t\t\tout_byte <= 8'b0;\n\t\tend else begin\n\t\t\tstate <= next_state;\n\t\t\tcase (state)\n\t\t\t\tDATA: begin\n\t\t\t\t\tif (bit_count < 8) begin\n\t\t\t\t\t\tshift_reg <= {in, shift_reg[7:1]};\n\t\t\t\t\t\tbit_count <= bit_count + 1;\n\t\t\t\t\tend\n\t\t\t\tend\n\t\t\t\tSTOP: begin\n\t\t\t\t\tif (in) begin\n\t\t\t\t\t\tout_byte <= shift_reg;\n\t\t\t\t\t\tdone <= 1;\n\t\t\t\t\tend\n\t\t\t\tend\n\t\t\t\tdefault: begin\n\t\t\t\t\tbit_count <= 0;\n\t\t\t\t\tdone <= 0;\n\t\t\t\tend\n\t\t\tendcase\n\t\tend\n\tend\n\n\talways @(*) begin\n\t\tnext_state = state;\n\t\tcase (state)\n\t\t\tIDLE: if (!in) next_state = START;\n\t\t\tSTART: next_state = DATA;\n\t\t\tDATA: if (bit_count == 8) next_state = STOP;\n\t\t\tSTOP: next_state = in ? IDLE : ERROR;\n\t\t\tERROR:
{"task_id": "gshare", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput areset, \n\n\tinput predict_valid,\n\tinput [6:0] predict_pc,\n\toutput predict_taken, \n\toutput [6:0] predict_history,\n\n\tinput train_valid,\n\tinput train_taken,\n\tinput train_mispredicted,\n\tinput [6:0] train_history, \n\tinput [6:0] train_pc\n);\n\n reg [1:0] pht [127:0];\n reg [6:0] global_history;\n wire [6:0] predict_index, train_index;\n \n assign predict_index = predict_pc ^ global_history;\n assign train_index = train_pc ^ train_history;\n \n assign predict_taken = pht[predict_index][1];\n assign predict_history = global_history;\n \n integer i;\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n global_history <= 7'b0;\n for (i = 0; i < 128; i = i + 1)\n pht[i] <= 2'b01;\n end else begin\n if (train_valid && train_mispredicted)\n global_history <= {train_history[5:0], train_taken};\n else if (predict_valid)\n global_history <= {global_history[5:0], predict_taken};\n \n if (train_valid) begin\n case (pht[train_index])\n 2'b00: pht[train_index] <= train_taken ? 2'b01 : 2'b00;\n 2'b01: pht[train_index] <= train_taken ? 2'b10 : 2'b00;\n 2'b10: pht[train_index] <= train_taken ? 2'b11 : 2'b01;\n 2'b11: pht[train_index] <= train_taken ? 2'b11 : 2'b10;\n endcase\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset, \n\n\tinput predict_valid,\n\tinput [6:0] predict_pc,\n\toutput predict_taken, \n\toutput [6:0] predict_history,\n\n\tinput train_valid,\n\tinput train_taken,\n\tinput train_mispredicted,\n\tinput [6:0] train_history, \n\tinput [6:0] train_pc\n);\n\n reg [1:0] pht [127:0];\n reg [6:0] global_history;\n wire [6:0] predict_index, train_index;\n \n assign predict_index = predict_pc ^ global_history;\n assign train_index = train_pc ^ train_history;\n \n assign predict_taken = pht[predict_index][1];\n assign predict_history = global_history;\n \n integer i;\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n global_history <= 7'b0;\n for (i = 0; i < 128; i = i + 1) begin\n pht[i] <= 2'b01;\n end\n end else begin\n if (train_valid) begin\n if (train_taken) begin\n pht[train_index] <= (pht[train_index] == 2'b11) ? 2'b11 : pht[train_index] + 1;\n end else begin\n pht[train_index] <= (pht[train_index] == 2'b00) ? 2'b00 : pht[train_index] - 1;\n end\n \n if (train_mispredicted) begin\n global_history <= {train_history[5:0], train_taken};\n end else if (predict_valid) begin\n global_history <= {global_history[5:0], predict_taken};\n end\n end else if (predict_valid) begin\n global_history <= {global_history[5:0], predict_taken};\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput areset, \n\n\tinput predict_valid,\n\tinput [6:0] predict_pc,\n\toutput predict_taken, \n\toutput [6:0] predict_history,\n\n\tinput train_valid,\n\tinput train_taken,\n\tinput train_mispredicted,\n\tinput [6:0] train_history, \n\tinput [6:0] train_pc\n);\n\n reg [1:0] pht [127:0];\n reg [6:0] global_history;\n \n wire [6:0] predict_index = predict_pc ^ global_history;\n wire [6:0] train_index = train_pc ^ train_history;\n \n assign predict_taken = pht[predict_index][1];\n assign predict_history = global_history;\n \n integer i;\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n global_history <= 7'b0;\n for (i = 0; i < 128; i = i + 1) begin\n pht[i] <= 2'b01;
{"task_id": "lemmings4", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\tinput dig,\n\toutput reg walk_left,\n\toutput reg walk_right,\n\toutput reg aaah,\n\toutput reg digging\n);\n\n parameter LEFT = 2'b00, RIGHT = 2'b01, FALL = 2'b10, DIG = 2'b11;\n reg [1:0] state, next_state;\n reg [4:0] fall_counter;\n reg direction;\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= LEFT;\n fall_counter <= 0;\n direction <= 0;\n end else begin\n state <= next_state;\n if (state == FALL) begin\n if (fall_counter < 20)\n fall_counter <= fall_counter + 1;\n end else begin\n fall_counter <= 0;\n end\n if (state == LEFT || state == RIGHT)\n direction <= (state == LEFT) ? 0 : 1;\n end\n end\n\n always @(*) begin\n next_state = state;\n case (state)\n LEFT, RIGHT: begin\n if (!ground)\n next_state = FALL;\n else if (dig)\n next_state = DIG;\n else if ((state == LEFT && bump_left) || (state == RIGHT && bump_right))\n next_state = (state == LEFT) ? RIGHT : LEFT;\n end\n FALL: begin\n if (ground) begin\n if (fall_counter > 20)\n next_state = FALL;\n else\n next_state = direction ? RIGHT : LEFT;\n end\n end\n DIG: begin\n if (!ground)\n next_state = FALL;\n end\n endcase\n end\n\n always @(*) begin\n walk_left = (state == LEFT);\n walk_right = (state == RIGHT);\n aaah = (state == FALL);\n digging = (state == DIG);\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\tinput dig,\n\toutput reg walk_left,\n\toutput reg walk_right,\n\toutput reg aaah,\n\toutput reg digging\n);\n\n parameter LEFT = 3'b000, RIGHT = 3'b001, FALL_LEFT = 3'b010, FALL_RIGHT = 3'b011, DIG_LEFT = 3'b100, DIG_RIGHT = 3'b101, SPLAT = 3'b110;\n \n reg [2:0] state, next_state;\n reg [4:0] fall_counter;\n \n always @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= LEFT;\n fall_counter <= 0;\n end else begin\n state <= next_state;\n if (aaah)\n fall_counter <= (fall_counter == 5'd20) ? fall_counter : fall_counter + 1;\n else\n fall_counter <= 0;\n end\n end\n \n always @(*) begin\n next_state = state;\n walk_left = 0;\n walk_right = 0;\n aaah = 0;\n digging = 0;\n \n case (state)\n LEFT: begin\n walk_left = 1;\n if (!ground)\n next_state = FALL_LEFT;\n else if (dig)\n next_state = DIG_LEFT;\n else if (bump_left)\n next_state = RIGHT;\n end\n RIGHT: begin\n walk_right = 1;\n if (!ground)\n next_state = FALL_RIGHT;\n else if (dig)\n next_state = DIG_RIGHT;\n else if (bump_right)\n next_state = LEFT;\n end\n FALL_LEFT: begin\n aaah = 1;\n if (ground) begin\n if (fall_counter >= 5'd20)\n next_state = SPLAT;\n else\n next_state = LEFT;\n end\n end\n FALL_RIGHT: begin\n aaah = 1;\n if (ground) begin\n if (fall_counter >= 5'd20)\n next_st
{"task_id": "review2015_fsm", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\tinput data,\n output reg shift_ena,\n output reg counting,\n input done_counting,\n output reg done,\n input ack );\n\n reg [3:0] state;\n reg [3:0] pattern;\n reg [2:0] shift_count;\n\n parameter IDLE = 4'd0,\n DETECT = 4'd1,\n SHIFT = 4'd2,\n COUNT = 4'd3,\n TIMEOUT = 4'd4;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n pattern <= 4'b0000;\n shift_count <= 3'd0;\n shift_ena <= 1'b0;\n counting <= 1'b0;\n done <= 1'b0;\n end else begin\n case (state)\n IDLE: begin\n pattern <= {pattern[2:0], data};\n if (pattern == 4'b1101) begin\n state <= SHIFT;\n shift_ena <= 1'b1;\n shift_count <= 3'd0;\n end\n end\n SHIFT: begin\n pattern <= {pattern[2:0], data};\n shift_count <= shift_count + 1'b1;\n if (shift_count == 3'd3) begin\n state <= COUNT;\n shift_ena <= 1'b0;\n counting <= 1'b1;\n end\n end\n COUNT: begin\n if (done_counting) begin\n state <= TIMEOUT;\n counting <= 1'b0;\n done <= 1'b1;\n end\n end\n TIMEOUT: begin\n if (ack) begin\n state <= IDLE;\n done <= 1'b0;\n end\n end\n default: state <= IDLE;\n endcase\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput data,\n output reg shift_ena,\n output reg counting,\n input done_counting,\n output reg done,\n input ack );\n\n reg [3:0] state;\n reg [3:0] pattern;\n reg [2:0] shift_count;\n\n parameter IDLE = 4'd0, CHECK_1 = 4'd1, CHECK_11 = 4'd2, CHECK_110 = 4'd3,\n SHIFT = 4'd4, WAIT_COUNT = 4'd5, NOTIFY = 4'd6;\n\n always @(posedge clk) begin\n if (reset) begin\n state <= IDLE;\n pattern <= 4'b0000;\n shift_count <= 3'd0;\n shift_ena <= 1'b0;\n counting <= 1'b0;\n done <= 1'b0;\n end else begin\n case (state)\n IDLE: begin\n if (data) state <= CHECK_1;\n pattern <= {pattern[2:0], data};\n end\n CHECK_1: begin\n if (data) state <= CHECK_11;\n else state <= IDLE;\n pattern <= {pattern[2:0], data};\n end\n CHECK_11: begin\n if (!data) state <= CHECK_110;\n else state <= CHECK_11;\n pattern <= {pattern[2:0], data};\n end\n CHECK_110: begin\n if (data) state <= SHIFT;\n else state <= IDLE;\n pattern <= {pattern[2:0], data};\n shift_ena <= 1'b1;\n shift_count <= 3'd0;\n end\n SHIFT: begin\n if (shift_count == 3'd3) begin\n state <= WAIT_COUNT;\n shift_ena <= 1'b0;\n counting <= 1'b1;\n end else begin\n shift_count <= shift_count + 1'b1;\n end\n end\n WAIT_COUNT: begin\n if (done_counting) begin\n state <= NOTIFY;\n counting <= 1'b0;\n done <= 1'b1;\n end\n
{"task_id": "conwaylife", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput load,\n\tinput [255:0] data,\n\toutput reg [255:0] q\n);\n\n reg [255:0] next_q;\n integer i, j;\n\n always @(*) begin\n for (i = 0; i < 16; i = i + 1) begin\n for (j = 0; j < 16; j = j + 1) begin\n integer neighbors;\n neighbors = \n q[((i-1+16)%16)*16 + ((j-1+16)%16)] +\n q[((i-1+16)%16)*16 + j] +\n q[((i-1+16)%16)*16 + ((j+1)%16)] +\n q[i*16 + ((j-1+16)%16)] +\n q[i*16 + ((j+1)%16)] +\n q[((i+1)%16)*16 + ((j-1+16)%16)] +\n q[((i+1)%16)*16 + j] +\n q[((i+1)%16)*16 + ((j+1)%16)];\n\n case (neighbors)\n 2: next_q[i*16 + j] = q[i*16 + j];\n 3: next_q[i*16 + j] = 1'b1;\n default: next_q[i*16 + j] = 1'b0;\n endcase\n end\n end\n end\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else\n q <= next_q;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [255:0] data,\n\toutput reg [255:0] q\n);\n\n reg [255:0] next_q;\n integer i, j, row, col, live_neighbors;\n\n always @(*) begin\n for (i = 0; i < 256; i = i + 1) begin\n row = i / 16;\n col = i % 16;\n live_neighbors = 0;\n\n for (j = -1; j <= 1; j = j + 1) begin\n live_neighbors = live_neighbors + q[((row + 16 + j) % 16) * 16 + ((col + 15) % 16)];\n live_neighbors = live_neighbors + q[((row + 16 + j) % 16) * 16 + ((col + 1) % 16)];\n end\n live_neighbors = live_neighbors + q[((row + 15) % 16) * 16 + col];\n live_neighbors = live_neighbors + q[((row + 1) % 16) * 16 + col];\n live_neighbors = live_neighbors - q[i];\n\n case (live_neighbors)\n 2: next_q[i] = q[i];\n 3: next_q[i] = 1'b1;\n default: next_q[i] = 1'b0;\n endcase\n end\n end\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else\n q <= next_q;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [255:0] data,\n\toutput reg [255:0] q\n);\n\n reg [255:0] next_q;\n integer i, j;\n\n always @(*) begin\n for (i = 0; i < 16; i = i + 1) begin\n for (j = 0; j < 16; j = j + 1) begin\n integer count;\n count = 0;\n\n // Count live neighbors\n count = count + q[((i-1+16)%16)*16 + ((j-1+16)%16)] +\n q[((i-1+16)%16)*16 + j] +\n q[((i-1+16)%16)*16 + ((j+1)%16)] +\n q[i*16 + ((j-1+16)%16)] +\n q[i*16 + ((j+1)%16)] +\n q[((i+1)%16)*16 + ((j-1+16)%16)] +\n q[((i+1)%16)*16 + j] +\n q[((i+1)%16)*16 + ((j+1)%16)];\n\n // Apply rules\n case (count)\n 2: next_q[i*16+j] = q[i*16+j];\n 3: next_q[i*16+j] = 1'b1;\n default: next_q[i*16+j] = 1'b0;\n endcase\n end\n end\n end\n\n always @(posedge clk) begin\n if (load)\n q <= data;\n else\n q <= next_q;\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput load,\n\tinput [255:0] data,\n\toutput reg [255:0] q\n);\n\n reg [255:0] next_q;\n integer i, j, row, col, neighbors;\n\n always @(*) begin\n for (i = 0; i < 256; i = i + 1) begin\n row = i / 16;\n col = i % 16;\n neighbors = 0;\n\n for (j = 0; j < 8; j = j + 1) begin\n case (j)\n 0: neighbors = neighbors + q[((row - 1 + 16) % 16)
{"task_id": "lemmings3", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\tinput dig,\n\toutput reg walk_left,\n\toutput reg walk_right,\n\toutput reg aaah,\n\toutput reg digging\n);\n\n localparam LEFT = 2'b00, RIGHT = 2'b01, FALL = 2'b10, DIG = 2'b11;\n reg [1:0] state, next_state;\n reg direction;\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= LEFT;\n direction <= 0;\n end else begin\n state <= next_state;\n if (state == LEFT || state == RIGHT)\n direction <= (state == RIGHT);\n end\n end\n\n always @(*) begin\n next_state = state;\n case (state)\n LEFT, RIGHT: begin\n if (!ground)\n next_state = FALL;\n else if (dig)\n next_state = DIG;\n else if ((state == LEFT && bump_left) || (state == RIGHT && bump_right))\n next_state = (state == LEFT) ? RIGHT : LEFT;\n end\n FALL: begin\n if (ground)\n next_state = direction ? RIGHT : LEFT;\n end\n DIG: begin\n if (!ground)\n next_state = FALL;\n end\n endcase\n end\n\n always @(*) begin\n walk_left = (state == LEFT);\n walk_right = (state == RIGHT);\n aaah = (state == FALL);\n digging = (state == DIG);\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\tinput dig,\n\toutput reg walk_left,\n\toutput reg walk_right,\n\toutput reg aaah,\n\toutput reg digging\n);\n\n parameter LEFT = 2'b00, RIGHT = 2'b01, FALL = 2'b10, DIG = 2'b11;\n reg [1:0] state, next_state;\n reg direction;\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= LEFT;\n direction <= 0;\n end else begin\n state <= next_state;\n if (state == LEFT || state == RIGHT)\n direction <= (state == RIGHT);\n end\n end\n\n always @(*) begin\n next_state = state;\n case (state)\n LEFT, RIGHT: begin\n if (!ground)\n next_state = FALL;\n else if (dig)\n next_state = DIG;\n else if ((state == LEFT && bump_left) || (state == RIGHT && bump_right))\n next_state = (state == LEFT) ? RIGHT : LEFT;\n end\n FALL: begin\n if (ground)\n next_state = direction ? RIGHT : LEFT;\n end\n DIG: begin\n if (!ground)\n next_state = FALL;\n end\n endcase\n end\n\n always @(*) begin\n walk_left = (state == LEFT);\n walk_right = (state == RIGHT);\n aaah = (state == FALL);\n digging = (state == DIG);\n end\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\tinput dig,\n\toutput reg walk_left,\n\toutput reg walk_right,\n\toutput reg aaah,\n\toutput reg digging\n);\n\n parameter LEFT = 2'b00, RIGHT = 2'b01, FALL = 2'b10, DIG = 2'b11;\n reg [1:0] state, next_state;\n reg direction;\n\n always @(posedge clk or posedge areset) begin\n if (areset) begin\n state <= LEFT;\n direction <= 0;\n end else begin\n state <= next_state;\n if (state == LEFT || state == RIGHT)\n direction <= (state == RIGHT);\n end\n end\n\n always @(*) begin\n case (state)\n LEFT, RIGHT: begin\n if (!ground)\n next_state = FALL;\n else if (dig)\n next_state = DIG;\n else if ((state == LEFT && bump_left) || (state == RIGHT && b
{"task_id": "count_clock", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\tinput ena,\n\toutput reg pm,\n\toutput reg [7:0] hh,\n\toutput reg [7:0] mm,\n\toutput reg [7:0] ss\n);\n\n reg [3:0] ss_ones, ss_tens;\n reg [3:0] mm_ones, mm_tens;\n reg [3:0] hh_ones, hh_tens;\n\n always @(posedge clk) begin\n if (reset) begin\n pm <= 0;\n hh <= 8'h12;\n mm <= 8'h00;\n ss <= 8'h00;\n ss_ones <= 4'd0;\n ss_tens <= 4'd0;\n mm_ones <= 4'd0;\n mm_tens <= 4'd0;\n hh_ones <= 4'd2;\n hh_tens <= 4'd1;\n end\n else if (ena) begin\n if (ss_ones == 4'd9) begin\n ss_ones <= 4'd0;\n if (ss_tens == 4'd5) begin\n ss_tens <= 4'd0;\n if (mm_ones == 4'd9) begin\n mm_ones <= 4'd0;\n if (mm_tens == 4'd5) begin\n mm_tens <= 4'd0;\n if (hh == 8'h11) begin\n hh <= 8'h12;\n pm <= ~pm;\n end\n else if (hh == 8'h12) begin\n hh <= 8'h01;\n end\n else if (hh[3:0] == 4'd9) begin\n hh <= {4'h1, 4'h0};\n end\n else begin\n hh <= hh + 8'h01;\n end\n end\n else begin\n mm_tens <= mm_tens + 4'd1;\n end\n end\n else begin\n mm_ones <= mm_ones + 4'd1;\n end\n end\n else begin\n ss_tens <= ss_tens + 4'd1;\n end\n end\n else begin\n ss_ones <= ss_ones + 4'd1;\n end\n end\n end\n\n always @(*) begin\n ss = {ss_tens, ss_ones};\n mm = {mm_tens, mm_ones};\n hh = {hh_tens, hh_ones};\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput ena,\n\toutput reg pm,\n\toutput reg [7:0] hh,\n\toutput reg [7:0] mm,\n\toutput reg [7:0] ss\n);\n\n always @(posedge clk) begin\n if (reset) begin\n pm <= 0;\n hh <= 8'h12;\n mm <= 8'h00;\n ss <= 8'h00;\n end else if (ena) begin\n if (ss == 8'h59) begin\n ss <= 8'h00;\n if (mm == 8'h59) begin\n mm <= 8'h00;\n if (hh == 8'h12) begin\n hh <= 8'h01;\n pm <= ~pm;\n end else if (hh == 8'h11) begin\n hh <= 8'h12;\n end else begin\n hh[3:0] <= hh[3:0] + 1'b1;\n if (hh[3:0] == 4'h9) begin\n hh[3:0] <= 4'h0;\n hh[7:4] <= hh[7:4] + 1'b1;\n end\n end\n end else begin\n mm[3:0] <= mm[3:0] + 1'b1;\n if (mm[3:0] == 4'h9) begin\n mm[3:0] <= 4'h0;\n mm[7:4] <= mm[7:4] + 1'b1;\n end\n end\n end else begin\n ss[3:0] <= ss[3:0] + 1'b1;\n if (ss[3:0] == 4'h9) begin\n ss[3:0] <= 4'h0;\n ss[7:4] <= ss[7:4] + 1'b1;\n end\n end\n end\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\tinput ena,\n\toutput reg pm,\n\toutput reg [7:0] hh,\n\toutput reg [7:0] mm,\n\toutput reg [7:0] ss);\n\n always @(posedge clk) begin\n if (reset) begin\n pm <= 0;\n hh <= 8'h12;\n
{"task_id": "lemmings2", "llmgen_RTL": ["module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\toutput reg walk_left,\n\toutput reg walk_right,\n\toutput reg aaah\n);\n\n\tlocalparam LEFT = 2'b00, RIGHT = 2'b01, FALL_LEFT = 2'b10, FALL_RIGHT = 2'b11;\n\treg [1:0] state, next_state;\n\n\talways @(posedge clk or posedge areset) begin\n\t\tif (areset)\n\t\t\tstate <= LEFT;\n\t\telse\n\t\t\tstate <= next_state;\n\tend\n\n\talways @(*) begin\n\t\tcase (state)\n\t\t\tLEFT: \n\t\t\t\tif (!ground)\n\t\t\t\t\tnext_state = FALL_LEFT;\n\t\t\t\telse if (bump_left)\n\t\t\t\t\tnext_state = RIGHT;\n\t\t\t\telse\n\t\t\t\t\tnext_state = LEFT;\n\t\t\tRIGHT:\n\t\t\t\tif (!ground)\n\t\t\t\t\tnext_state = FALL_RIGHT;\n\t\t\t\telse if (bump_right)\n\t\t\t\t\tnext_state = LEFT;\n\t\t\t\telse\n\t\t\t\t\tnext_state = RIGHT;\n\t\t\tFALL_LEFT:\n\t\t\t\tif (ground)\n\t\t\t\t\tnext_state = LEFT;\n\t\t\t\telse\n\t\t\t\t\tnext_state = FALL_LEFT;\n\t\t\tFALL_RIGHT:\n\t\t\t\tif (ground)\n\t\t\t\t\tnext_state = RIGHT;\n\t\t\t\telse\n\t\t\t\t\tnext_state = FALL_RIGHT;\n\t\t\tdefault: next_state = LEFT;\n\t\tendcase\n\tend\n\n\talways @(*) begin\n\t\twalk_left = (state == LEFT);\n\t\twalk_right = (state == RIGHT);\n\t\taaah = (state == FALL_LEFT) || (state == FALL_RIGHT);\n\tend\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\toutput walk_left,\n\toutput walk_right,\n\toutput aaah\n);\n\n parameter LEFT = 2'b00, RIGHT = 2'b01, FALL_LEFT = 2'b10, FALL_RIGHT = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: \n if (!ground)\n next_state = FALL_LEFT;\n else if (bump_left)\n next_state = RIGHT;\n else\n next_state = LEFT;\n RIGHT:\n if (!ground)\n next_state = FALL_RIGHT;\n else if (bump_right)\n next_state = LEFT;\n else\n next_state = RIGHT;\n FALL_LEFT:\n if (ground)\n next_state = LEFT;\n else\n next_state = FALL_LEFT;\n FALL_RIGHT:\n if (ground)\n next_state = RIGHT;\n else\n next_state = FALL_RIGHT;\n default: next_state = LEFT;\n endcase\n end\n\n assign walk_left = (state == LEFT);\n assign walk_right = (state == RIGHT);\n assign aaah = (state == FALL_LEFT) || (state == FALL_RIGHT);\n\nendmodule", "module top_module (\n\tinput clk,\n\tinput areset,\n\tinput bump_left,\n\tinput bump_right,\n\tinput ground,\n\toutput walk_left,\n\toutput walk_right,\n\toutput aaah\n);\n\n parameter LEFT = 2'b00, RIGHT = 2'b01, FALL_LEFT = 2'b10, FALL_RIGHT = 2'b11;\n reg [1:0] state, next_state;\n\n always @(posedge clk or posedge areset) begin\n if (areset)\n state <= LEFT;\n else\n state <= next_state;\n end\n\n always @(*) begin\n case (state)\n LEFT: \n if (!ground)\n next_state = FALL_LEFT;\n else if (bump_left)\n next_state = RIGHT;\n else\n next_state = LEFT;\n RIGHT:\n if (!ground)\n next_state = FALL_RIGHT;\n else if (bump_right)\n next_state = LEFT;\n else\n next_state = RIGHT;\n FALL_LEFT:\n if (ground)\n next_state = LEFT;\n else\n next_state = FALL_LEFT;\n FALL_RIGHT:\n if (ground)\n next_state = RIGHT;\n
{"task_id": "countbcd", "llmgen_RTL": ["module top_module(\n\tinput clk,\n\tinput reset,\n\toutput [3:1] ena,\n\toutput reg [15:0] q);\n \n always @(posedge clk) begin\n if (reset) begin\n q <= 16'b0;\n end else begin\n if (q[3:0] == 4'd9) begin\n q[3:0] <= 4'd0;\n if (q[7:4] == 4'd9) begin\n q[7:4] <= 4'd0;\n if (q[11:8] == 4'd9) begin\n q[11:8] <= 4'd0;\n if (q[15:12] == 4'd9) begin\n q[15:12] <= 4'd0;\n end else begin\n q[15:12] <= q[15:12] + 1;\n end\n end else begin\n q[11:8] <= q[11:8] + 1;\n end\n end else begin\n q[7:4] <= q[7:4] + 1;\n end\n end else begin\n q[3:0] <= q[3:0] + 1;\n end\n end\n end\n \n assign ena[1] = (q[3:0] == 4'd9);\n assign ena[2] = (q[7:4] == 4'd9) && (q[3:0] == 4'd9);\n assign ena[3] = (q[11:8] == 4'd9) && (q[7:4] == 4'd9) && (q[3:0] == 4'd9);\n \nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput [3:1] ena,\n\toutput reg [15:0] q\n);\n\n reg [3:0] digit0, digit1, digit2, digit3;\n\n always @(posedge clk) begin\n if (reset) begin\n digit0 <= 4'd0;\n digit1 <= 4'd0;\n digit2 <= 4'd0;\n digit3 <= 4'd0;\n end else begin\n if (digit0 == 4'd9) begin\n digit0 <= 4'd0;\n if (digit1 == 4'd9) begin\n digit1 <= 4'd0;\n if (digit2 == 4'd9) begin\n digit2 <= 4'd0;\n if (digit3 == 4'd9) begin\n digit3 <= 4'd0;\n end else begin\n digit3 <= digit3 + 1;\n end\n end else begin\n digit2 <= digit2 + 1;\n end\n end else begin\n digit1 <= digit1 + 1;\n end\n end else begin\n digit0 <= digit0 + 1;\n end\n end\n end\n\n assign ena[1] = (digit0 == 4'd9);\n assign ena[2] = (digit0 == 4'd9) && (digit1 == 4'd9);\n assign ena[3] = (digit0 == 4'd9) && (digit1 == 4'd9) && (digit2 == 4'd9);\n\n always @(*) begin\n q = {digit3, digit2, digit1, digit0};\n end\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput [3:1] ena,\n\toutput reg [15:0] q);\n\n wire [3:0] ena_internal;\n\n always @(posedge clk) begin\n if (reset) begin\n q <= 16'b0;\n end else begin\n if (ena_internal[0]) begin\n if (q[3:0] == 4'd9) q[3:0] <= 4'd0;\n else q[3:0] <= q[3:0] + 1'd1;\n end\n if (ena_internal[1]) begin\n if (q[7:4] == 4'd9) q[7:4] <= 4'd0;\n else q[7:4] <= q[7:4] + 1'd1;\n end\n if (ena_internal[2]) begin\n if (q[11:8] == 4'd9) q[11:8] <= 4'd0;\n else q[11:8] <= q[11:8] + 1'd1;\n end\n if (ena_internal[3]) begin\n if (q[15:12] == 4'd9) q[15:12] <= 4'd0;\n else q[15:12] <= q[15:12] + 1'd1;\n end\n end\n end\n\n assign ena_internal[0] = 1'b1;\n assign ena_internal[1] = (q[3:0] == 4'd9);\n assign ena_internal[2] = (q[7:4] == 4'd9) & ena_internal[1];\n assign ena_internal[3] = (q[11:8] == 4'd9) & ena_internal[2];\n\n assign ena = ena_internal[3:1];\n\nendmodule", "module top_module(\n\tinput clk,\n\tinput reset,\n\toutput [3:1] ena,\n\toutput reg [15:0] q);\n\n wire [3:0] digit_ena;\n\n always @(posedge clk or posedge reset) begin\n if (reset) begin\n q <= 16'h0000;\n end else begin\n if (digit_ena[0]) q[3:0] <= (q[3:0]