Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
2
2
[ { "content": "This Verilog module implements a 2-to-1 multiplexer (MUX) with combinational logic. The module is named \"mux21con\" and has the following ports:\n\nInputs:\n- a: First data input\n- b: Second data input\n- s: Select input\n\nOutput:\n- y: Output of the multiplexer\n\nThe module uses an always blo...
[ { "content": "This Verilog module, named \"or_nor\", implements a combined OR and NOR gate functionality. It has the following characteristics:\n\n1. Inputs:\n - in0: 1-bit input\n - in1: 1-bit input\n\n2. Outputs:\n - or_out: 1-bit output representing the OR operation\n - nor_out: 1-bit output represen...
[ { "content": "Please act as a professional Verilog designer. Your task is to create a Verilog module that implements a Gray code state machine.\nA Gray code state machine is a type of digital circuit that uses Gray code to encode the state transitions of a finite state machine. \nIn a Gray code state machine, t...
[ { "content": "Design a circuit that functions as a 3-to-1 multiplexer for selecting the next program counter (nextPC) value based on the input selection signal (PC_sel). The multiplexer takes three 32-bit inputs: ADD4, NPC, and jrPC. When PC_sel equals 3, it outputs jrPC; if PC_sel is 2 or if PC_sel is 1 and CM...
[ { "content": "\nWrite a Verilog module named `comparator`.\nThe module should have the following interface:\n- Inputs: `input [1:0] A`, `input [1:0] B`\n- Output: `output eq`\n\nThe functionality of the module should be to assert the output `eq` (set it to 1) if the two 2-bit inputs `A` and `B` are equal. O...
[ { "content": "This Verilog module implements a parameterized 2-to-1 multiplexer. The module is named \"twoonemux\" and has a parameter SIZE, which defaults to 16 if not specified during instantiation. This parameter determines the width of the input and output signals.\n\nInputs:\n- a: An input bus of width SIZ...
[ { "content": "Design an 8-bit comparator in Verilog that compares two 8-bit inputs A and B. The output should indicate whether A is less than, equal to, or greater than B. The outputs should be three separate signals: A_less, A_equal, and A_greater.", "role": "user" }, { "content": "```verilog\nmodu...
[ { "content": "Please act as a professional Verilog designer. Implement a pipelined module that performs 4-bit barrel shifting. \nThe module should take in a 4-bit input and a 2-bit control signal (ctrl) and output the shifted result. \nIf ctrl is 00, the input should be shifted left by 1 bit. If ctrl is 01, the...
[ { "content": "Design a 3-level decision tree that takes in three binary inputs (x0, x1, x2) and produces a single binary output (y). The decision tree should follow these rules:\n1. If x0 = 0, then y = x1.\n2. If x0 = 1 and x1 = 0, then y = 0.\n3. If x0 = 1 and x1 = 1, then y = x2.\nThe output y represents the ...
[ { "content": "\nWrite a Verilog module named `sky130_fd_sc_ls__a2111o`.\nThis module should have the following inputs: `A1`, `A2`, `B1`, `C1`, and `D1`.\nIt should have a single output: `X`.\nImplement the combinational logic such that the output `X` is the result of `(A1 AND B1) OR (C1 AND D1)`. Use a continuo...
[ { "content": "\nImplement the following two Verilog modules:\n\n1. A module named `FullAdder` that performs the operation of a single-bit full adder. It takes three single-bit inputs, `A`, `B`, and `Cin`, and produces two single-bit outputs, `S` (sum) and `Cout` (carry-out).\n Interface:\n ```verilog\n ...
[ { "content": "This Verilog module, named \"top\", implements a simple logic function with two inputs and one output.\n\nInputs:\n- a: Single-bit wire input\n- b: Single-bit wire input\n\nOutput:\n- out: Single-bit wire output\n\nFunctionality:\nThe module performs a logical operation that is equivalent to an XN...
[ { "content": "This Verilog module, named SRQC_FPGA, implements a simple multiplexer-based arithmetic circuit. Here's a detailed description of its functionality:\n\nInputs:\n- I1, I2, I3, I4: Four single-bit inputs\n- sel: A single-bit selection input\n\nOutput:\n- dout: A single-bit output\n\nFunctionality:\nT...
[ { "content": "Design a clock divider module that generates a clock signal (`clock_lcd`) with a frequency that is one-sixth of the input clock frequency (`Clk`). The module should have an enable signal (`pixel_en`) that, when low, resets the output clock to 0 and the internal counter to 0. When `pixel_en` is hig...
[ { "content": "This Verilog module, named \"addround,\" implements a conditional bitwise XOR operation as part of a cryptographic round function. The module has the following characteristics:\n\nInputs:\n1. n_rst: Active-low asynchronous reset signal\n2. around_enable: Enable signal for the round operation\n3. s...
[ { "content": "Create a 16-bit ALU that can perform addition and subtraction based on a control signal. The ALU should have two 16-bit inputs (A and B), a control signal (opcode) where 0 means addition and 1 means subtraction, and a 16-bit output (result).", "role": "user" }, { "content": "```verilog...
[ { "content": "This Verilog module implements a parameterized 2-to-1 multiplexer. The module is named \"TwoIn_Mux\" and has a parameter \"width\" which defaults to 32 if not specified during instantiation.\n\nInputs:\n- D0, D1: Two input data buses, each of width 'width' bits.\n- S: A single-bit select line.\n\n...
[ { "content": "This Verilog module, named BUFG, represents a global buffer or clock buffer commonly found in FPGA (Field-Programmable Gate Array) designs. The module has two ports:\n\n1. Input: I (1-bit)\n2. Output: O (1-bit)\n\nThe functionality of this module is straightforward: it directly assigns the input s...
[ { "content": "\n\nYou have been tasked with designing a verilog module for a 4-bit binary adder. The module should have two 4-bit inputs (A and B) and a 4-bit output (C). The module should also have a control input (CTRL) that determines whether the output should be the sum of the inputs (CTRL=0) or the carry-o...
[ { "content": "\nDesign a Verilog module named `mux_encoder`.\n\nThe module should have the following interface:\n```verilog\nmodule mux_encoder (\n input a,b,c,d,e,f,\n output reg x,y,z,\n output reg [1:0] pos\n);\n```\n\nThe module's functionality is as follows:\n1. Select a value based on inputs `a`...
[ { "content": "This Verilog module, named \"j0_generator\", is designed to generate an initial counter block (J0) for use in counter mode encryption, specifically for the AES-GCM (Galois/Counter Mode) algorithm.\n\nKey features and functionality:\n\n1. Parameterization:\n - NB_BLOCK: Defines the block size, de...
[ { "content": "Design a Verilog module that manages the pipeline stage between the memory access (MEM) and write-back (WB) stages in a processor. The module should handle the following signals: a clock signal, a reset signal, a 2-bit control signal, a 32-bit data output from the data memory, a 32-bit address inp...
[ { "content": "\n\nYou are tasked with designing a verilog module that takes two 8-bit inputs and outputs a 16-bit value. The module should have the following interface:\n\nInputs:\n- `vb334ae` : 8-bit input\n- `v2b8a97` : 8-bit input\n\nOutputs:\n- `v14a530` : 16-bit output\n\nThe module should implement the fo...
[ { "content": "This Verilog module, named sel3_6, implements a 3-to-1 multiplexer with 6-bit wide data paths and an enable signal. Here's a detailed description of its functionality:\n\nInputs:\n- E: Enable signal (1-bit)\n- A, B, C: Selection signals (1-bit each)\n- I0, I1, I2: Three 6-bit wide input data buses...
[ { "content": "As a Verilog designer, your task is to create a pipelined module that implements a bidirectional counter that counts from 0 through 7, inclusive, with a period of 8. The reset input is synchronous, and should reset the counter to 0. We want to be able to increment the counter in both directions, s...
[ { "content": "This Verilog module, named MEMORY, is a synchronous storage and control unit with the following functionality:\n\n1. Input/Output Signals:\n - CLK: Clock input\n - RESET: Asynchronous reset input\n - LOAD: Load enable signal\n - M, E, N: 32-bit input data buses\n - m, e, n: 32-bit output...
[ { "content": "Please act as a professional verilog designer.\n \nImplement a module functions as an 8-to-1 multiplexer (MUX). Its primary role to select one of the eight input signals based on the 3-bit selection input and forward the selected input to its output. This module is a fundamental building block ...
[ { "content": "This Verilog module, named \"Displayarea,\" is designed to determine the active display area for a video display system. It generates a single-bit output signal 'show' based on the current horizontal and vertical position counters.\n\nInputs:\n- horcount [9:0]: 10-bit input representing the horizo...
[ { "content": "\n\nYou are tasked with designing a verilog module that takes in 4 input signals A1, A2, B1, C1, and D1, and produces a single output signal Y. The module should be named \"signal_combiner\". \n\nThe output signal Y should be the result of the following computation:\n- If A1 and A2 are both 1, Y s...
[ { "content": "This Verilog module, named NN_InputWeight_POLAR, implements a basic neural network input weighting operation with polarity control. The module has three inputs and two outputs:\n\nInputs:\n- a: A single-bit input, likely representing a binary input to the neural network.\n- alpha: A single-bit inp...
[ { "content": "Design a 1-bit DRAM cell in Verilog that consists of an SRAM latch and a word-line control. The cell should have inputs for data (D), a write enable (WE), and a word line (WL). If WE is high and WL is high, the data should be written to the cell. If WE is low and WL is high, the data should be rea...
[ { "content": "Design a 4-to-1 multiplexer that selects one of four 1-bit inputs based on a 2-bit select signal. The output should be assigned to the selected input value. The multiplexer should use conditional statements (`if-else`) to determine the output. This Verilog module, named `Mux_41_conditional`, has t...
[ { "content": "This Verilog module, named \"cKEY3\", is a simple pass-through or buffer circuit. It has one input signal, KEY3, and one output signal, OUT. The functionality of this module is straightforward:\n\n1. Input: \n - KEY3: A single-bit input wire\n\n2. Output:\n - OUT: A single-bit output wire\n\n3...
[ { "content": "A 4-tap FIR filter that takes 4 input samples and produces 1 output sample by computing the weighted sum of the inputs.", "role": "user" }, { "content": "```verilog\nmodule fir_filter( \n input [7:0] x0, \n input [7:0] x1, \n input [7:0] x2, \n input [7:0] x3, \n ou...
[ { "content": "Design a simple arithmetic logic unit (ALU) that computes the next program counter (PC) value by adding 4 to the input PC value. This design takes a 32-bit input (pcIn) and outputs the result (pcOut), which is typically used to fetch the next instruction in a sequential program flow.\nmodule top_m...
[ { "content": "This Verilog module, named MUX2LED, implements a 2-to-1 multiplexer for four sets of 8-bit signals. The module's primary function is to select between two groups of four 8-bit inputs based on a single-bit selection signal.\n\nInputs:\n- sel: A 1-bit selection signal\n- in0 to in7: Eight 8-bit inpu...
[ { "content": "This Verilog module describes a register file, a common component in processor designs. The module implements a set of 31 32-bit registers (register 0 is hardwired to zero) with read and write functionality.\n\nKey features:\n1. Dual read ports (A and B) and one write port\n2. Synchronous write op...
[ { "content": "This Verilog module, named \"BCD_to_sevenSeg\", is a Binary-Coded Decimal (BCD) to Seven-Segment Display decoder. It takes a 4-bit BCD input and converts it to a 7-bit output for driving a seven-segment display.\n\nInputs:\n- BCD_in: A 4-bit input representing a single BCD digit (0-9)\n\nOutputs:\...
[ { "content": "Design a 4-to-1 multiplexer that selects one of four input signals (X0, X1, X2, X3) based on the values of two select lines (S0, S1). The output (Y) will reflect the chosen input: if S1S0 = 00, Y = X0; if S1S0 = 01, Y = X1; if S1S0 = 10, Y = X2; and if S1S0 = 11, Y = X3.\nmodule top_module(\n inp...
[ { "content": "\nDesign an edge-triggered D flip-flop with an active-high clock and asynchronous reset. The flip-flop should have the following characteristics:\n1. On the rising edge of the clock, if the reset is not asserted, the output (Q) should take the value of D.\n2. If the reset is asserted, the output (...
[ { "content": "This Verilog module, named \"myMux,\" implements a 32-bit 2-to-1 multiplexer. The module has the following ports:\n\nInputs:\n- in0_mux: 32-bit input (first data input)\n- in1_mux: 32-bit input (second data input)\n- sel_mux: 1-bit selection input\n\nOutput:\n- out_mux: 32-bit output\n\nFunctional...
[ { "content": "This Verilog module, named \"isSame\", is a combinational logic circuit that compares three single-bit inputs (a, b, and c) and produces a single-bit output (y).\n\nInputs:\n- a, b, c: Single-bit logic inputs\n\nOutput:\n- y: Single-bit logic output\n\nFunctionality:\nThe module determines if all ...
[ { "content": "This Verilog module, named \"generate_set_of_MUX\", implements a 4-bit wide 2-to-1 multiplexer (MUX).\n\nInputs:\n- a[3:0]: 4-bit input bus\n- b[3:0]: 4-bit input bus\n- sel: 1-bit selection signal\n\nOutput:\n- f[3:0]: 4-bit output bus\n\nFunctionality:\nThe module selects between two 4-bit input...
[ { "content": "This Verilog module represents a Hazard Detection Unit, which is a critical component in pipelined processor architectures. Its primary function is to identify and handle data hazards, specifically load-use hazards, in the pipeline.\n\nInputs:\n1. IDEX_RT [4:0]: The RT register address from the ID...
[ { "content": "This Verilog module describes an Arithmetic Logic Unit (ALU) with a parametrized data width and fixed operation width.\n\nKey features:\n1. Parameterized design: DATA_WIDTH is configurable, defaulting to 8 bits.\n2. Operation width: Defined as OP_WIDTH, set to 6 bits.\n3. Signed inputs: dato_A and...
[ { "content": "\nDesign a 16-bit ADC comparator module that compares a 16-bit input signal to a reference voltage represented as a 16-bit number. The module should output a single-bit signal indicating whether the input signal is greater than the reference. Additionally, create a 16-bit output that reflects the ...
[ { "content": "\nWrite Verilog code for two modules: a top-level module and a sub-module.\n\nThe sub-module, named `vb70dd9_vf4938a`, takes two single-bit inputs, `a` and `b`, and produces a single-bit output, `c`. The output `c` should be the result of a bitwise AND operation between the inputs `a` and `b`.\n\n...
[ { "content": "Design a 4-bit barrel shifter that can perform left logical shifts based on a 2-bit control input (A). When A=00, the output (S) is the same as the input (D). When A=01, the input is shifted left by one bit with a zero filling in from the right. For A=10, the shift is by two bits, and for A=11, th...
[ { "content": "This Verilog module, named \"ShiftLeft2\", implements a 2-bit left shift operation on a 32-bit input.\n\nInputs:\n- signExtended: A 32-bit input signal representing the value to be shifted.\n\nOutputs:\n- ShiftResult: A 32-bit output signal representing the result of the shift operation.\n\nFuncti...
[ { "content": "\nYou are tasked with designing an Arithmetic Logic Unit (ALU) module in Verilog that can perform basic arithmetic and logic operations on two 32-bit inputs. The module should have three 32-bit inputs A, B, and F. The input F is a 3-bit signal that specifies the operation to be performed on A and ...
[ { "content": "\nDesign a Verilog module named `membus_3_connect` that acts as a bus connector between a single master interface and three identical slave interfaces (s0, s1, s2). The module should pass signals between the master and slaves according to the following interface and behavior:\n\n**Interface:**\n\n...
[ { "content": "\n\nYou are tasked with designing a digital signal processing (DSP) module in Verilog that takes in a clock signal, a reset signal, a run signal, and an 8-bit decimation factor. The module should output a strobe signal and a 32-bit sample value.\n\nThe sample value should be a concatenation of two...
[ { "content": "This Verilog module, named \"signext\", implements a 16-bit to 32-bit sign extension or zero extension unit. The module has the following ports:\n\n1. Input 'a': A 16-bit input signal to be extended.\n2. Input 'sgnzero': A 1-bit control signal to select between sign extension and zero extension.\n...
[ { "content": "Implement a Verilog module with the following description: A simple logic gate.\nmodule top_module(\n\tinput A, B,\n\toutput Y\n);", "role": "user" }, { "content": "```verilog\nmodule top_module(\n\tinput A, B,\n\toutput Y\n);assign Y = A & B;\nendmodule\n```", "role": "assistant" ...
[ { "content": "Design a Verilog module that generates an encrypted output code using a 4-bit linear feedback shift register (LFSR). The module should take an active-low reset signal, a clock signal, and an input data signal as inputs, and produce an encrypted output code as the result. The LFSR should be initial...
[ { "content": "Design a JK flip-flop module that behaves according to the standard JK flip-flop truth table. The flip-flop should have two inputs (J and K), a clock signal (clk), and an active-high reset signal (rst). The output q should represent the state of the flip-flop. The flip-flop should be triggered on ...
[ { "content": "Please act as a professional Verilog designer. Your task is to create a Verilog module that implements a linear feedback shift register (LFSR) to generate pseudo-random numbers. \nA linear feedback shift register is a type of shift register that takes a linear combination of its previous state as ...
[ { "content": "This Verilog module describes a parameterized synchronous register with active-low reset and chip select functionality. The key features and signals are as follows:\n\n1. Parameterization: The register width is configurable through the WIDTH parameter, defaulting to 8 bits.\n\n2. Inputs:\n - Rst...
[ { "content": "Implement the Verilog module based on the following description.\nCreate a 16-bit up/down counter with a synchronous reset and mode input. The reset input is active high and should reset the counter to zero. The mode input determines the counting direction: high for up, low for down.\nmodule count...
[ { "content": "This Verilog module, named \"sctag_retbuf\", appears to be a simple buffer or pass-through module for data and error correction code (ECC) signals.\n\nKey components:\n1. Inputs:\n - retdp_data_c7_buf: A 128-bit wide data input\n - retdp_ecc_c7_buf: A 28-bit wide ECC input\n\n2. Outputs:\n -...
[ { "content": "This Verilog module implements a Moore Finite State Machine (FSM) with five states. The FSM is designed to detect a specific sequence in the input and produce an output based on the current state.\n\nKey components:\n1. Inputs: clk (clock), n_rst (active-low reset), i (1-bit input)\n2. Output: o (...
[ { "content": "Please act as a professional Verilog designer. Your task is to create a Verilog module that implements a LED driver circuit. \nThe circuit should have an input representing a 4-bit binary number and an output consisting of 7 LEDs that display the binary number in a 7-segment display.\nEach of the ...
[ { "content": "This Verilog module implements a 4-to-1 multiplexer. The module, named \"mux4\", has the following ports:\n\nInputs:\n- data0, data1, data2, data3: Four single-bit data inputs\n- select0, select1: Two select lines used to choose the output\n\nOutput:\n- y: Single-bit output\n\nThe functionality of...
[ { "content": "Design a divide-by-8 circuit using a synchronous counter in Verilog. The circuit should take a single-bit binary input and produce a one-bit output that goes high every 8 clock cycles based on the input signal.", "role": "user" }, { "content": "```verilog\nmodule divide_by_8 ( \n i...
[ { "content": "This Verilog module, named \"Desplazamiento_jumpAddress\", is designed to perform a left shift operation on a jump address. Here's a detailed description of its functionality:\n\n1. Input:\n - jumpAddress: A 26-bit input signal representing an unshifted jump address.\n\n2. Output:\n - output_j...
[ { "content": "Design a Verilog module that implements a Boolean function `f` based on a 4-bit input vector `x`. The function should be computed using both Sum of Products (SOP) and Product of Sums (POS) forms, and the final output should be the logical OR of these two forms. The SOP form should include the foll...
[ { "content": "\n\nYou are tasked with designing a Verilog module that implements a 4-input NAND gate with power management functionality. The module should have the following inputs and outputs:\n\nInputs:\n- A, B, C, D: 4-bit binary inputs\n- VPWR, VGND: power supply inputs\n- VPB, VNB: power management inputs...
[ { "content": "Design a Verilog module that takes two 5-bit binary inputs, A and B, and produces a 5-bit binary output, Y, which is the bitwise AND of A and B.", "role": "user" }, { "content": "```verilog\nmodule bitwise_and (\n input [4:0] A,\n input [4:0] B,\n output [4:0] Y\n);\n assig...
[ { "content": "This Verilog module implements a Multiply-Accumulate (MAC) operation, which is a common function in digital signal processing and arithmetic units.\n\nThe module, named MAC, has the following inputs and outputs:\n\nInputs:\n- x: 8-bit input operand\n- y: 8-bit input operand\n- acc: 16-bit accumula...
[ { "content": "Design a combinational logic circuit that produces two output signals, d1 and d0, based on the logic states of inputs q1, q0, and x. The output d1 is set to HIGH when either q1 is HIGH and q0 is LOW with x LOW, or q1 is LOW and q0 is HIGH with x LOW. The output d0 is set to HIGH when x is HIGH or ...
[ { "content": "Please act as a professional Verilog designer.\n\nDesign a Verilog module to implement a 8-bit shift register with parallel load capability and a shift control. The shift register should shift left if the shift control is 1, and shift right if the shift control is 0. If the load signal is high, th...
[ { "content": "Design a synchronous counter with an adjustable data width, which increments its output on each rising edge of the clock (`clk`) when enabled (`en`). The counter resets to zero when the reset signal (`rst`) is low. It also includes a terminal count signal (`tc`) that asserts high when the counter ...
[ { "content": "This Verilog module implements a parameterized 3-to-1 multiplexer. The module's functionality can be described as follows:\n\n1. Parameterization: The module uses a parameter 'n' with a default value of 32, allowing for flexible bit-width configuration.\n\n2. Ports:\n - Inputs: Three n-bit data ...
[ { "content": "This Verilog module, named \"EQ\", implements a 32-bit equality comparator. Here's a detailed description of its functionality and signals:\n\nInputs:\n1. data1_i: A 32-bit input vector\n2. data2_i: A 32-bit input vector\n\nOutput:\n1. eq_o: A single-bit output signal\n\nFunctionality:\nThe module...
[ { "content": "This Verilog module, named BackGroundMapper, functions as a color lookup table for background colors. It takes a 5-bit input signal 'curBGIndex' and produces a 24-bit output signal 'RGB_bg' representing an RGB color value.\n\nThe module uses a combinational logic block (always_comb) to implement a...
[ { "content": "This Verilog module, named \"Stage3\", represents the third stage of a pipelined processor design. It's a synchronous module that operates on the positive edge of the clock signal.\n\nInputs:\n1. clk: Clock signal\n2. reset: Asynchronous reset signal\n3. R1_S3: 32-bit data input, likely representi...
[ { "content": "Please act as a professional verilog designer.\n\nImplement a module of a 7-bit linear counter with enable and asynchronous reset functionality.\n\nModule name: \n linear_counter_7bit \nInput ports:\n clk: Clock input.\n reset: Asynchronous reset input.\n enable: Enable ...
[ { "content": "This Verilog module, named \"soma\" (which means \"sum\" in some languages), implements a 27-bit synchronous counter. Here's a detailed description of its functionality:\n\nInputs:\n1. clk: Clock signal that drives the sequential logic.\n2. Q: A 27-bit input representing the current counter value....
[ { "content": "This Verilog module, named MUX_ALU_ALUOUT, implements a 64-bit 4-to-1 multiplexer with some additional logic. It selects between four 64-bit inputs based on a 2-bit selector signal and produces a 64-bit output.\n\nInputs:\n- SELETOR: 2-bit selector signal\n- ALU_OUT: 64-bit input\n- ALU: 64-bit in...
[ { "content": "This Verilog module implements a 2-to-1 multiplexer (MUX). The module has three input ports: 'a', 'b', and 's', and one output port 'f'.\n\nInputs:\n- 'a' and 'b' are the data inputs\n- 's' is the select line\n\nOutput:\n- 'f' is the output of the multiplexer\n\nFunctionality:\nThe module uses a t...
[ { "content": "This Verilog module implements a large multiplexer (MUX) with the following characteristics:\n\n1. Input Signals:\n - 'in': A 256-bit wide input bus, representing 256 individual data lines.\n - 'sel': An 8-bit selection input, used to choose one of the 256 input bits.\n\n2. Output Signal:\n ...
[ { "content": "This Verilog module describes a full adder circuit, a fundamental building block in digital arithmetic operations. The module is named FULL_ADDER and has the following ports:\n\nInputs:\n- A: First single-bit input\n- B: Second single-bit input\n- Cin: Carry input from a previous stage\n\nOutputs:...
[ { "content": "This Verilog module, named \"Behavior,\" implements a combinational logic circuit with three inputs (A, B, C) and two outputs (D, b_o). The module uses an always block triggered by changes in any of the input signals.\n\nThe functionality can be described as follows:\n\n1. Inputs:\n - A, B, C: S...
[ { "content": "This Verilog module, named \"xmit_a\", appears to be a simple pass-through or routing module. It has two input ports and two output ports:\n\nInputs:\n1. xmit_a_in1: An 8-bit wide input bus\n2. xmit_a_in2: A single-bit input\n\nOutputs:\n1. xmit_a_out1: An 8-bit wide output bus\n2. xmit_a_out2: A ...
[ { "content": "This Verilog module implements a 4-to-1 multiplexer (MUX) with parameterized data width. The module is named \"Mux_41\" and has the following characteristics:\n\n1. Parameterization: The module uses a parameter WIDTH, defaulting to 8, which determines the bit-width of the input and output data bus...
[ { "content": "This Verilog module, named \"exactly1\", implements a specific logical operation on two 4-bit inputs and produces an 8-bit output.\n\nInputs:\n- A: 4-bit input\n- B: 4-bit input\n\nOutput:\n- C: 8-bit output register\n\nFunctionality:\nThe module checks for two conditions simultaneously:\n1. The X...
[ { "content": "This Verilog module, named Exercicio1, implements a simple combinational logic circuit. It has four single-bit inputs (a, b, c, d) and one single-bit output (f). The module also defines two internal wires, t1 and t2, which are used as intermediate signals.\n\nThe functionality of the module can be...
[ { "content": "Design a circuit that implements a single-bit NOT gate. It takes a one-bit input and produces an output that is the logical inverse of the input.\nmodule top_module(in1,out);", "role": "user" }, { "content": "```verilog\nmodule top_module(in1,out);input in1;\noutput out;\nassign out = ...
[ { "content": "This Verilog module, named \"toLEDR\", is designed to control three LED outputs (LEDR0, LEDR1, LEDR2) based on various input signals. The module implements a combinational logic circuit with the following functionality:\n\nInputs:\n- in[1:0]: 2-bit input signal\n- inset[1:0]: 2-bit alternative inp...
[ { "content": "\n\nYou are tasked with designing a verilog module for a 4-bit shift register that has a parallel load capability. The module should have the following inputs and outputs:\n\nInputs:\n- `clk`: clock input\n- `load`: load input\n- `data_in`: 4-bit input data\n\nOutputs:\n- `data_out`: 4-bit output ...
[ { "content": "This Verilog module implements a parameterized N-bit wide XOR gate. Here's a detailed description of its functionality and signals:\n\nModule Name: xor_gate\n\nParameters:\n- N: An integer parameter with a default value of 4, which determines the bit width of the inputs and output.\n\nInputs:\n- a...
[ { "content": "This Verilog module describes a configurable 32-bit shifter with the following characteristics:\n\nInputs:\n- a: A 32-bit signed input value to be shifted\n- shamt: A 5-bit unsigned value specifying the shift amount (0 to 31)\n- shtype: A 2-bit control signal to select the shift operation\n\nOutpu...
[ { "content": "This Verilog module, named SignExt_4to16, implements a 4-bit to 16-bit sign extension operation. Here's a detailed description of its functionality:\n\n1. Module Interface:\n - Input: Din4 (4 bits)\n - Output: Dout16 (16 bits)\n\n2. Functionality:\n The module performs sign extension, which ...
[ { "content": "This Verilog module, named \"DEC\" (likely short for \"decrement\"), implements a parameterized decrementer circuit. The module has a single parameter DATAWIDTH, which defaults to 4 bits if not specified otherwise.\n\nInputs:\n- a: An input bus of width DATAWIDTH\n\nOutputs:\n- d: An output bus of...
[ { "content": "Design a finite state machine (FSM) to control a write operation (`wr`) in a system. The FSM should have two states: idle (state 0) and writing (state 1). The FSM should transition from the idle state to the writing state when the `start` signal is high. It should transition back to the idle state...
[ { "content": "This Verilog module, named \"bcb_to_7seg\", is a Binary-Coded Binary (BCB) to 7-segment display decoder. It is designed to convert a single-bit BCB input into an 8-bit output suitable for driving a common-anode 7-segment display.\n\nInputs:\n- BCB: A single-bit input representing the binary value ...
[ { "content": "This Verilog module, named DisplayState, is designed to control a 6-digit 7-segment display based on an input state. It appears to be simulating the movement of a boat across a river with two walls.\n\nInputs:\n- state: A 4-bit input representing the current state of the system.\n\nOutputs:\n- HEX...
[ { "content": "This Verilog module, named Altera_UP_Clock_Edge, is designed to detect rising and falling edges of an input clock signal. Here's a detailed description of its functionality and signals:\n\nInputs:\n1. clk: The main system clock.\n2. reset: A reset signal (unused in this implementation).\n3. test_c...
[ { "content": "This Verilog module, named ALUOp_Gen, is designed to generate ALU operation codes based on a given opcode input. It serves as a control unit for an Arithmetic Logic Unit (ALU) in a processor or digital system.\n\nInputs:\n- opcode_i: A 3-bit input representing the operation code.\n\nOutputs:\n- AL...
[ { "content": "This Verilog module implements a parameterized 2-to-1 multiplexer (mux). The module is named \"mux_2x1\" and has a parameter \"BIT_SIZE\" which defaults to 32 bits.\n\nInputs:\n1. dataA: BIT_SIZE-bit wide input\n2. dataB: BIT_SIZE-bit wide input\n3. dataSel: 1-bit selection input\n\nOutput:\n1. da...
End of preview. Expand in Data Studio

RTL Verilog SFT dataset — v062 interim (100,000 code rows, 56,119 reasoning rows, partially reviewed)

Supervised fine-tuning data for Verilog RTL generation. Each row is OpenAI-style messages: a user specification, then an assistant answer holding one fenced Verilog block.

This is an interim release. 21,344 of the 100,000 training rows are unreviewed recovered rows. They passed compile, synthesis and lint, plus benchmark decontamination, but no behavioral test and no semantic review.

What is new in v062. Code view unchanged from v060/v061. The reasoning view grows from 55,033 (v061) to 56,119 rows: 1,086 more R3_build_fail CodeV-R1 rows from the finished relaxed-limit re-gate (2,423 large designs whose first re-gate attempt ran out of tmpfs). 772 pass compile + synthesis + lint at 600 s / 8 GB / 64 MB (compile_lint_synth_relaxed_limits); 314 also pass the build but conflict with the upstream reference or ChipBench check (compile_lint_synth_relaxed_limits_reference_conflict, analogous to R1_soft). 4 benchmark near-duplicates were removed (same rule). The rest of those 2,423 fail real check -assert problems (multiple drivers, logic loops) or lint.

v061 (previous revision). The code view is unchanged from v060 (same files, same 100,000 rows). The reasoning view grows from 38,421 to 55,033 rows (CodeV-R1 48,478 of the 87,321 upstream rows, VeriReason 6,555; about 326M tokens). The 16,612 added rows are reasoning-only (they are not in the code view) and all unreviewed:

Added group Rows Gate evidence (same v054 container gate, code and trace unchanged)
R1_soft 12,873 compile + Yosys synthesis pass; held back before only by strict-lint warnings or by a behavior conflict with the upstream reference (CodeV references are often buggy)
R1_compile_only 2,296 compile + synthesis + strict lint pass; left out of the code view only by the 100k target
R3_build_fail, top module named in the prompt 415 gate rejected ambiguous_top_module; with the prompt's module name as top hint: compile + synthesis + lint pass
R3_build_fail, several independent modules requested 501 every root module, checked as top in turn, passes compile + synthesis + lint
R3_build_fail, harness resource limits 527 failed only on the gate's 60 s / 2 GB / 1 MB-log synthesis limits (large memories); passes with 600 s / 8 GB / 64 MB

Each added row carries provenance.view: reasoning_only, recovery_bucket, evidence_level, gate_flags (why the gate held it back), blocking_lint and rdiff_v2 (random-differential verdict vs the upstream reference: fail 10,052, unsupported 2,953, not_run 3,269, pass_constant 322, pass/pass_bitmask 16), so trainers can filter. Like the CodeV-R1 paper, which trained on all its rows, this view now keeps rows whose answer disagrees with the upstream reference; filter on rdiff_v2 != "fail" or use reasoning_reviewed_only for a stricter set. Removed before release: 895 group duplicates, 208 rows over 16,384 tokens, 233 benchmark near-duplicates (same rule as v056–v060) and 39 rows overlapping the reasoning validation split.

v060 changes (still included).

  • Reasoning view extended from 10,028 to 38,421 rows: native upstream <think> traces (CodeV-R1 R1 traces, VeriReason) for every code-view row whose prompt and code are byte-identical to the upstream record. No trace was generated or edited; rows whose prompt or code were changed by review or repair have no trace and stay code-only. VeriThoughts traces are still excluded (their target is the ground-truth RTL, not the teacher's answer). Rows over 16,384 tokens (Qwen3.8 tokenizer) and 36 rows whose response overlaps the reasoning validation/test responses were removed.
  • 101 rule-repaired rows (behavior_verified_autofix): CodeV-R1 answers that failed to build because of mechanical issues (declarations inside procedural blocks, RTL # delays, unescaped module names, SystemVerilog keywords as identifiers, malformed negative literals, part-selects of expressions, duplicate port declarations) were repaired by a script, re-gated in the same container, and admitted only with behavioral evidence (verified tier or random-differential pass). They replace unreviewed rows.

v059 (e39e27c) fixed v058's differential harness (reset polarity read from signal names); see the v2 harness below.

A later revision will replace or remove the unreviewed rows after review. If you need the safer subset, use the reviewed_only config (78,656 rows: every row with tool or review evidence, i.e. all rows whose review_status is not unreviewed).

Earlier revisions stay available: 878c4ca (v060), e39e27c (v059), 146f213 (v058, superseded: its differential evidence had a reset-polarity bug), e43d4d8 (v057), d539d5b (v056) and 5c2b824b (59,982 strict-pipeline rows). Pin a revision for reproducible training.

Contents and exact counts

Config / split Rows File
default train 100,000 train.jsonl
reviewed_only train (strict pipeline + reviewed or behavior-verified recoveries) 78,656 train_reviewed_only.jsonl
validation / test (frozen, unchanged since v054) 1,323 / 1,223 validation.jsonl, test.jsonl
reasoning train / validation / test (native upstream CoT; validation/test unchanged since v055) 56,119 / 205 / 210 raw/reasoning.*.jsonl
reasoning_reviewed_only train (reasoning rows whose review_status is not unreviewed) 17,233 raw/reasoning_reviewed_only.train.jsonl

Every row in raw/code.train.jsonl (100,004 rows) carries provenance.review_status and provenance.evidence_level. The toolkit's prepare step dropped 4 rows whose exact prompt also appears in validation/test (split_leakage_prompt), which leaves 100,000.

Training rows by evidence

review_status Rows What it means
(absent): strict pipeline (v055) 59,983 Same rows as revision 5c2b824b, minus 3 benchmark-derived rows newly found (see below). Admitted by the foundry EDA pipeline with behavioral evidence (testbench with mutation checks, formal equivalence, or differential / ChipBench reference simulation), and reviewed repairs.
reviewed 2,958 Recovered row. An LLM reviewer judged it correct or repaired it, and an independent LLM verifier confirmed it. Changed code passed the same containerized gates again.
reviewed_single 3,328 Recovered row with one LLM review (verification pass still running). Changed code passed the containerized gates again.
reviewed_prompt_enriched / reviewed_single_prompt_enriched 858 / 5,103 As above, but the reviewer added details to the prompt that the original omitted (register map, constants, timing), taken from the upstream reference design. The code implements the enriched prompt.
behavior_verified 6,329 Recovered row whose original answer matched the upstream reference design cycle-by-cycle under random stimulus (3 seeds × 400 cycles, differential harness v2; the reference outputs must actually change during the run; see below). No LLM review.
behavior_verified_autofix 101 Recovered row whose answer failed to build for a mechanical reason, was repaired by rule (see above), re-gated, and then matched the reference (verified tier or random differential). Code view only.
unreviewed 21,344 Recovered CodeV-R1 row: the original answer passed compile, Yosys synthesis and strict Verilator lint (or failed lint only on cosmetic warnings). No behavioral or semantic check.

evidence_level on recovered rows:

evidence_level Rows
random_diff_pass_vs_reference 6,087
random_diff_pass_bitmask_vs_reference (as above, but only bits where the reference output is 0/1 were compared) 206
autofix_regated_verified 40
autofix_random_diff_pass 61
compile_lint_synth_only 21,344
llm_reviewed_compile_only 4,063
repaired_regated_build 5,848
behavior_pass_benign_lint (formally equivalent to, or differentially matching, the reference; rejected before only for cosmetic lint) 36
repaired_regated_verified (after repair, passed differential/equivalence against the reference) 1,485
llm_reviewed_quarantine 851

Review results so far. For VeriCoder compile-only rows (4,800 reviewed), 78% were kept after independent verification. In the meantime, rows the verifier found defective or under-specified were removed, and so were rows whose repair disagreed with the reference.

Measured quality of unreviewed rows (read before use). A stratified pilot of 64 CodeV-R1 rows of this kind found:

  • 25 correct as-is;
  • 22 with fixable defects, for example a counter that does not wrap, a register without reset or initial value, or an off-by-one threshold;
  • 17 with prompts missing information that the answer relies on.

Expect a substantial defect rate among the unreviewed rows until the review completes.

Per-source composition (code train, raw)

Source Rows of which recovered Upstream (pinned) License
codev_r1 37,985 34,502 zhuyaoyu/CodeV-R1-dataset @ ffc4698 CC-BY-SA-4.0
vericoder 35,711 3,727 LLM4Code/expanded_origen_126k @ 5da6d0a No license declared
verimm 12,448 0 WAVE-AT-IDEA/VeriMM-Dataset @ e784c59 CC-BY-4.0
verireason_luna 6,556 0 DanielJeongsooLee/VeriReason-Luna-Medium-16K @ f3f79a4 No license assigned
verithoughts 7,304 1,792 wilyub/VeriThoughtsTrainSet @ 75e905d MIT (+ BSD-3-Clause for MetRex-derived RTL)

Random differential v2 (behavior_verified)

Each candidate is simulated side by side with its upstream reference RTL in one testbench (iverilog, inside a network-isolated container): identical random inputs, reset asserted at start and mid-run, outputs compared every cycle; samples where the reference output is X/Z are skipped. Reference-only combinational sensitivity lists are normalized to @* so that reference simulation matches its synthesized circuit.

v2 changes: reset polarity is read from the reference code (negedge rst, !rst, rst == 0), with the name only as fallback; the clock is the input used as an edge in the design; extra clocks/resets are supported; module renaming ignores comments and port names; a run where the reference outputs never change is classed pass_constant and gives no evidence. Controls on CodeV rows:

Control Result
formally equivalent to the reference (should pass) 569 pass, 15 fail, 9 constant-output (not counted)
known formal counterexample (should fail) 584 fail, 7 pass (1.2% missed), 5 constant-output
injected single-operator mutants (should fail) 342 fail, 29 pass (some mutants are equivalent), 3 constant-output

A failure is not treated as a defect: manual inspection showed that many CodeV references are themselves buggy while the candidate follows the prompt. Among CodeV compile-only rows only 12% of comparable rows pass; VeriThoughts passes ~87%. Of passing rows that were also LLM-reviewed (1,070), reviewers judged 63% correct as-is, 27% needing a more explicit prompt, 8% needing a code fix and 1% unusable. So behavior_verified is strong evidence of code/reference agreement, not of prompt completeness.

Training recipes used with this dataset

The companion toolkit (yil384/rtl-qwen-sft) ships two B200 recipes. All values are fixed in the config files, not tuned at run time.

Code view (default) Reasoning view (aligned with CodeV-R1) CodeV-R1 paper, for reference
Config b200-multinode-qwen38-27b.example.yaml b200-multinode-qwen38-27b-reasoning.example.yaml sft/codev_r1_distill.yaml
Base model Qwen3.8-27B Qwen3.8-27B Qwen2.5-Coder-7B-Instruct
Data default train, 100,000 rows reasoning train, 56,119 rows (~333M tokens) 87,321 R1-distilled rows
Method full SFT, BF16, DeepSpeed ZeRO-3 same same (ZeRO-3 offload)
Context / packing 4,096 / no 16,384 / yes 16,384 / yes
Global batch 128 64 (packed sequences) 64
LR / schedule / warmup 1e-5 / cosine / 3% 1e-5 / cosine / 3% 1e-5 / cosine / 3%
Epochs 2 3 6
Optimizer steps 1,564 (any GPU count) about 930–1,000 (estimate; packing) not stated
Checkpoint + eval_loss every 100 steps 50 steps 500 steps

Validation and test metrics are the four-benchmark suite (VerilogEval v2, and the chipagents-verified RTLLM v2.1, ChipBench Verilog Gen and CVDP cid003), run on each saved checkpoint by a separate evaluation job (./run.sh eval-suite --pending --watch 600) and logged to the training run in W&B. The frozen validation split is used only for eval_loss.

Licensing — read before reuse

There is no single license. Each row keeps its upstream terms (provenance.source, provenance.license). See LICENSE_NOTICE.md.

  • codev_r1 — CC-BY-SA-4.0 (ShareAlike). Rows are filtered, reformatted and, where marked, repaired or prompt-enriched adaptations. Redistribution requires CC-BY-SA-4.0 and attribution to CodeV-R1.
  • verimm — CC-BY-4.0, verithoughts — MIT / BSD-3-Clause.
  • vericoder (no license declared; derived from GPL-3.0 OriGen data) and verireason_luna (explicitly no license): rights are unresolved.
  • Model-generated content may also fall under the generating providers' terms. The toolkit's MIT license does not relicense any of this data.

How the recovered rows were built

  1. Pool. All rows the foundry baseline run did not verify (174,767 compile-only and 220,647 quarantined) were bucketed by failure cause. Excluded:
    • rows duplicating published code or another pool row;
    • rows whose source-family/code group hashes into the frozen validation/test splits;
    • every benchmark-flagged or previously decontaminated ID.
  2. Review (ongoing). LLM reviewers check each prompt against its code line by line. A row is then accepted, repaired, prompt-enriched or rejected. Every changed answer is re-run through the same containerized gates as the strict pipeline (foundry v054 engine: iverilog, Yosys, strict Verilator lint, and differential/equivalence against the upstream reference where supported). Repairs that fail the gates, or that newly disagree with the reference, are not included. An independent verifier pass is in progress.
  3. Decontamination of the additions against VerilogEval v2, RTLLM 2.0 and the chipagents-verified RTLLM v2.1 / ChipBench / CVDP. The matching covered exact, module-level, identifier-renamed and n-gram near-duplicates.
    • The rule was conservative: code char-5 Jaccard ≥ 0.5, prompt char-5 Jaccard ≥ 0.45, code 13-gram containment ≥ 0.5, or prompt 13-gram containment ≥ 0.3.
    • 257 candidate rows were removed before selection.
    • Separately, 3 base rows (verimm:c829f3a7…, verimm:db321af2…, verimm:7562d49c…) were found to be derived from RTLLM adder_16bit and VerilogEval Prob100_fsm3comb, and were removed.
  4. Census. 0 duplicate IDs, 0 duplicate (prompt, response) pairs, and 0 training IDs shared with validation/test.

Known limitations

  • 21,344 code-view training rows and 38,886 of the 56,119 reasoning rows have no semantic review; most reasoning-only rows disagree with, or could not be compared to, the upstream reference. See the pilot numbers above.
  • Prompt-enriched rows have prompts that differ from the upstream text. The added details come from the upstream reference design.
  • Reasoning traces are upstream model output and were not independently reviewed (reasoning_status: not_independently_verified). For rows also in the code view, the code at the end of each trace is the same code as the code-view row; reasoning-only rows use the unchanged upstream answer.
  • Decontamination is evidence-based, not a guarantee. CVDP withholds most reference solutions.

Evaluation

Do not train or tune on VerilogEval, RTLLM, ChipBench or CVDP. The companion toolkit (yil384/rtl-qwen-sft) reports validation/test scores with ./run.sh eval-suite on four benchmarks:

  • VerilogEval v2;
  • chipagents-verified RTLLM v2.1;
  • chipagents-verified ChipBench (Verilog Gen);
  • chipagents-verified CVDP cid003.

No model results are claimed in this card.

Files

  • train.jsonl, train_reviewed_only.jsonl, validation.jsonl, test.jsonl: prepared code view.
  • raw/*.jsonl: source-format files with full provenance (including review_status, evidence_level, recovery_bucket).
  • release_manifest.json: composition, removed IDs and the base release.
  • reports/reasoning_v062_stats.json, reports/reasoning_extra_build_v062.json, reports/reasoning_extra_removed_v062.json (v061 reports kept alongside): reasoning-view composition, build counts and removed IDs.
  • preparation_manifest.json: prepared split hashes and fingerprint 8f8f668ab4c25cd92671fce502dfb49f5c32e7e64b7b41f9f7b62843ef796038.
  • LICENSE_NOTICE.md: per-source license and attribution text.
Downloads last month
306