problem_id
stringlengths
7
27
bundle_relpath
stringlengths
25
47
evaluation_title
stringlengths
6
73
release_level
stringclasses
5 values
evaluated_level
stringclasses
5 values
evaluation_problem_id
stringlengths
3
3
problem
stringlengths
287
16.6k
config_yaml
stringlengths
227
1.64k
testbench
stringlengths
129
71.8k
393_memory_controller_sdram
bundles/L4_system/393_memory_controller_sdram
Simplified SDRAM-like Memory Controller
L4_system
L4
393
# Problem 393: Simplified SDRAM-like Memory Controller **Level**: 4 (System Design) **Category**: system ## Description Design a simplified SDRAM-like memory controller with row/column addressing, a row buffer, auto-precharge logic, and a periodic refresh counter. The controller manages a small internal memory array...
problem_id: "393" title: "Simplified SDRAM-like Memory Controller" level: 4 category: "system" description: "Simplified SDRAM controller with row/column addressing, row buffer, auto-precharge, and refresh counter" module_name: "sdram_ctrl_simple" ports: clk: direction: "input" width: "1" rst: direction...
`timescale 1ns/1ps module tb_sdram_ctrl_simple; reg clk, rst; reg req, rw; reg [15:0] addr; reg [7:0] wdata; wire [7:0] rdata; wire ready, busy; sdram_ctrl_simple uut ( .clk(clk), .rst(rst), .req(req), .rw(rw), .addr(addr), .wdata(wdata), ...
394_risc_processor_8bit
bundles/L4_system/394_risc_processor_8bit
8-bit RISC Processor
L4_system
L4
394
# 8-bit RISC Processor ## Description Design an 8-bit RISC processor with 8 general-purpose registers (R0-R7), an ALU, load/store memory interface, branching support, and a halt instruction. The processor uses a 16-bit instruction format and operates in a simple fetch-execute cycle (2 cycles per instruction: fetch the...
problem_id: "394" title: "8-bit RISC Processor" level: 4 category: "processor" description: "8-bit RISC processor with 8 registers, ALU, load/store, and branch instructions using 16-bit instruction format" module_name: "risc_8bit" ports: clk: direction: "input" width: "1" rst: direction: "input" wi...
`timescale 1ns/1ps module tb_risc_8bit; reg clk; reg rst; reg [15:0] instr_in; reg [7:0] data_in; wire [7:0] pc; wire [7:0] data_addr; wire [7:0] data_out; wire mem_we; wire mem_re; wire halted; risc_8bit uut ( .clk(clk), .rst(rst), .instr_in(instr_...
395_network_packet_router
bundles/L4_system/395_network_packet_router
4-Port Network Packet Router
L4_system
L4
395
# 4-Port Network Packet Router ## Description Design a 4-port packet router that receives an incoming byte stream, decodes packet headers to determine the destination port, and forwards the entire packet (header + payload) to the correct output port. ## Module Interface ```verilog module packet_router_4port ( in...
problem_id: "395" title: "4-Port Network Packet Router" level: 4 category: "networking" description: "4-port packet router that receives packets with 8-bit header (2-bit dest port + 6-bit payload length) and routes to the correct output port" module_name: "packet_router_4port" ports: clk: direction: "input" ...
`timescale 1ns/1ps module tb_packet_router_4port; reg clk; reg rst; reg [7:0] in_data; reg in_valid; wire in_ready; wire [7:0] out_data_0, out_data_1, out_data_2, out_data_3; wire [3:0] out_valid; packet_router_4port uut ( .clk(clk), .rst(rst), .in_data(in_data...
396_axi_lite_master
bundles/L4_system/396_axi_lite_master
AXI4-Lite Master Interface
L4_system
L4
396
# AXI4-Lite Master Interface ## Description Design an AXI4-Lite master interface that can perform single read and write transactions. The master receives a command (start, address, data, read/write) from a simple interface and performs the corresponding AXI4-Lite transaction with proper handshaking. ## Module Interfa...
problem_id: "396" title: "AXI4-Lite Master Interface" level: 4 category: "bus" description: "AXI4-Lite master that performs single read and write transactions with proper handshaking" module_name: "axi_lite_master" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start...
`timescale 1ns/1ps module tb_axi_lite_master; reg clk; reg rst; reg start, rw; reg [31:0] addr, wdata_cmd; wire [31:0] rdata; wire done; // AXI signals wire [31:0] awaddr; wire awvalid; reg awready; wire [31:0] m_wdata; wire [3:0] wstrb; wire wvalid; reg wready...
397_pipeline_hazard_unit
bundles/L4_system/397_pipeline_hazard_unit
Pipeline Hazard Detection and Forwarding Unit
L4_system
L4
397
# Pipeline Hazard Detection and Forwarding Unit ## Description Design a hazard detection and forwarding unit for a classic 5-stage RISC pipeline (IF, ID, EX, MEM, WB). The unit detects RAW (Read After Write) data hazards, generates forwarding/bypass control signals, and produces stall and flush signals for load-use ha...
problem_id: "397" title: "Pipeline Hazard Detection and Forwarding Unit" level: 4 category: "processor" description: "Hazard detection and data forwarding unit for a 5-stage pipeline, handling RAW hazards with forwarding and load-use stalls" module_name: "hazard_unit" ports: clk: direction: "input" width: "1...
`timescale 1ns/1ps module tb_hazard_unit; reg clk; reg rst; reg [2:0] id_rs1, id_rs2; reg [2:0] ex_rd, mem_rd, wb_rd; reg ex_reg_write, mem_reg_write, wb_reg_write; reg ex_mem_read; wire [1:0] fwd_a, fwd_b; wire stall, flush; hazard_unit uut ( .clk(clk), .rst(rst),...
398_conv2d_3x3_engine
bundles/L4_system/398_conv2d_3x3_engine
3x3 Convolution Engine with Line Buffers
L4_system
L4
398
# 3x3 Convolution Engine with Line Buffers ## Description Design a 3x3 2D convolution engine that processes a stream of 8-bit unsigned pixels using signed 8-bit kernel coefficients. The engine uses two internal line buffers to maintain three rows of pixel data, and outputs the convolution result as a signed 16-bit val...
problem_id: "398" title: "3x3 Convolution Engine with Line Buffers" level: 4 category: "image_processing" description: "3x3 convolution engine with internal line buffers, processing 8-bit pixels with signed 8-bit kernel coefficients" module_name: "conv2d_3x3" ports: clk: direction: "input" width: "1" rst: ...
`timescale 1ns/1ps module tb_conv2d_3x3; reg clk; reg rst; reg [7:0] pixel_in; reg pixel_valid; reg signed [7:0] kernel_0, kernel_1, kernel_2; reg signed [7:0] kernel_3, kernel_4, kernel_5; reg signed [7:0] kernel_6, kernel_7, kernel_8; reg [7:0] img_width; wire signed [15:0] pixel...
399_watchdog_timer_sys
bundles/L4_system/399_watchdog_timer_sys
Watchdog Timer System
L4_system
L4
399
# Watchdog Timer System ## Description Design a configurable watchdog timer system with a kick (pet) input, early warning interrupt at 75% of the timeout value, and a system reset output when the full timeout is reached. ## Module Interface ```verilog module watchdog_sys ( input clk, input rst, input kic...
problem_id: "399" title: "Watchdog Timer System" level: 4 category: "timer" description: "Configurable watchdog timer with kick input, early warning interrupt at 75% timeout, and reset output" module_name: "watchdog_sys" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_watchdog_sys; reg clk; reg rst; reg kick; reg [15:0] timeout_val; reg enable; wire wdt_interrupt; wire wdt_reset; wire [15:0] counter; watchdog_sys uut ( .clk(clk), .rst(rst), .kick(kick), .timeout_val(timeout_val), ...
400_ethernet_crc_gen
bundles/L4_system/400_ethernet_crc_gen
Ethernet CRC-32 Generator/Checker
L4_system
L4
400
# Ethernet CRC-32 Generator/Checker ## Description Design an Ethernet CRC-32 (FCS) generator and checker that processes a byte stream. The module computes the standard Ethernet CRC-32 using the polynomial 0x04C11DB7, with bit-reflection and final inversion as specified by the Ethernet standard. ## Module Interface `...
problem_id: "400" title: "Ethernet CRC-32 Generator/Checker" level: 4 category: "networking" description: "Ethernet FCS CRC-32 generator and checker processing byte streams with standard polynomial" module_name: "eth_crc32" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1...
`timescale 1ns/1ps module tb_eth_crc32; reg clk; reg rst; reg [7:0] data_in; reg data_valid; reg is_last; wire [31:0] crc_out; wire crc_valid; wire crc_error; eth_crc32 uut ( .clk(clk), .rst(rst), .data_in(data_in), .data_valid(data_valid), ...
401_pwm_controller_multi
bundles/L4_system/401_pwm_controller_multi
8-Channel PWM Controller
L4_system
L4
401
# 8-Channel PWM Controller ## Description Design an 8-channel PWM controller with independently configurable duty cycle and period for each channel. Configuration is done through a memory-mapped register interface. ## Module Interface ```verilog module pwm_ctrl_8ch ( input clk, input rst, input [3:0] add...
problem_id: "401" title: "8-Channel PWM Controller" level: 4 category: "peripheral" description: "8-channel PWM controller with independent duty cycle and period per channel, memory-mapped register interface" module_name: "pwm_ctrl_8ch" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_pwm_ctrl_8ch; reg clk; reg rst; reg [3:0] addr; reg [15:0] wdata; reg we; wire [7:0] pwm_out; pwm_ctrl_8ch uut ( .clk(clk), .rst(rst), .addr(addr), .wdata(wdata), .we(we), .pwm_out(pwm_out) ); initial cl...
402_i2c_master_multi
bundles/L4_system/402_i2c_master_multi
I2C Master with Multi-Byte Read/Write
L4_system
L4
402
# Problem 402: I2C Master with Multi-Byte Read/Write **Level**: 4 (System Design) **Category**: communication ## Description Design an I2C master controller that supports multi-byte read and write transactions. The controller generates SCL and drives SDA through an open-drain interface (sda_out/sda_oe). It handles S...
problem_id: "402" title: "I2C Master with Multi-Byte Read/Write" level: 4 category: "communication" description: "I2C master controller supporting multi-byte read and write transactions" module_name: "i2c_master_multi" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" s...
`timescale 1ns/1ps module tb_i2c_master_multi; reg clk; reg rst; reg start; reg [6:0] slave_addr; reg rw; reg [3:0] num_bytes; reg [7:0] tx_data; wire tx_ready; wire [7:0] rx_data; wire rx_valid; wire scl; reg sda_in; wire sda_out; wire sda_oe; wire busy; ...
403_floating_point_mult
bundles/L4_system/403_floating_point_mult
IEEE-754 Half-Precision Floating-Point Multiplier
L4_system
L4
403
# Problem 403: IEEE-754 Half-Precision Floating-Point Multiplier **Level**: 4 (System Design) **Category**: arithmetic ## Description Design a combinational IEEE-754 half-precision (16-bit) floating-point multiplier. The module takes two 16-bit half-precision floats and produces their product. ## Module Interface ...
problem_id: "403" title: "IEEE-754 Half-Precision Floating-Point Multiplier" level: 4 category: "arithmetic" description: "Combinational IEEE-754 half-precision (16-bit) floating-point multiplier" module_name: "fp16_mult" ports: a: direction: "input" width: "16" b: direction: "input" width: "16" ...
`timescale 1ns/1ps module tb_fp16_mult; reg [15:0] a; reg [15:0] b; wire [15:0] product; fp16_mult uut ( .a(a), .b(b), .product(product) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; input [15:0] expected; ...
404_branch_predictor_gshare
bundles/L4_system/404_branch_predictor_gshare
GShare Branch Predictor
L4_system
L4
404
# Problem 404: GShare Branch Predictor **Level**: 4 (System Design) **Category**: processor ## Description Design a GShare branch predictor with a 16-entry Pattern History Table (PHT). The predictor uses a 4-bit Global History Register (GHR) XORed with lower bits of the PC to index the PHT. Each PHT entry is a 2-bit...
problem_id: "404" title: "GShare Branch Predictor" level: 4 category: "processor" description: "GShare branch predictor with 16-entry pattern history table" module_name: "gshare_predictor" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" pc: direction: "input" ...
`timescale 1ns/1ps module tb_gshare_predictor; reg clk; reg rst; reg [7:0] pc; wire predict_taken; reg actual_taken; reg update_en; reg [7:0] update_pc; wire mispredict; gshare_predictor uut ( .clk(clk), .rst(rst), .pc(pc), .predict_taken(predict_ta...
405_scoreboard_unit
bundles/L4_system/405_scoreboard_unit
Instruction Scoreboard Unit
L4_system
L4
405
# Problem 405: Instruction Scoreboard Unit **Level**: 4 (System Design) **Category**: processor ## Description Design a 4-entry instruction scoreboard that tracks register dependencies for out-of-order execution. The scoreboard maintains a "busy" bit for each of 8 registers (r0-r7). When an instruction issues, its d...
problem_id: "405" title: "Instruction Scoreboard Unit" level: 4 category: "processor" description: "4-entry instruction scoreboard for out-of-order execution tracking" module_name: "scoreboard_4" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" issue_en: direction:...
`timescale 1ns/1ps module tb_scoreboard_4; reg clk; reg rst; reg issue_en; reg [2:0] issue_rd; reg [2:0] issue_rs1; reg [2:0] issue_rs2; reg [2:0] complete_rd; reg complete_en; wire can_issue; wire stall_rs1; wire stall_rs2; scoreboard_4 uut ( .clk(clk), ...
406_crossbar_switch_4x4
bundles/L4_system/406_crossbar_switch_4x4
4x4 Crossbar Switch with Arbitration
L4_system
L4
406
# Problem 406: 4x4 Crossbar Switch with Arbitration **Level**: 4 (System Design) **Category**: interconnect ## Description Design a 4x4 crossbar switch that connects 4 input ports to 4 output ports with round-robin arbitration. Each input port can request access to any output port. Each output port has an independen...
problem_id: "406" title: "4x4 Crossbar Switch with Arbitration" level: 4 category: "interconnect" description: "4x4 crossbar switch with round-robin arbitration per output port" module_name: "crossbar_arb_4x4" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" req0: ...
`timescale 1ns/1ps module tb_crossbar_arb_4x4; reg clk; reg rst; reg [3:0] req0, req1, req2, req3; reg [7:0] data_in0, data_in1, data_in2, data_in3; wire [3:0] grant0, grant1, grant2, grant3; wire [7:0] data_out0, data_out1, data_out2, data_out3; wire [3:0] data_valid; crossbar_arb_4x...
407_flash_controller
bundles/L4_system/407_flash_controller
Simple NOR Flash Memory Controller
L4_system
L4
407
# Problem 407: Simple NOR Flash Memory Controller **Level**: 4 (System Design) **Category**: memory ## Description Design a simplified NOR flash memory controller with internal 256-byte storage. The controller supports read, write (program), and erase operations through a command interface with a state machine. ## ...
problem_id: "407" title: "Simple NOR Flash Memory Controller" level: 4 category: "memory" description: "NOR flash memory controller with read, write, and erase operations" module_name: "flash_ctrl" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" cmd: direction: "i...
`timescale 1ns/1ps module tb_flash_ctrl; reg clk; reg rst; reg [1:0] cmd; reg [15:0] addr; reg [7:0] wdata; wire [7:0] rdata; wire busy; wire done; flash_ctrl uut ( .clk(clk), .rst(rst), .cmd(cmd), .addr(addr), .wdata(wdata), .rdata(...
408_crypto_xtea
bundles/L4_system/408_crypto_xtea
XTEA Encryption Engine
L4_system
L4
408
# Problem 408: XTEA Encryption Engine **Level**: 4 (System Design) **Category**: crypto ## Description Design a XTEA (eXtended Tiny Encryption Algorithm) engine that performs encryption and decryption on 64-bit data blocks using a 128-bit key. The engine performs 32 rounds iteratively (one round per clock cycle). #...
problem_id: "408" title: "XTEA Encryption Engine" level: 4 category: "crypto" description: "XTEA block cipher engine supporting encryption and decryption (32 rounds)" module_name: "xtea_engine" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: direction: "inp...
`timescale 1ns/1ps module tb_xtea_engine; reg clk; reg rst; reg start; reg encrypt; reg [127:0] key; reg [63:0] data_in; wire [63:0] data_out; wire done; xtea_engine uut ( .clk(clk), .rst(rst), .start(start), .encrypt(encrypt), .key(key), ...
409_vga_timing_gen
bundles/L4_system/409_vga_timing_gen
VGA Timing Generator
L4_system
L4
409
# Problem 409: VGA Timing Generator **Level**: 4 (System Design) **Category**: display ## Description Design a VGA timing generator that produces standard 640x480 @ 60Hz timing signals. The input clock is assumed to be the 25.175 MHz pixel clock (approximated as 25 MHz). The module generates horizontal sync, vertica...
problem_id: "409" title: "VGA Timing Generator" level: 4 category: "display" description: "VGA timing generator for 640x480@60Hz resolution" module_name: "vga_timing" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" hsync: direction: "output" width: "1" vsync...
`timescale 1ns/1ps module tb_vga_timing; reg clk; reg rst; wire hsync; wire vsync; wire display_en; wire [9:0] pixel_x; wire [9:0] pixel_y; vga_timing uut ( .clk(clk), .rst(rst), .hsync(hsync), .vsync(vsync), .display_en(display_en), .pi...
410_memory_arbiter_2port
bundles/L4_system/410_memory_arbiter_2port
2-Port Memory Arbiter with Fairness
L4_system
L4
410
# Problem 410: 2-Port Memory Arbiter with Fairness **Level**: 4 (System Design) **Category**: system ## Description Design a 2-port memory arbiter that allows two requestors (A and B) to share a single memory port. The arbiter uses round-robin fairness to prevent starvation when both requestors contend simultaneousl...
problem_id: "410" title: "2-Port Memory Arbiter with Fairness" level: 4 category: "system" description: "2-port memory arbiter with round-robin fairness for shared memory access" module_name: "mem_arbiter_2port" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" req_a: ...
`timescale 1ns/1ps module tb_mem_arbiter_2port; reg clk, rst; reg req_a, rw_a; reg [15:0] addr_a; reg [7:0] wdata_a; wire [7:0] rdata_a; wire ready_a; reg req_b, rw_b; reg [15:0] addr_b; reg [7:0] wdata_b; wire [7:0] rdata_b; wire ready_b; wire [15:0] mem_addr; wi...
411_fft_4point
bundles/L4_system/411_fft_4point
4-Point FFT (Radix-2 DIT)
L4_system
L4
411
# Problem 411: 4-Point FFT (Radix-2 DIT) **Level**: 4 (System Design) **Category**: system ## Description Design a sequential 4-point FFT processor using the Radix-2 Decimation-In-Time (DIT) algorithm. The FFT takes four complex input samples and produces four complex frequency-domain outputs. ## Module Interface ...
problem_id: "411" title: "4-Point FFT (Radix-2 DIT)" level: 4 category: "system" description: "Sequential 4-point FFT using Radix-2 Decimation-In-Time algorithm" module_name: "fft_4pt" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: direction: "input" w...
`timescale 1ns/1ps module tb_fft_4pt; reg clk, rst, start; reg signed [15:0] x0_re, x0_im, x1_re, x1_im; reg signed [15:0] x2_re, x2_im, x3_re, x3_im; wire signed [15:0] y0_re, y0_im, y1_re, y1_im; wire signed [15:0] y2_re, y2_im, y3_re, y3_im; wire done; fft_4pt uut ( .clk(clk), ...
412_aes_mixcolumns
bundles/L4_system/412_aes_mixcolumns
AES MixColumns
L4_system
L4
412
# Problem 412: AES MixColumns **Level**: 4 (System Design) **Category**: system ## Description Design a combinational module implementing the AES MixColumns transformation on a single column (4 bytes). This operation uses Galois Field GF(2^8) arithmetic with the irreducible polynomial x^8 + x^4 + x^3 + x + 1 (0x11B)...
problem_id: "412" title: "AES MixColumns" level: 4 category: "system" description: "AES MixColumns operation on one column using GF(2^8) multiplication" module_name: "aes_mixcolumns" ports: col_in: direction: "input" width: "32" col_out: direction: "output" width: "32" testbench_file: "testbench.v...
`timescale 1ns/1ps module tb_aes_mixcolumns; reg [31:0] col_in; wire [31:0] col_out; aes_mixcolumns uut ( .col_in(col_in), .col_out(col_out) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; input [31:0] expected; in...
413_tag_memory_4way
bundles/L4_system/413_tag_memory_4way
4-Way Set-Associative Tag Memory with LRU
L4_system
L4
413
# Problem 413: 4-Way Set-Associative Tag Memory with LRU **Level**: 4 (System Design) **Category**: system ## Description Design a 4-way set-associative tag memory with LRU (Least Recently Used) replacement policy. The cache has 8 sets, each containing 4 ways. ## Module Interface ```verilog module tag_mem_4way( ...
problem_id: "413" title: "4-Way Set-Associative Tag Memory with LRU" level: 4 category: "system" description: "4-way set-associative tag memory with LRU replacement policy, 8 sets" module_name: "tag_mem_4way" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" addr: d...
`timescale 1ns/1ps module tb_tag_mem_4way; reg clk, rst; reg [11:0] addr; reg lookup, write; reg [7:0] write_data; wire hit; wire [7:0] hit_data; wire evict; wire [7:0] evict_data; tag_mem_4way uut ( .clk(clk), .rst(rst), .addr(addr), .lookup(lookup), .write(write)...
414_dsp_accumulator
bundles/L4_system/414_dsp_accumulator
DSP Accumulator with Saturation
L4_system
L4
414
# Problem 414: DSP Accumulator with Saturation **Level**: 4 (System Design) **Category**: system ## Description Design a DSP accumulator with saturation arithmetic, overflow detection, and multiple operating modes. All arithmetic is signed. ## Module Interface ```verilog module dsp_acc( input clk, input rs...
problem_id: "414" title: "DSP Accumulator with Saturation" level: 4 category: "system" description: "DSP accumulator with saturation, rounding, and overflow detection" module_name: "dsp_acc" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" data_in: direction: "inpu...
`timescale 1ns/1ps module tb_dsp_acc; reg clk, rst; reg signed [15:0] data_in; reg valid_in; reg [1:0] acc_mode; wire signed [31:0] acc_out; wire overflow; wire valid_out; dsp_acc uut ( .clk(clk), .rst(rst), .data_in(data_in), .valid_in(valid_in), .acc_mode(acc_mode), ...
415_ecc_encoder_decoder
bundles/L4_system/415_ecc_encoder_decoder
BCH(15,7) Encoder/Decoder
L4_system
L4
415
# Problem 415: BCH(15,7) Encoder/Decoder **Level**: 4 (System Design) **Category**: system ## Description Design a BCH(15,7) encoder and decoder. The encoder takes 7-bit data and produces a 15-bit codeword. The decoder can correct up to 2 bit errors in a received 15-bit codeword. ## Module Interface ```verilog mod...
problem_id: "415" title: "BCH(15,7) Encoder/Decoder" level: 4 category: "system" description: "BCH(15,7) encoder and decoder with 2-bit error correction" module_name: "bch_15_7" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" encode_data: direction: "input" wi...
`timescale 1ns/1ps module tb_bch_15_7; reg clk, rst; reg [6:0] encode_data; reg encode_en; wire [14:0] codeword_out; reg [14:0] decode_in; reg decode_en; wire [6:0] decoded_data; wire decode_valid; wire [1:0] error_count; bch_15_7 uut ( .clk(clk), .rst(rst), .e...
416_timer_counter_sys
bundles/L4_system/416_timer_counter_sys
Timer/Counter System with 4 Channels
L4_system
L4
416
# Problem 416: Timer/Counter System with 4 Channels **Level**: 4 (System Design) **Category**: system ## Description Design a timer/counter system with 4 independent channels. Each channel supports count up/down, auto-reload, PWM output, and input capture. ## Module Interface ```verilog module timer_sys_4ch( i...
problem_id: "416" title: "Timer/Counter System with 4 Channels" level: 4 category: "system" description: "Timer/counter system with 4 independent channels, PWM, capture, and auto-reload" module_name: "timer_sys_4ch" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" addr...
`timescale 1ns/1ps module tb_timer_sys_4ch; reg clk, rst; reg [3:0] addr; reg [15:0] wdata; reg we; wire [15:0] rdata; reg [3:0] capture_in; wire [3:0] pwm_out; wire [3:0] irq; timer_sys_4ch uut ( .clk(clk), .rst(rst), .addr(addr), .wdata(wdata), .we(we), .rdata(rd...
417_jpeg_dct_1d
bundles/L4_system/417_jpeg_dct_1d
1D 8-Point DCT for JPEG
L4_system
L4
417
# Problem 417: 1D 8-Point DCT for JPEG **Level**: 4 (System Design) **Category**: system ## Description Design a sequential 1D 8-point DCT (Discrete Cosine Transform) processor suitable for JPEG compression. This module uses a direct computation approach with scaled integer cosine coefficients. ## Module Interface ...
problem_id: "417" title: "1D 8-Point DCT for JPEG" level: 4 category: "system" description: "Sequential 1D 8-point DCT using scaled integer approximation of Chen's algorithm" module_name: "dct_1d_8pt" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: directio...
`timescale 1ns/1ps module tb_dct_1d_8pt; reg clk, rst, start; reg signed [7:0] x0, x1, x2, x3, x4, x5, x6, x7; wire signed [15:0] y0, y1, y2, y3, y4, y5, y6, y7; wire done; dct_1d_8pt uut ( .clk(clk), .rst(rst), .start(start), .x0(x0), .x1(x1), .x2(x2), .x3(x3), .x4(x4), ....
418_register_file_banked
bundles/L4_system/418_register_file_banked
Banked Register File
L4_system
L4
418
# Problem 418: Banked Register File **Level**: 4 (System Design) **Category**: memory ## Description Design a banked register file containing 2 banks, each with 8 registers of 16-bit width. A bank select signal determines which bank is accessed for both read and write operations. ## Module Interface ```verilog mod...
problem_id: '418' title: Banked Register File level: 4 category: memory description: 2-bank register file with 8x16-bit registers per bank, bank switching via control signal. module_name: regfile_banked ports: clk: direction: input width: 1 rst: direction: input width: 1 bank_sel: direction: i...
`timescale 1ns/1ps module tb_regfile_banked; reg clk; reg rst; reg bank_sel; reg [2:0] rd_addr; reg [2:0] wr_addr; reg [15:0] wr_data; reg we; wire [15:0] rd_data; regfile_banked uut ( .clk(clk), .rst(rst), .bank_sel(bank_sel), .rd_addr(rd_addr), ...
419_wishbone_master
bundles/L4_system/419_wishbone_master
Wishbone B4 Bus Master
L4_system
L4
419
# Problem 419: Wishbone B4 Bus Master **Level**: 4 (System Design) **Category**: bus ## Description Design a Wishbone B4 bus master that supports single-cycle and 4-beat burst read/write transactions. ## Module Interface ```verilog module wb_master( input clk, input rst, // Control interface input ...
problem_id: '419' title: Wishbone B4 Bus Master level: 4 category: bus description: Wishbone B4 bus master supporting single and 4-beat burst read/write transactions. module_name: wb_master ports: clk: direction: input width: 1 rst: direction: input width: 1 start: direction: input width: ...
`timescale 1ns/1ps module tb_wb_master; reg clk, rst; reg start, rw, burst; reg [15:0] addr; reg [31:0] wdata; wire [31:0] rdata; wire done, busy; wire wb_cyc, wb_stb, wb_we; wire [15:0] wb_adr; wire [31:0] wb_dat_o; reg [31:0] wb_dat_i; reg wb_ack; wire [3:0] wb_sel; ...
420_packet_fifo
bundles/L4_system/420_packet_fifo
Packet FIFO with Commit/Rollback
L4_system
L4
420
# Problem 420: Packet FIFO with Commit/Rollback **Level**: 4 (System Design) **Category**: memory ## Description Design a 16-deep, 8-bit wide packet-mode FIFO. Data written into the FIFO is only made visible to the reader after a commit operation. A rollback operation discards all uncommitted writes. ## Module Inte...
problem_id: '420' title: Packet FIFO with Commit/Rollback level: 4 category: memory description: Packet-mode FIFO where written data is only visible to the reader after commit, with rollback support. module_name: packet_fifo_16x8 ports: clk: direction: input width: 1 rst: direction: input width: 1 ...
`timescale 1ns/1ps module tb_packet_fifo; reg clk, rst; reg wr_en, commit, rollback, rd_en; reg [7:0] wr_data; wire [7:0] rd_data; wire empty, full, pkt_available; packet_fifo_16x8 uut ( .clk(clk), .rst(rst), .wr_en(wr_en), .wr_data(wr_data), .commit(commit), .rollback...
421_freq_counter
bundles/L4_system/421_freq_counter
Frequency Counter
L4_system
L4
421
# Problem 421: Frequency Counter **Level**: 4 (System Design) **Category**: measurement ## Description Design a frequency counter that measures the frequency of an unknown input signal by counting its rising edges over a programmable gate time window derived from a reference clock. ## Module Interface ```verilog m...
problem_id: '421' title: Frequency Counter level: 4 category: measurement description: Measures unknown signal frequency by counting edges over a programmable gate time using a reference clock. module_name: freq_counter ports: clk_ref: direction: input width: 1 rst: direction: input width: 1 signa...
`timescale 1ns/1ps module tb_freq_counter; reg clk_ref, rst; reg signal_in; reg [15:0] gate_time; wire [31:0] freq_count; wire count_valid; freq_counter uut ( .clk_ref(clk_ref), .rst(rst), .signal_in(signal_in), .gate_time(gate_time), .freq_count(freq_count), ...
422_spi_flash_reader
bundles/L4_system/422_spi_flash_reader
SPI NOR Flash Reader
L4_system
L4
422
# Problem 422: SPI NOR Flash Reader **Level**: 4 (System Design) **Category**: interface ## Description Design an SPI NOR flash reader controller. The module sends the standard 03h read command followed by a 24-bit address, then clocks in data bytes from the flash. ## Module Interface ```verilog module spi_flash_r...
problem_id: '422' title: SPI NOR Flash Reader level: 4 category: interface description: SPI NOR flash reader that sends 03h read command with 24-bit address and receives data bytes. module_name: spi_flash_reader ports: clk: direction: input width: 1 rst: direction: input width: 1 start: direct...
`timescale 1ns/1ps module tb_spi_flash_reader; reg clk, rst; reg start; reg [23:0] flash_addr; reg [3:0] num_bytes; wire [7:0] data_out; wire data_valid; wire busy; wire sclk; wire mosi; reg miso; wire cs_n; spi_flash_reader uut ( .clk(clk), .rst(rst), ...
423_clock_divider_frac
bundles/L4_system/423_clock_divider_frac
Fractional Clock Divider
L4_system
L4
423
# Problem 423: Fractional Clock Divider **Level**: 4 (System Design) **Category**: clocking ## Description Design a fractional clock divider that produces an output clock with a programmable division ratio. The divider supports integer division and an optional +0.5 fractional step. ## Module Interface ```verilog m...
problem_id: '423' title: Fractional Clock Divider level: 4 category: clocking description: Generates output clock with programmable integer + 0.5 fractional division ratio. module_name: frac_clk_div ports: clk: direction: input width: 1 rst: direction: input width: 1 div_int: direction: input ...
`timescale 1ns/1ps module tb_frac_clk_div; reg clk, rst; reg [7:0] div_int; reg div_frac; wire clk_out; frac_clk_div uut ( .clk(clk), .rst(rst), .div_int(div_int), .div_frac(div_frac), .clk_out(clk_out) ); initial clk = 0; always #5 clk = ~clk; integer pa...
424_ring_oscillator_counter
bundles/L4_system/424_ring_oscillator_counter
Ring Oscillator Frequency Measurement
L4_system
L4
424
# Problem 424: Ring Oscillator Frequency Measurement **Level**: 4 (System Design) **Category**: measurement ## Description Design a module that measures the frequency of a ring oscillator by counting its rising edges over a programmable gate period. This is a single-shot measurement triggered by a start signal. ## ...
problem_id: '424' title: Ring Oscillator Frequency Measurement level: 4 category: measurement description: Counts ring oscillator edges over a programmable gate period using a reference clock. module_name: ring_osc_counter ports: clk: direction: input width: 1 rst: direction: input width: 1 osc_in...
`timescale 1ns/1ps module tb_ring_osc_counter; reg clk, rst; reg osc_in; reg [15:0] gate_period; reg start; wire [31:0] osc_count; wire done; ring_osc_counter uut ( .clk(clk), .rst(rst), .osc_in(osc_in), .gate_period(gate_period), .start(start), .osc_count(osc_coun...
425_memory_bist
bundles/L4_system/425_memory_bist
Memory Built-In Self-Test
L4_system
L4
425
# Problem 425: Memory Built-In Self-Test **Level**: 4 (System Design) **Category**: testing ## Description Design a Memory Built-In Self-Test (BIST) engine that generates March C- test patterns for a 16x8 external SRAM and reports pass or fail. ## Module Interface ```verilog module mem_bist( input clk, inp...
problem_id: '425' title: Memory Built-In Self-Test level: 4 category: testing description: Generates march C- test patterns for a 16x8 SRAM and reports pass/fail. module_name: mem_bist ports: clk: direction: input width: 1 rst: direction: input width: 1 start: direction: input width: 1 p...
`timescale 1ns/1ps module tb_mem_bist; reg clk, rst; reg start; wire pass_out, fail_out, done, busy; wire [3:0] mem_addr; wire [7:0] mem_data_wr; wire [7:0] mem_data_rd; wire mem_we, mem_re; mem_bist uut ( .clk(clk), .rst(rst), .start(start), .pass(pass_out), ....
426_pixel_pipeline
bundles/L4_system/426_pixel_pipeline
Pixel Processing Pipeline
L4_system
L4
426
# Problem 426: Pixel Processing Pipeline **Level**: 4 (System Design) **Category**: system ## Description Design a 3-stage pixel processing pipeline that performs brightness adjustment followed by thresholding. The pipeline processes 8-bit grayscale pixels. ## Module Interface ```verilog module pixel_pipeline( ...
problem_id: "426" title: "Pixel Processing Pipeline" level: 4 category: "system" description: "3-stage pixel processing pipeline with brightness adjust, clamping, and threshold" module_name: "pixel_pipeline" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" pixel_in: ...
`timescale 1ns/1ps module tb_pixel_pipeline; reg clk, rst; reg [7:0] pixel_in; reg valid_in; reg signed [7:0] brightness_offset; reg [7:0] threshold; wire [7:0] pixel_out; wire valid_out; pixel_pipeline uut ( .clk(clk), .rst(rst), .pixel_in(pixel_in), .valid_in(valid_i...
427_protocol_bridge_spi2par
bundles/L4_system/427_protocol_bridge_spi2par
SPI-to-Parallel Bridge
L4_system
L4
427
# Problem 427: SPI-to-Parallel Bridge **Level**: 4 (System Design) **Category**: system ## Description Design an SPI-to-parallel bridge that receives SPI transactions and presents them as parallel bus operations. The bridge receives 24-bit SPI frames (1 bit command + 7 bits padding + 8 bits address + 8 bits data) an...
problem_id: "427" title: "SPI-to-Parallel Bridge" level: 4 category: "system" description: "SPI-to-parallel bridge that receives SPI data and presents as parallel bus with address and data" module_name: "spi2par_bridge" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_spi2par_bridge; reg clk, rst; reg sclk_reg, mosi_reg, ss_n_reg; wire [7:0] data_out; wire [7:0] addr_out; wire write_en; reg [7:0] data_in; wire read_data_ready; spi2par_bridge uut ( .clk(clk), .rst(rst), .sclk(sclk_reg), .mosi(mosi_reg), ....
428_dma_scatter_gather
bundles/L4_system/428_dma_scatter_gather
DMA with Scatter-Gather Descriptors
L4_system
L4
428
# Problem 428: DMA with Scatter-Gather Descriptors **Level**: 4 (System Design) **Category**: system ## Description Design a DMA engine with scatter-gather descriptor support. The DMA reads a linked list of descriptors from memory, and for each descriptor, transfers a block of data from source to destination. Each d...
problem_id: "428" title: "DMA with Scatter-Gather Descriptors" level: 4 category: "system" description: "DMA engine with scatter-gather descriptor list supporting chained memory transfers" module_name: "dma_sg" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: ...
`timescale 1ns/1ps module tb_dma_sg; reg clk, rst; reg start; reg [7:0] desc_addr; wire done; wire busy; wire [7:0] mem_addr; reg [7:0] mem_rdata; wire [7:0] mem_wdata; wire mem_we; wire mem_re; reg mem_ready; dma_sg uut ( .clk(clk), .rst(rst), .start(s...
429_event_logger
bundles/L4_system/429_event_logger
Event Logger with Timestamp
L4_system
L4
429
# Problem 429: Event Logger with Timestamp **Level**: 4 (System Design) **Category**: system ## Description Design an event logger that records events with timestamps into an 8-entry circular buffer. Each log entry stores an 8-bit event code and a 16-bit timestamp. Events can be read back in FIFO order. ## Module I...
problem_id: "429" title: "Event Logger with Timestamp" level: 4 category: "system" description: "Event logger with 16-bit timestamp and 8-entry circular buffer" module_name: "event_logger" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" event_in: direction: "input...
`timescale 1ns/1ps module tb_event_logger; reg clk, rst; reg [7:0] event_in; reg event_valid; reg read_en; wire [7:0] log_data; wire [15:0] log_timestamp; wire log_valid; wire [3:0] log_count; wire overflow; event_logger uut ( .clk(clk), .rst(rst), .event_in(ev...
430_arbitrated_bus
bundles/L4_system/430_arbitrated_bus
Arbitrated Bus with 3 Masters and 2 Slaves
L4_system
L4
430
# Problem 430: Arbitrated Bus with 3 Masters and 2 Slaves **Level**: 4 (System Design) **Category**: system ## Description Design a multi-master bus system with 3 bus masters, 2 memory-mapped slaves, round-robin arbitration, and address decoding. ## Module Interface ```verilog module arb_bus_3m2s( input clk, ...
problem_id: "430" title: "Arbitrated Bus with 3 Masters and 2 Slaves" level: 4 category: "system" description: "Multi-master bus with round-robin arbitration, address decoding, and 3 masters accessing 2 slaves" module_name: "arb_bus_3m2s" ports: clk: direction: "input" width: "1" rst: direction: "input...
`timescale 1ns/1ps module tb_arb_bus_3m2s; reg clk, rst; reg m0_req, m1_req, m2_req; reg [15:0] m0_addr, m1_addr, m2_addr; reg [7:0] m0_wdata, m1_wdata, m2_wdata; reg m0_we, m1_we, m2_we; wire [7:0] m0_rdata, m1_rdata, m2_rdata; wire m0_ack, m1_ack, m2_ack; arb_bus_3m2s uut ( ...
431_cordic_sincos
bundles/L4_system/431_cordic_sincos
CORDIC Sine/Cosine Generator
L4_system
L4
431
# Problem 431: CORDIC Sine/Cosine Generator **Level**: 4 (System Design) **Category**: system ## Description Design a CORDIC (COordinate Rotation Digital Computer) engine that computes sine and cosine of an input angle using 12 iterative rotations. The design uses 16-bit signed fixed-point arithmetic. ## Module Int...
problem_id: "431" title: "CORDIC Sine/Cosine Generator" level: 4 category: "system" description: "CORDIC algorithm for computing sine and cosine with 12 iterations and 16-bit fixed-point" module_name: "cordic_sincos" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" sta...
`timescale 1ns/1ps module tb_cordic_sincos; reg clk, rst; reg start; reg [15:0] angle; wire signed [15:0] sin_out; wire signed [15:0] cos_out; wire done; cordic_sincos uut ( .clk(clk), .rst(rst), .start(start), .angle(angle), .sin_out(sin_out), .cos_out(cos_out), ...
432_cache_2way_wb
bundles/L4_system/432_cache_2way_wb
2-Way Set-Associative Write-Back Cache
L4_system
L4
432
# Problem 432: 2-Way Set-Associative Write-Back Cache **Level**: 4 (System Design) **Category**: system ## Description Design a 2-way set-associative write-back cache with 4 sets and 4 bytes per cache line. The cache uses LRU (Least Recently Used) replacement and a write-back policy with dirty bits. ## Module Inter...
problem_id: "432" title: "2-Way Set-Associative Write-Back Cache" level: 4 category: "system" description: "2-way set-associative write-back cache with 4 sets, 4 bytes per line, and LRU replacement" module_name: "cache_2way_wb" ports: clk: direction: "input" width: "1" rst: direction: "input" width...
`timescale 1ns/1ps module tb_cache_2way_wb; reg clk, rst; reg [15:0] cpu_addr; reg [7:0] cpu_din; reg cpu_we, cpu_re; wire [7:0] cpu_dout; wire cpu_ready; wire [15:0] mem_addr; reg [7:0] mem_din; wire [7:0] mem_dout; wire mem_we, mem_re; reg mem_ready; cache_2way_wb uu...
433_uart_bridge
bundles/L4_system/433_uart_bridge
UART-to-Memory Bridge
L4_system
L4
433
# Problem 433: UART-to-Memory Bridge **Level**: 4 (System Design) **Category**: system ## Description Design a UART-to-memory bridge that receives serial commands over a UART interface to read and write an external memory. The bridge contains a UART receiver and transmitter, a command parser, and a memory interface ...
problem_id: "433" title: "UART-to-Memory Bridge" level: 4 category: "system" description: "UART-to-memory bridge that receives UART commands to read/write memory and sends responses" module_name: "uart_mem_bridge" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" rx_in:...
`timescale 1ns/1ps module tb_uart_mem_bridge; reg clk, rst; reg rx_in; wire tx_out; wire [7:0] mem_addr; reg [7:0] mem_rdata; wire [7:0] mem_wdata; wire mem_we, mem_re; localparam CLKS_PER_BIT = 8; localparam BIT_PERIOD = CLKS_PER_BIT * 10; // 10ns per clk * 8 = 80ns per bit ...
434_instruction_cache
bundles/L4_system/434_instruction_cache
Direct-Mapped Instruction Cache (8 Lines x 4 Bytes)
L4_system
L4
434
# Problem 434: Direct-Mapped Instruction Cache (8 Lines x 4 Bytes) **Level**: 4 (System Design) **Category**: system ## Description Design a direct-mapped instruction cache with 8 cache lines, where each line stores one 32-bit (4-byte) instruction word. The cache handles PC lookups, returning cached instructions on ...
problem_id: "434" title: "Direct-Mapped Instruction Cache (8 Lines x 4 Bytes)" level: 4 category: "system" description: "Direct-mapped instruction cache with 8 cache lines, 4 bytes per line, handling hit/miss and memory interface" module_name: "icache_8x4" ports: clk: direction: "input" width: "1" rst: ...
`timescale 1ns/1ps module tb_icache_8x4; reg clk, rst; reg [11:0] pc; wire [31:0] instr_out; wire hit, miss; wire [11:0] mem_addr; reg [31:0] mem_data; reg mem_valid; icache_8x4 uut ( .clk(clk), .rst(rst), .pc(pc), .instr_out(instr_out), .hit(hit), .mis...
435_hardware_scheduler
bundles/L4_system/435_hardware_scheduler
4-Task Hardware Scheduler with Priority and Time-Slice
L4_system
L4
435
# Problem 435: 4-Task Hardware Scheduler with Priority and Time-Slice **Level**: 4 (System Design) **Category**: system ## Description Design a hardware scheduler that manages 4 tasks. The scheduler selects the highest-priority requesting task and runs it for up to `time_quantum` clock cycles before forcing a contex...
problem_id: "435" title: "4-Task Hardware Scheduler with Priority and Time-Slice" level: 4 category: "system" description: "4-task hardware scheduler with priority-based scheduling and round-robin time-slice support" module_name: "hw_scheduler_4" ports: clk: direction: "input" width: "1" rst: direction...
`timescale 1ns/1ps module tb_hw_scheduler_4; reg clk, rst; reg [3:0] task_req; reg [7:0] task_priority; reg [7:0] time_quantum; wire [1:0] active_task; wire task_active; wire context_switch; hw_scheduler_4 uut ( .clk(clk), .rst(rst), .task_req(task_req), .task_...
436_crc_accelerator
bundles/L4_system/436_crc_accelerator
CRC Hardware Accelerator (CRC-8/CRC-16/CRC-32)
L4_system
L4
436
# Problem 436: CRC Hardware Accelerator (CRC-8/CRC-16/CRC-32) **Level**: 4 (System Design) **Category**: system ## Description Design a CRC hardware accelerator that computes CRC checksums one byte at a time. The accelerator supports configurable polynomial width (8, 16, or 32 bits) and configurable polynomial value...
problem_id: "436" title: "CRC Hardware Accelerator (CRC-8/CRC-16/CRC-32)" level: 4 category: "system" description: "CRC hardware accelerator supporting CRC-8, CRC-16, and CRC-32 via configurable polynomial register" module_name: "crc_accel" ports: clk: direction: "input" width: "1" rst: direction: "inp...
`timescale 1ns/1ps module tb_crc_accel; reg clk, rst; reg [31:0] cfg_poly; reg [1:0] cfg_width; reg [7:0] data_in; reg data_valid; reg init; wire [31:0] crc_out; crc_accel uut ( .clk(clk), .rst(rst), .cfg_poly(cfg_poly), .cfg_width(cfg_width), .data_in(...
437_pcie_tlp_parser
bundles/L4_system/437_pcie_tlp_parser
PCIe TLP Header Parser
L4_system
L4
437
# Problem 437: PCIe TLP Header Parser **Level**: 4 (System Design) **Category**: system ## Description Design a parser for PCIe Transaction Layer Packet (TLP) headers. The parser receives header DWORDs (32 bits) sequentially and extracts key fields. It supports both 3-DWORD and 4-DWORD header formats. ## Module Int...
problem_id: "437" title: "PCIe TLP Header Parser" level: 4 category: "system" description: "PCIe Transaction Layer Packet header parser extracting type, length, requester ID, and address from 3-DW or 4-DW headers" module_name: "tlp_parser" ports: clk: direction: "input" width: "1" rst: direction: "inpu...
`timescale 1ns/1ps module tb_tlp_parser; reg clk, rst; reg [31:0] header_in; reg header_valid; reg [1:0] header_seq; wire [4:0] tlp_type; wire [9:0] length; wire [15:0] requester_id; wire [31:0] address; wire parse_done; tlp_parser uut ( .clk(clk), .rst(rst), ....
438_display_controller
bundles/L4_system/438_display_controller
8x8 LED Matrix Display Controller (Double-Buffered)
L4_system
L4
438
# Problem 438: 8x8 LED Matrix Display Controller (Double-Buffered) **Level**: 4 (System Design) **Category**: system ## Description Design an 8x8 LED matrix display controller with double buffering. The controller scans through rows to multiplex the display and supports writing pixel data to a back buffer that can b...
problem_id: "438" title: "8x8 LED Matrix Display Controller (Double-Buffered)" level: 4 category: "system" description: "8x8 LED matrix display controller with double-buffering, row scanning, and buffer swap" module_name: "led_matrix_ctrl" ports: clk: direction: "input" width: "1" rst: direction: "inpu...
`timescale 1ns/1ps module tb_led_matrix_ctrl; reg clk, rst; reg [2:0] row_addr; reg [7:0] col_data; reg write_en; reg swap_buf; wire [7:0] row_select; wire [7:0] col_drive; wire frame_done; led_matrix_ctrl uut ( .clk(clk), .rst(rst), .row_addr(row_addr), .col_data(...
439_keypad_scanner
bundles/L4_system/439_keypad_scanner
4x4 Keypad Matrix Scanner
L4_system
L4
439
# Problem 439: 4x4 Keypad Matrix Scanner **Level**: 4 (System Design) **Category**: system ## Description Design a 4x4 keypad matrix scanner that drives rows, reads columns, debounces key presses, and outputs a 4-bit key code. ## Module Interface ```verilog module keypad_scan_4x4( input clk, input rst, ...
problem_id: "439" title: "4x4 Keypad Matrix Scanner" level: 4 category: "system" description: "4x4 keypad matrix scanner with row scanning, column reading, debouncing, and key code output" module_name: "keypad_scan_4x4" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_keypad_scan_4x4; reg clk, rst; reg [3:0] col_in; wire [3:0] row_out; wire [3:0] key_code; wire key_valid; wire key_pressed; keypad_scan_4x4 uut ( .clk(clk), .rst(rst), .col_in(col_in), .row_out(row_out), .key_code(key_code), ...
440_sigma_delta_mod
bundles/L4_system/440_sigma_delta_mod
First-Order Sigma-Delta Modulator
L4_system
L4
440
# Problem 440: First-Order Sigma-Delta Modulator **Level**: 4 (System Design) **Category**: system ## Description Design a first-order sigma-delta modulator that converts an 8-bit unsigned input into a 1-bit output bitstream. The density of 1s in the output bitstream is proportional to the input value. ## Module In...
problem_id: "440" title: "First-Order Sigma-Delta Modulator" level: 4 category: "system" description: "First-order sigma-delta modulator with 8-bit input, 1-bit output bitstream, integrator, and quantizer" module_name: "sigma_delta_1st" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_sigma_delta_1st; reg clk, rst; reg [7:0] data_in; reg valid_in; wire bitstream_out; sigma_delta_1st uut ( .clk(clk), .rst(rst), .data_in(data_in), .valid_in(valid_in), .bitstream_out(bitstream_out) ); initial clk = 0; alway...
441_motor_pwm_ctrl
bundles/L4_system/441_motor_pwm_ctrl
DC Motor PWM Controller with Acceleration Ramp
L4_system
L4
441
# Problem 441: DC Motor PWM Controller with Acceleration Ramp **Level**: 4 (System Design) **Category**: system ## Description Design a DC motor PWM controller that ramps the speed up or down to match a target speed, preventing sudden changes. The controller generates a PWM output whose duty cycle is proportional to...
problem_id: "441" title: "DC Motor PWM Controller with Acceleration Ramp" level: 4 category: "system" description: "DC motor PWM controller with acceleration/deceleration ramp and configurable ramp rate" module_name: "motor_pwm_ctrl" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_motor_pwm_ctrl; reg clk, rst; reg [7:0] target_speed; reg [3:0] ramp_rate; reg enable; wire pwm_out; wire [7:0] current_speed; motor_pwm_ctrl uut ( .clk(clk), .rst(rst), .target_speed(target_speed), .ramp_rate(ramp_rate), .enabl...
442_reorder_buffer_4
bundles/L4_system/442_reorder_buffer_4
4-Entry Reorder Buffer
L4_system
L4
442
# Problem 442: 4-Entry Reorder Buffer **Level**: 4 (System Design) **Category**: processor ## Description Design a 4-entry reorder buffer (ROB) that supports out-of-order completion with in-order retirement. The ROB tracks instructions from issue to retirement, allowing results to be written back out of order while ...
problem_id: '442' title: 4-Entry Reorder Buffer level: 4 category: processor description: 4-entry reorder buffer for out-of-order execution with in-order retirement. module_name: rob_4entry ports: clk: direction: input width: 1 rst: direction: input width: 1 issue_en: direction: input widt...
`timescale 1ns/1ps module tb_rob_4entry; reg clk; reg rst; reg issue_en; reg [1:0] issue_tag; reg [2:0] issue_rd; reg [15:0] issue_value; reg complete_en; reg [1:0] complete_tag; reg [15:0] complete_value; wire retire_en; wire [2:0] retire_rd; wire [15:0] retire_value; ...
443_network_switch_2x2
bundles/L4_system/443_network_switch_2x2
2x2 Network Packet Switch
L4_system
L4
443
# Problem 443: 2x2 Network Packet Switch **Level**: 4 (System Design) **Category**: network ## Description Design a 2x2 packet switch with input queuing. Each input port has a 4-deep FIFO for store-and-forward packet switching. Packets arriving at each input port specify their destination port via the `dest` signal....
problem_id: '443' title: 2x2 Network Packet Switch level: 4 category: network description: 2x2 packet switch with input queuing and store-and-forward. module_name: switch_2x2 ports: clk: direction: input width: 1 rst: direction: input width: 1 p0_in_data: direction: input width: 8 p0_in_...
`timescale 1ns/1ps module tb_switch_2x2; reg clk, rst; reg [7:0] p0_in_data, p1_in_data; reg p0_in_valid, p1_in_valid; reg p0_in_dest, p1_in_dest; wire p0_in_ready, p1_in_ready; wire [7:0] p0_out_data, p1_out_data; wire p0_out_valid, p1_out_valid; switch_2x2 uut ( .clk(clk), ....
444_floating_point_comp
bundles/L4_system/444_floating_point_comp
IEEE-754 Half-Precision Floating-Point Comparator
L4_system
L4
444
# Problem 444: IEEE-754 Half-Precision Floating-Point Comparator **Level**: 4 (System Design) **Category**: arithmetic ## Description Design a combinational IEEE-754 half-precision (FP16) floating-point comparator. The module compares two 16-bit FP16 numbers and outputs comparison results, correctly handling special...
problem_id: '444' title: IEEE-754 Half-Precision Floating-Point Comparator level: 4 category: arithmetic description: IEEE-754 half-precision (FP16) floating-point comparator with NaN handling. module_name: fp16_compare ports: a: direction: input width: 16 b: direction: input width: 16 gt: dir...
`timescale 1ns/1ps module tb_fp16_compare; reg [15:0] a, b; wire gt, eq, lt, unordered; fp16_compare uut ( .a(a), .b(b), .gt(gt), .eq(eq), .lt(lt), .unordered(unordered) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; inpu...
445_prefetch_buffer
bundles/L4_system/445_prefetch_buffer
Instruction Prefetch Buffer
L4_system
L4
445
# Problem 445: Instruction Prefetch Buffer **Level**: 4 (System Design) **Category**: processor ## Description Design a 4-entry instruction prefetch buffer that fetches instructions sequentially from memory and provides them to the processor pipeline. It supports branch flushing to redirect the fetch stream. ## Mod...
problem_id: '445' title: Instruction Prefetch Buffer level: 4 category: processor description: 4-entry instruction prefetch buffer with sequential fetch and branch flush. module_name: prefetch_buf_4 ports: clk: direction: input width: 1 rst: direction: input width: 1 fetch_addr: direction: out...
`timescale 1ns/1ps module tb_prefetch_buf_4; reg clk, rst; wire [15:0] fetch_addr; reg branch_taken; reg [15:0] branch_target; wire [15:0] instr_out; wire instr_valid; wire [15:0] mem_addr; reg [15:0] mem_data; reg mem_valid; wire mem_req; prefetch_buf_4 uut ( .clk...
446_apb_gpio
bundles/L4_system/446_apb_gpio
APB GPIO Controller
L4_system
L4
446
# Problem 446: APB GPIO Controller **Level**: 4 (System Design) **Category**: peripheral ## Description Design an APB (Advanced Peripheral Bus) slave peripheral implementing an 8-bit GPIO controller with interrupt support. The controller provides data output, direction control, interrupt enable, and interrupt status...
problem_id: '446' title: APB GPIO Controller level: 4 category: peripheral description: APB peripheral 8-bit GPIO with interrupt support. module_name: apb_gpio ports: clk: direction: input width: 1 rst: direction: input width: 1 paddr: direction: input width: 4 pwdata: direction: inp...
`timescale 1ns/1ps module tb_apb_gpio; reg clk, rst; reg [3:0] paddr; reg [7:0] pwdata; reg pwrite, psel, penable; wire [7:0] prdata; wire pready; reg [7:0] gpio_in; wire [7:0] gpio_out; wire [7:0] gpio_oe; wire gpio_irq; apb_gpio uut ( .clk(clk), .rst(rst), ...
447_aes_key_expand
bundles/L4_system/447_aes_key_expand
AES-128 Key Expansion
L4_system
L4
447
# Problem 447: AES-128 Key Expansion **Level**: 4 (System Design) **Category**: cryptography ## Description Design an AES-128 key expansion module that generates 11 round keys (round 0 through round 10) from an initial 128-bit cipher key. The module produces one round key per clock cycle after being started. ## Mod...
problem_id: '447' title: AES-128 Key Expansion level: 4 category: cryptography description: AES-128 key expansion generating 11 round keys from initial 128-bit key. module_name: aes_key_expand ports: clk: direction: input width: 1 rst: direction: input width: 1 key_in: direction: input wid...
`timescale 1ns/1ps module tb_aes_key_expand; reg clk, rst; reg [127:0] key_in; reg start; wire [127:0] round_key; wire [3:0] round_num; wire key_valid; wire done; aes_key_expand uut ( .clk(clk), .rst(rst), .key_in(key_in), .start(start), .round_key(round_key), ...
448_digital_pll
bundles/L4_system/448_digital_pll
Digital Phase-Locked Loop
L4_system
L4
448
# Problem 448: Digital Phase-Locked Loop **Level**: 4 (System Design) **Category**: clock ## Description Design a digital PLL (DPLL) that locks its output clock to a reference clock. The DPLL consists of a phase detector, a digital loop filter, and a digitally-controlled oscillator (DCO). The system operates using a...
problem_id: '448' title: Digital Phase-Locked Loop level: 4 category: clock description: Digital PLL with phase detector, loop filter, and DCO. module_name: dpll ports: clk_ref: direction: input width: 1 rst: direction: input width: 1 clk_out: direction: output width: 1 lock_detect: ...
`timescale 1ns/1ps module tb_dpll; reg clk_ref, rst; wire clk_out; wire lock_detect; wire [7:0] freq_word; dpll uut ( .clk_ref(clk_ref), .rst(rst), .clk_out(clk_out), .lock_detect(lock_detect), .freq_word(freq_word) ); initial clk_ref = 0; alwa...
449_huffman_decoder
bundles/L4_system/449_huffman_decoder
Huffman Decoder
L4_system
L4
449
# Problem 449: Huffman Decoder **Level**: 4 (System Design) **Category**: codec ## Description Design a Huffman decoder that decodes variable-length codes from a serial bitstream using a predefined 8-symbol code table. The decoder processes one bit per clock cycle and outputs decoded symbols. ## Module Interface `...
problem_id: '449' title: Huffman Decoder level: 4 category: codec description: Simple Huffman decoder for 8-symbol predefined code table. module_name: huffman_dec ports: clk: direction: input width: 1 rst: direction: input width: 1 bit_in: direction: input width: 1 bit_valid: directi...
`timescale 1ns/1ps module tb_huffman_dec; reg clk, rst; reg bit_in, bit_valid; wire [7:0] symbol_out; wire symbol_valid; huffman_dec uut ( .clk(clk), .rst(rst), .bit_in(bit_in), .bit_valid(bit_valid), .symbol_out(symbol_out), .symbol_valid(symbol_valid) ); initial...
450_data_compressor
bundles/L4_system/450_data_compressor
Simple LZ77-Style Data Compressor
L4_system
L4
450
# Problem 450: Simple LZ77-Style Data Compressor **Level**: 4 (System Design) **Category**: compression ## Description Design a simple LZ77-style data compressor that searches a 16-byte sliding window for matches and emits either literal or match tokens as 16-bit compressed output. ## Module Interface ```verilog m...
problem_id: "450" title: "Simple LZ77-Style Data Compressor" level: 4 category: "compression" description: "LZ77-style data compressor with 16-byte sliding window, outputting match/literal tokens" module_name: "lz_compress" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1...
`timescale 1ns/1ps module tb_lz_compress; reg clk, rst; reg [7:0] data_in; reg valid_in; reg start; reg [7:0] length; wire [15:0] compressed_out; wire compressed_valid; wire done; lz_compress uut ( .clk(clk), .rst(rst), .data_in(data_in), .valid_in(...
451_peripheral_bus
bundles/L4_system/451_peripheral_bus
APB Bus Interconnect with 4 Peripherals
L4_system
L4
451
# Problem 451: APB Bus Interconnect with 4 Peripherals **Level**: 4 (System Design) **Category**: bus ## Description Design an APB (Advanced Peripheral Bus) interconnect that connects one master to 4 slave peripherals. The interconnect performs address decoding to select the appropriate slave and multiplexes respons...
problem_id: "451" title: "APB Bus Interconnect with 4 Peripherals" level: 4 category: "bus" description: "APB bus interconnect with address decoding and response multiplexing for 4 slave peripherals" module_name: "apb_interconnect_4" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_apb_interconnect_4; reg clk, rst; reg [15:0] master_addr; reg [7:0] master_wdata; reg master_write, master_sel, master_enable; wire [7:0] master_rdata; wire master_ready; apb_interconnect_4 uut ( .clk(clk), .rst(rst), .master_addr(mast...
452_crypto_sha256_round
bundles/L4_system/452_crypto_sha256_round
SHA-256 Compression Round
L4_system
L4
452
# Problem 452: SHA-256 Compression Round **Level**: 4 (System Design) **Category**: crypto ## Description Implement one round of the SHA-256 compression function as a purely combinational circuit. ## Module Interface ```verilog module sha256_round( input [31:0] a_in, b_in, c_in, d_in, input [31:0] e_in, ...
problem_id: "452" title: "SHA-256 Compression Round" level: 4 category: "crypto" description: "Single round of SHA-256 compression function (combinational)" module_name: "sha256_round" ports: a_in: direction: "input" width: "32" b_in: direction: "input" width: "32" c_in: direction: "input" ...
`timescale 1ns/1ps module tb_sha256_round; reg [31:0] a_in, b_in, c_in, d_in; reg [31:0] e_in, f_in, g_in, h_in; reg [31:0] w, k; wire [31:0] a_out, b_out, c_out, d_out; wire [31:0] e_out, f_out, g_out, h_out; sha256_round uut ( .a_in(a_in), .b_in(b_in), .c_in(c_in), .d_in(d_in), ...
453_video_line_buffer
bundles/L4_system/453_video_line_buffer
Triple Line Buffer for Video Processing
L4_system
L4
453
# Problem 453: Triple Line Buffer for Video Processing **Level**: 4 (System Design) **Category**: video ## Description Design a triple line buffer that stores 3 consecutive lines of 64 pixels each. This is a fundamental building block for video/image processing operations like convolution, edge detection, and filter...
problem_id: "453" title: "Triple Line Buffer for Video Processing" level: 4 category: "video" description: "Triple line buffer storing 3 consecutive lines of 64 pixels for video/image processing" module_name: "triple_line_buf" ports: clk: direction: "input" width: "1" rst: direction: "input" width:...
`timescale 1ns/1ps module tb_triple_line_buf; reg clk, rst; reg [7:0] pixel_in; reg pixel_valid; wire [7:0] line0_out, line1_out, line2_out; wire window_valid; wire [5:0] pixel_x; triple_line_buf uut ( .clk(clk), .rst(rst), .pixel_in(pixel_in), .pixel_valid...
454_ethernet_mac_tx
bundles/L4_system/454_ethernet_mac_tx
Simplified Ethernet MAC Transmitter
L4_system
L4
454
# Problem 454: Simplified Ethernet MAC Transmitter **Level**: 4 (System Design) **Category**: networking ## Description Design a simplified Ethernet MAC transmitter that takes payload bytes from a user interface and outputs a properly framed Ethernet packet on a GMII-like interface, including preamble, SFD, minimum-...
problem_id: "454" title: "Simplified Ethernet MAC Transmitter" level: 4 category: "networking" description: "Simplified Ethernet MAC transmitter with preamble, SFD, padding, and CRC-32 FCS generation" module_name: "eth_mac_tx" ports: clk: direction: "input" width: "1" rst: direction: "input" width:...
`timescale 1ns/1ps module tb_eth_mac_tx; reg clk, rst; reg [7:0] tx_data; reg tx_valid, tx_last; wire tx_ready; wire [7:0] gmii_txd; wire gmii_tx_en; eth_mac_tx uut ( .clk(clk), .rst(rst), .tx_data(tx_data), .tx_valid(tx_valid), .tx_last(tx_last), ...
455_debug_interface
bundles/L4_system/455_debug_interface
On-Chip Debug Interface (JTAG-like TAP)
L4_system
L4
455
# Problem 455: On-Chip Debug Interface (JTAG-like TAP) **Level**: 4 (System Design) **Category**: debug ## Description Design a JTAG-like Test Access Port (TAP) controller with an instruction register, bypass register, and a debug data scan chain for reading/writing debug registers. ## Module Interface ```verilog ...
problem_id: "455" title: "On-Chip Debug Interface (JTAG-like TAP)" level: 4 category: "debug" description: "JTAG-like TAP controller with instruction register, bypass, and debug data scan chain" module_name: "debug_tap" ports: tck: direction: "input" width: "1" tms: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_debug_tap; reg tck, tms, tdi, trst; wire tdo; reg clk, rst; wire [7:0] debug_addr; wire [31:0] debug_data_out; reg [31:0] debug_data_in; wire debug_we, debug_re; debug_tap uut ( .tck(tck), .tms(tms), .tdi(tdi), .tdo(tdo), .trst(trst), .clk...
456_memory_protection
bundles/L4_system/456_memory_protection
Memory Protection Unit (4 Regions)
L4_system
L4
456
# Problem 456: Memory Protection Unit (4 Regions) **Level**: 4 (System Design) **Category**: memory ## Description Design a Memory Protection Unit (MPU) with 4 configurable memory regions. Each region has a base address, size, and permission bits. The MPU checks memory access requests against all configured regions....
problem_id: "456" title: "Memory Protection Unit (4 Regions)" level: 4 category: "memory" description: "Memory protection unit with 4 configurable regions supporting base/size/permission checks" module_name: "mpu_4region" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_mpu_4region; reg clk, rst; reg [3:0] cfg_addr; reg [31:0] cfg_data; reg cfg_we; reg [15:0] check_addr; reg check_write, check_priv; wire access_ok, violation; mpu_4region uut ( .clk(clk), .rst(rst), .cfg_addr(cfg_addr), .cfg_data(cfg_data)...
457_systolic_array_2x2
bundles/L4_system/457_systolic_array_2x2
2x2 Systolic Array for Matrix Multiplication
L4_system
L4
457
# Problem 457: 2x2 Systolic Array for Matrix Multiplication **Level**: 4 (System Design) **Category**: dsp ## Description Design a 2x2 systolic array that computes matrix multiplication C = A * B, where A and B are 2x2 matrices with unsigned 8-bit elements, and C has unsigned 20-bit elements. ## Module Interface `...
problem_id: "457" title: "2x2 Systolic Array for Matrix Multiplication" level: 4 category: "dsp" description: "2x2 systolic array for matrix multiplication with 8-bit inputs and 20-bit accumulated results" module_name: "systolic_2x2" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_systolic_2x2; reg clk, rst, start; reg [7:0] a00, a01, a10, a11; reg [7:0] b00, b01, b10, b11; wire [19:0] c00, c01, c10, c11; wire done; systolic_2x2 uut ( .clk(clk), .rst(rst), .start(start), .a00(a00), .a01(a01), .a10(a10), .a11(a11), .b...
501_riscv_multicore_soc
bundles/L5_ultimate/501_riscv_multicore_soc
Dual-Core Out-of-Order RISC-V SoC with Cache Coherence and Virtual Memory
L5_ultimate
L5
501
# Problem 502: Dual-Core Out-of-Order RISC-V SoC with Cache Coherence ## 🔥 HELL MODE - Level 5++ This is the **HARDEST PROBLEM EVER CREATED** for a Verilog benchmark. **Difficulty**: ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ (15/10) **Estimated Time**: 200-400 hours for expert team **Expected Pass Rate**: - AI Models: **0%** (essentially ...
problem_id: "501" title: "Dual-Core Out-of-Order RISC-V SoC with Cache Coherence and Virtual Memory" level: 5 category: "ultimate_challenge" description: "Implement a dual-core SoC with 2-way superscalar out-of-order RISC-V cores, MESI cache coherence protocol, virtual memory (MMU with TLB), and shared L2 cache" modul...
`timescale 1ns / 1ps module tb_riscv_multicore_soc; reg clk, rst; wire mem_valid, mem_we; reg mem_ready; wire [31:0] mem_addr; wire [63:0] mem_wdata; reg [63:0] mem_rdata; wire [3:0] mem_burst_len; reg [7:0] external_irq; reg [1:0] timer_irq; wire [31:0] core0_pc, core1_pc; ...
502_risc_v_rv32i_core
bundles/L5_ultimate/502_risc_v_rv32i_core
Minimal RISC-V RV32I Processor Core
L5_ultimate
L5
502
# Problem 502: 5-Stage Pipelined RV32IM CPU **Level**: 5 (Ultimate Challenge) **Category**: cpu ## Description Design a **5-stage pipelined RISC-V RV32IM processor** supporting the full RV32I base integer instruction set plus the M (multiply/divide) extension. The pipeline must handle data hazards via forwarding, lo...
problem_id: "502" title: "Minimal RISC-V RV32I Processor Core" level: 5 category: "cpu" description: "Minimal single-cycle RISC-V RV32I core implementing ADD, SUB, AND, OR, XOR, SLT, ADDI, LW, SW, BEQ, BNE, JAL" module_name: "rv32i_core" ports: clk: direction: "input" width: "1" rst: direction: "input"...
`timescale 1ns/1ps module tb_rv32i_core; reg clk, rst; reg [31:0] instr_in, data_in; wire [31:0] pc, data_addr, data_out; wire mem_we, mem_re, halted; rv32i_core uut( .clk(clk), .rst(rst), .instr_in(instr_in), .data_in(data_in), .pc(pc), .data_addr(data_addr), .data_out(da...
503_soc_minimal
bundles/L5_ultimate/503_soc_minimal
Minimal SoC: 8-bit CPU + RAM + UART TX + Timer
L5_ultimate
L5
503
# Problem 503: Minimal SoC: 8-bit CPU + RAM + UART TX + Timer **Level**: 5 (Ultimate Challenge) **Category**: soc ## Description Design a minimal System-on-Chip (SoC) containing an 8-bit CPU, 256 bytes of RAM, a UART transmitter, and a timer with interrupt capability. The CPU executes programs from RAM. All submodul...
problem_id: "503" title: "Minimal SoC: 8-bit CPU + RAM + UART TX + Timer" level: 5 category: "soc" description: "Minimal System-on-Chip with 8-bit CPU, 256-byte RAM, UART transmitter, and timer with interrupt" module_name: "minimal_soc" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_minimal_soc; reg clk, rst; wire uart_tx; wire timer_irq; minimal_soc uut ( .clk(clk), .rst(rst), .uart_tx(uart_tx), .timer_irq(timer_irq) ); initial clk = 0; always #5 clk = ~clk; integer pass_count; integer fail_count...