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
299_hamming_7_4_enc
bundles/L3_module/299_hamming_7_4_enc
Hamming(7,4) Encoder
L3_module
L3
299
# Problem 299: Hamming(7,4) Encoder **Level**: 3 (Module Design) **Category**: encoding ## Description Design a combinational Hamming(7,4) encoder that takes 4 data bits and produces a 7-bit codeword with 3 parity bits for single-bit error correction. ## Module Interface ```verilog module hamming_7_4_enc( inpu...
problem_id: "299" title: "Hamming(7,4) Encoder" level: 3 category: "encoding" description: "Combinational Hamming(7,4) encoder generating 3 parity bits for 4 data bits" module_name: "hamming_7_4_enc" ports: data: direction: "input" width: "4" encoded: direction: "output" width: "7" testbench_file:...
`timescale 1ns/1ps module tb_hamming_7_4_enc; reg [3:0] data; wire [6:0] encoded; hamming_7_4_enc uut ( .data(data), .encoded(encoded) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; input [3:0] t_data; input [6:0]...
300_hamming_7_4_dec
bundles/L3_module/300_hamming_7_4_dec
Hamming(7,4) Decoder with Error Correction
L3_module
L3
300
# Problem 300: Hamming(7,4) Decoder with Error Correction **Level**: 3 (Module Design) **Category**: encoding ## Description Design a combinational Hamming(7,4) decoder that detects and corrects single-bit errors in a 7-bit received codeword and extracts the 4 data bits. ## Module Interface ```verilog module hammi...
problem_id: "300" title: "Hamming(7,4) Decoder with Error Correction" level: 3 category: "encoding" description: "Combinational Hamming(7,4) decoder with single-bit error correction" module_name: "hamming_7_4_dec" ports: received: direction: "input" width: "7" data: direction: "output" width: "4" ...
`timescale 1ns/1ps module tb_hamming_7_4_dec; reg [6:0] received; wire [3:0] data; wire error_detected; wire error_corrected; hamming_7_4_dec uut ( .received(received), .data(data), .error_detected(error_detected), .error_corrected(error_corrected) ); inte...
301_crossbar_4x4
bundles/L3_module/301_crossbar_4x4
4x4 Crossbar Switch
L3_module
L3
301
# Problem 301: 4x4 Crossbar Switch **Level**: 3 (Module Design) **Category**: interconnect ## Description Design a combinational 4x4 crossbar switch that can route any of 4 data inputs to any of 4 data outputs based on individual select signals. ## Module Interface ```verilog module crossbar_4x4( input [7:0] ...
problem_id: "301" title: "4x4 Crossbar Switch" level: 3 category: "interconnect" description: "4x4 crossbar switch routing any of 4 inputs to any of 4 outputs" module_name: "crossbar_4x4" ports: data_in0: direction: "input" width: "8" data_in1: direction: "input" width: "8" data_in2: directio...
`timescale 1ns/1ps module tb_crossbar_4x4; reg [7:0] data_in0, data_in1, data_in2, data_in3; reg [1:0] sel0, sel1, sel2, sel3; wire [7:0] data_out0, data_out1, data_out2, data_out3; crossbar_4x4 uut ( .data_in0(data_in0), .data_in1(data_in1), .data_in2(data_in2), .da...
302_round_robin_arb
bundles/L3_module/302_round_robin_arb
4-Input Round-Robin Arbiter
L3_module
L3
302
# Problem 302: 4-Input Round-Robin Arbiter **Level**: 3 (Module Design) **Category**: arbitration ## Description Design a 4-input round-robin arbiter. On each clock cycle, if there are active requests, the arbiter grants exactly one requester using a round-robin priority scheme. ## Module Interface ```verilog modu...
problem_id: "302" title: "4-Input Round-Robin Arbiter" level: 3 category: "arbitration" description: "4-input round-robin arbiter with clock and reset" module_name: "round_robin_arb" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" req: direction: "input" width...
`timescale 1ns/1ps module tb_round_robin_arb; reg clk; reg rst; reg [3:0] req; wire [3:0] grant; round_robin_arb uut ( .clk(clk), .rst(rst), .req(req), .grant(grant) ); integer pass_count = 0; integer fail_count = 0; integer test_num...
303_stack_8x8
bundles/L3_module/303_stack_8x8
8-Deep 8-Bit Stack with Push/Pop
L3_module
L3
303
# Problem 303: 8-Deep 8-Bit Stack with Push/Pop **Level**: 3 (Module Design) **Category**: memory ## Description Design an 8-deep, 8-bit wide stack (LIFO) with push and pop operations, along with full and empty status flags. ## Module Interface ```verilog module stack_8x8( input clk, input rs...
problem_id: "303" title: "8-Deep 8-Bit Stack with Push/Pop" level: 3 category: "memory" description: "8-deep 8-bit stack with push, pop, full, and empty signals" module_name: "stack_8x8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" push: direction: "input" ...
`timescale 1ns/1ps module tb_stack_8x8; reg clk; reg rst; reg push; reg pop; reg [7:0] data_in; wire [7:0] data_out; wire full; wire empty; stack_8x8 uut ( .clk(clk), .rst(rst), .push(push), .pop(pop), ...
304_bcd_adder_8bit
bundles/L3_module/304_bcd_adder_8bit
8-Bit BCD Adder
L3_module
L3
304
# Problem 304: 8-Bit BCD Adder **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a combinational 8-bit BCD (Binary-Coded Decimal) adder that adds two 2-digit BCD numbers with a carry-in and produces a 2-digit BCD sum with carry-out. ## Module Interface ```verilog module bcd_adder_8bit( ...
problem_id: "304" title: "8-Bit BCD Adder" level: 3 category: "arithmetic" description: "8-bit BCD adder for two 2-digit BCD numbers with carry" module_name: "bcd_adder_8bit" ports: a: direction: "input" width: "8" b: direction: "input" width: "8" cin: direction: "input" width: "1" sum:...
`timescale 1ns/1ps module tb_bcd_adder_8bit; reg [7:0] a, b; reg cin; wire [7:0] sum; wire cout; bcd_adder_8bit uut ( .a(a), .b(b), .cin(cin), .sum(sum), .cout(cout) ); integer pass_count = 0; integer fail_count = 0; integer t...
305_booth_mult_8x8
bundles/L3_module/305_booth_mult_8x8
8x8 Booth Multiplier (Combinational)
L3_module
L3
305
# Problem 305: 8x8 Booth Multiplier (Combinational) **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a combinational 8-bit by 8-bit signed multiplier using Booth's algorithm. The inputs are signed 8-bit numbers and the output is a signed 16-bit product. ## Module Interface ```verilog mod...
problem_id: "305" title: "8x8 Booth Multiplier (Combinational)" level: 3 category: "arithmetic" description: "8-bit by 8-bit signed Booth multiplier producing 16-bit signed product" module_name: "booth_mult_8x8" ports: a: direction: "input" width: "8" b: direction: "input" width: "8" product: ...
`timescale 1ns/1ps module tb_booth_mult_8x8; reg signed [7:0] a, b; wire signed [15:0] product; booth_mult_8x8 uut ( .a(a), .b(b), .product(product) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; input signed [7...
306_magnitude_comp_16
bundles/L3_module/306_magnitude_comp_16
16-Bit Magnitude Comparator
L3_module
L3
306
# Problem 306: 16-Bit Magnitude Comparator **Level**: 3 (Module Design) **Category**: comparison ## Description Design a 16-bit unsigned magnitude comparator that compares two 16-bit unsigned numbers and produces three mutually exclusive output signals indicating the relationship between them. ## Module Interface ...
problem_id: "306" title: "16-Bit Magnitude Comparator" level: 3 category: "comparison" description: "16-bit unsigned magnitude comparator with greater-than, equal, and less-than outputs" module_name: "mag_comp_16" ports: a: direction: "input" width: "16" b: direction: "input" width: "16" gt: ...
`timescale 1ns/1ps module tb_mag_comp_16; reg [15:0] a, b; wire gt, eq, lt; mag_comp_16 uut ( .a(a), .b(b), .gt(gt), .eq(eq), .lt(lt) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; input [1...
307_carry_lookahead_16
bundles/L3_module/307_carry_lookahead_16
16-Bit Carry-Lookahead Adder
L3_module
L3
307
# Problem 307: 16-Bit Carry-Lookahead Adder **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a 16-bit carry-lookahead adder (CLA) that computes the sum of two 16-bit unsigned numbers with a carry-in, producing a 16-bit sum and carry-out. ## Module Interface ```verilog module cla_16bit( ...
problem_id: "307" title: "16-Bit Carry-Lookahead Adder" level: 3 category: "arithmetic" description: "16-bit carry-lookahead adder with carry-in and carry-out" module_name: "cla_16bit" ports: a: direction: "input" width: "16" b: direction: "input" width: "16" cin: direction: "input" width...
`timescale 1ns/1ps module tb_cla_16bit; reg [15:0] a, b; reg cin; wire [15:0] sum; wire cout; cla_16bit uut ( .a(a), .b(b), .cin(cin), .sum(sum), .cout(cout) ); integer pass_count = 0; integer fail_count = 0; integer test_nu...
308_lfsr_prng_16
bundles/L3_module/308_lfsr_prng_16
16-bit LFSR Pseudo-Random Number Generator
L3_module
L3
308
# Problem 308: 16-bit LFSR Pseudo-Random Number Generator **Level**: 3 (Module Design) **Category**: lfsr ## Description Design a 16-bit Fibonacci LFSR (Linear Feedback Shift Register) pseudo-random number generator. The LFSR uses taps at bit positions 16, 15, 13, and 4 (1-indexed) to generate a maximal-length seque...
problem_id: "308" title: "16-bit LFSR Pseudo-Random Number Generator" level: 3 category: "lfsr" description: "16-bit Fibonacci LFSR pseudo-random number generator with taps at 16,15,13,4" module_name: "lfsr_prng_16" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" seed...
`timescale 1ns/1ps module tb_lfsr_prng_16; reg clk; reg rst; reg [15:0] seed; reg load_seed; wire [15:0] rand_out; lfsr_prng_16 uut ( .clk(clk), .rst(rst), .seed(seed), .load_seed(load_seed), .rand_out(rand_out) ); integer pass_count = 0; i...
309_serial_to_parallel
bundles/L3_module/309_serial_to_parallel
8-bit Serial to Parallel Converter
L3_module
L3
309
# Problem 309: 8-bit Serial to Parallel Converter **Level**: 3 (Module Design) **Category**: serial ## Description Design an 8-bit serial-to-parallel converter that collects serial input bits (MSB first) and outputs a complete parallel byte when all 8 bits have been received. ## Module Interface ```verilog module ...
problem_id: "309" title: "8-bit Serial to Parallel Converter" level: 3 category: "serial" description: "Converts serial input bits (MSB first) into 8-bit parallel output" module_name: "serial_to_parallel_8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" serial_in: ...
`timescale 1ns/1ps module tb_serial_to_parallel_8; reg clk; reg rst; reg serial_in; reg valid_in; wire [7:0] parallel_out; wire valid_out; serial_to_parallel_8 uut ( .clk(clk), .rst(rst), .serial_in(serial_in), .valid_in(valid_in), .parallel_out(par...
310_parallel_to_serial
bundles/L3_module/310_parallel_to_serial
8-bit Parallel to Serial Converter
L3_module
L3
310
# Problem 310: 8-bit Parallel to Serial Converter **Level**: 3 (Module Design) **Category**: serial ## Description Design an 8-bit parallel-to-serial converter that loads an 8-bit parallel value and shifts it out one bit at a time, MSB first. ## Module Interface ```verilog module parallel_to_serial_8( input cl...
problem_id: "310" title: "8-bit Parallel to Serial Converter" level: 3 category: "serial" description: "Converts 8-bit parallel input into serial output (MSB first)" module_name: "parallel_to_serial_8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" parallel_in: d...
`timescale 1ns/1ps module tb_parallel_to_serial_8; reg clk; reg rst; reg [7:0] parallel_in; reg load; wire serial_out; wire busy; parallel_to_serial_8 uut ( .clk(clk), .rst(rst), .parallel_in(parallel_in), .load(load), .serial_out(serial_out), ...
311_bit_reversal_8
bundles/L3_module/311_bit_reversal_8
8-bit Bit Reversal
L3_module
L3
311
# Problem 311: 8-bit Bit Reversal **Level**: 3 (Module Design) **Category**: combinational ## Description Design a purely combinational circuit that reverses the bit order of an 8-bit input. ## Module Interface ```verilog module bit_reversal_8( input [7:0] in, output [7:0] out ); ``` ## Specification The...
problem_id: "311" title: "8-bit Bit Reversal" level: 3 category: "combinational" description: "Pure combinational 8-bit bit order reversal" module_name: "bit_reversal_8" ports: in: direction: "input" width: "8" out: direction: "output" width: "8" testbench_file: "testbench.v" timeout_compile: 15 t...
`timescale 1ns/1ps module tb_bit_reversal_8; reg [7:0] in; wire [7:0] out; bit_reversal_8 uut ( .in(in), .out(out) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check; input [7:0] t_in; input [7:0] exp_out; inpu...
312_checksum_8
bundles/L3_module/312_checksum_8
8-bit Ones-Complement Checksum Accumulator
L3_module
L3
312
# Problem 312: 8-bit Ones-Complement Checksum Accumulator **Level**: 3 (Module Design) **Category**: checksum ## Description Design an 8-bit checksum accumulator that computes a running ones-complement sum of incoming data bytes. This is similar to the Internet checksum algorithm but operating on 8-bit values. ## M...
problem_id: "312" title: "8-bit Ones-Complement Checksum Accumulator" level: 3 category: "checksum" description: "Accumulates 8-bit data using ones-complement addition for checksum computation" module_name: "checksum_8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_checksum_8; reg clk; reg rst; reg [7:0] data_in; reg valid; wire [7:0] checksum; checksum_8 uut ( .clk(clk), .rst(rst), .data_in(data_in), .valid(valid), .checksum(checksum) ); integer pass_count = 0; integer fa...
313_scrambler_lfsr
bundles/L3_module/313_scrambler_lfsr
Data Scrambler using LFSR
L3_module
L3
313
# Problem 313: Data Scrambler using LFSR **Level**: 3 (Module Design) **Category**: lfsr ## Description Design a data scrambler that XORs 8-bit input data with an 8-bit LFSR-generated pseudo-random sequence. The LFSR uses the polynomial x^8 + x^6 + x^5 + x^4 + 1. ## Module Interface ```verilog module scrambler_lfs...
problem_id: "313" title: "Data Scrambler using LFSR" level: 3 category: "lfsr" description: "XOR-based data scrambler using 8-bit LFSR with polynomial x^8+x^6+x^5+x^4+1" module_name: "scrambler_lfsr" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" data_in: directi...
`timescale 1ns/1ps module tb_scrambler_lfsr; reg clk; reg rst; reg [7:0] data_in; reg valid; wire [7:0] data_out; scrambler_lfsr uut ( .clk(clk), .rst(rst), .data_in(data_in), .valid(valid), .data_out(data_out) ); integer pass_count = 0; in...
314_comparator_tree_8
bundles/L3_module/314_comparator_tree_8
8-input 8-bit Comparator Tree Minimum Finder
L3_module
L3
314
# Problem 314: 8-input 8-bit Comparator Tree Minimum Finder **Level**: 3 (Module Design) **Category**: comparator ## Description Design a purely combinational circuit that finds the minimum value among 8 unsigned 8-bit inputs and reports both the minimum value and the index of the input that holds it. ## Module Int...
problem_id: "314" title: "8-input 8-bit Comparator Tree Minimum Finder" level: 3 category: "comparator" description: "Combinational comparator tree that finds the minimum value and its index among 8 inputs" module_name: "comp_tree_min8" ports: in0: direction: "input" width: "8" in1: direction: "input" ...
`timescale 1ns/1ps module tb_comp_tree_min8; reg [7:0] in0, in1, in2, in3, in4, in5, in6, in7; wire [7:0] min_val; wire [2:0] min_idx; comp_tree_min8 uut ( .in0(in0), .in1(in1), .in2(in2), .in3(in3), .in4(in4), .in5(in5), .in6(in6), .in7(in7), .min_val(min_val), .min_i...
315_wallace_tree_8x8
bundles/L3_module/315_wallace_tree_8x8
8x8 Unsigned Wallace Tree Multiplier
L3_module
L3
315
# Problem 315: 8x8 Unsigned Wallace Tree Multiplier **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design an 8-bit by 8-bit unsigned combinational multiplier using the Wallace tree architecture. The Wallace tree reduces the partial products using a tree of carry-save adders (CSAs) to minimize t...
problem_id: "315" title: "8x8 Unsigned Wallace Tree Multiplier" level: 3 category: "arithmetic" description: "8x8 unsigned Wallace tree multiplier using partial products and carry-save adder tree" module_name: "wallace_tree_8x8" ports: a: direction: "input" width: "8" b: direction: "input" width: "...
`timescale 1ns/1ps module tb_wallace_tree_8x8; reg [7:0] a; reg [7:0] b; wire [15:0] product; wallace_tree_8x8 uut ( .a(a), .b(b), .product(product) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; integer i, j; reg [15:0] exp...
316_cordic_atan
bundles/L3_module/316_cordic_atan
CORDIC Arctangent Calculator
L3_module
L3
316
# Problem 316: CORDIC Arctangent Calculator **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a CORDIC (COordinate Rotation Digital Computer) based arctangent calculator that computes `atan2(y, x)` using the vectoring mode. The module performs 8 iterations of the CORDIC algorithm to converg...
problem_id: "316" title: "CORDIC Arctangent Calculator" level: 3 category: "arithmetic" description: "CORDIC-based arctangent calculator with 8 iterations computing atan2(y,x) in fixed-point" module_name: "cordic_atan" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" s...
`timescale 1ns/1ps module tb_cordic_atan; reg clk; reg rst; reg start; reg signed [15:0] x_in; reg signed [15:0] y_in; wire signed [15:0] angle_out; wire done; cordic_atan uut ( .clk(clk), .rst(rst), .start(start), .x_in(x_in), .y_in(y_in), ...
317_fifo_async_gray
bundles/L3_module/317_fifo_async_gray
Asynchronous FIFO with Gray Code Pointers
L3_module
L3
317
# Problem 317: Asynchronous FIFO with Gray Code Pointers **Level**: 3 (Module Design) **Category**: memory ## Description Design an asynchronous FIFO (First-In, First-Out) buffer that operates between two independent clock domains. The FIFO uses Gray code pointers for safe clock domain crossing. ## Module Interface...
problem_id: "317" title: "Asynchronous FIFO with Gray Code Pointers" level: 3 category: "memory" description: "Asynchronous FIFO with gray code pointer synchronization, 8 entries of 8 bits" module_name: "async_fifo_gray_8x8" ports: wr_clk: direction: "input" width: "1" rd_clk: direction: "input" wi...
`timescale 1ns/1ps module tb_async_fifo_gray_8x8; reg wr_clk; reg rd_clk; reg rst; reg wr_en; reg rd_en; reg [7:0] wr_data; wire [7:0] rd_data; wire full; wire empty; async_fifo_gray_8x8 uut ( .wr_clk(wr_clk), .rd...
318_matrix_mult_2x2
bundles/L3_module/318_matrix_mult_2x2
2x2 Matrix Multiplier
L3_module
L3
318
# Problem 318: 2x2 Matrix Multiplier **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a sequential 2x2 signed matrix multiplier. The module computes C = A * B where A, B, and C are 2x2 matrices. Matrix elements are signed 8-bit inputs and signed 16-bit outputs. ## Module Interface ```ver...
problem_id: "318" title: "2x2 Matrix Multiplier" level: 3 category: "arithmetic" description: "Sequential 2x2 signed matrix multiplier" module_name: "matrix_mult_2x2" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: direction: "input" width: "1" a00: ...
`timescale 1ns/1ps module tb_matrix_mult_2x2; reg clk; reg rst; reg start; reg signed [7:0] a00, a01, a10, a11; reg signed [7:0] b00, b01, b10, b11; wire signed [15:0] c00, c01, c10, c11; wire done; matrix_mult_2x2 uut ( .clk(clk), .rst(rst), .start(start), ...
319_fixed_point_div
bundles/L3_module/319_fixed_point_div
16-bit Fixed-Point Divider (8.8 format)
L3_module
L3
319
# Problem 319: 16-bit Fixed-Point Divider (8.8 Format) **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a sequential 16-bit fixed-point divider that operates in 8.8 fixed-point format (8 integer bits, 8 fractional bits). The module computes `quotient = dividend / divisor` where all values ...
problem_id: "319" title: "16-bit Fixed-Point Divider (8.8 format)" level: 3 category: "arithmetic" description: "Sequential 16-bit fixed-point divider using non-restoring division algorithm" module_name: "fixed_point_div" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_fixed_point_div; reg clk; reg rst; reg start; reg [15:0] dividend; reg [15:0] divisor; wire [15:0] quotient; wire done; fixed_point_div uut ( .clk(clk), .rst(rst), .start(start), .dividend(dividend), .divisor(divisor...
320_dual_clock_sync
bundles/L3_module/320_dual_clock_sync
Dual-Clock Domain Synchronizer with Handshake
L3_module
L3
320
# Problem 320: Dual-Clock Domain Synchronizer with Handshake **Level**: 3 (Module Design) **Category**: synchronization ## Description Design a dual-clock domain data synchronizer that safely transfers 8-bit data from clock domain A to clock domain B using a handshake protocol. The design ensures no data corruption ...
problem_id: "320" title: "Dual-Clock Domain Synchronizer with Handshake" level: 3 category: "synchronization" description: "Dual-clock domain data transfer with 4-phase handshake protocol" module_name: "dual_clock_sync" ports: clk_a: direction: "input" width: "1" clk_b: direction: "input" width: "1...
`timescale 1ns/1ps module tb_dual_clock_sync; reg clk_a; reg clk_b; reg rst; reg [7:0] data_in; reg valid_in; wire [7:0] data_out; wire valid_out; dual_clock_sync uut ( .clk_a(clk_a), .clk_b(clk_b), .rst(rst), .data_in...
321_content_addressable_mem
bundles/L3_module/321_content_addressable_mem
4-Entry 8-bit Content Addressable Memory
L3_module
L3
321
# Problem 321: 4-Entry 8-bit Content Addressable Memory (CAM) **Level**: 3 (Module Design) **Category**: memory ## Description Design a 4-entry Content Addressable Memory (CAM) where each entry stores 8 bits. A CAM performs a parallel search across all entries to find the address of a matching value. ## Module Inte...
problem_id: "321" title: "4-Entry 8-bit Content Addressable Memory" level: 3 category: "memory" description: "4-entry 8-bit CAM with parallel search capability" module_name: "cam_4x8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" write_en: direction: "input" ...
`timescale 1ns/1ps module tb_cam_4x8; reg clk; reg rst; reg write_en; reg [1:0] write_addr; reg [7:0] write_data; reg [7:0] search_data; wire match; wire [1:0] match_addr; cam_4x8 uut ( .clk(clk), .rst(rst), .write_en(write_en)...
322_lru_cache_2way
bundles/L3_module/322_lru_cache_2way
2-Way Set-Associative Cache with LRU Replacement
L3_module
L3
322
# Problem 322: 2-Way Set-Associative Cache with LRU Replacement **Level**: 3 (Module Design) **Category**: memory ## Description Design a 2-way set-associative cache with LRU (Least Recently Used) replacement policy. The cache has 4 sets, each with 2 ways. The address is 8 bits: the lower 2 bits select the set, the ...
problem_id: "322" title: "2-Way Set-Associative Cache with LRU Replacement" level: 3 category: "memory" description: "2-way set-associative cache tag lookup with LRU replacement policy, 4 sets" module_name: "lru_cache_2way" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1...
`timescale 1ns/1ps module tb_lru_cache_2way; reg clk; reg rst; reg [7:0] addr; reg lookup; wire hit; wire [7:0] hit_data; reg write_en; reg [7:0] write_data; lru_cache_2way uut ( .clk(clk), .rst(rst), .addr(addr), ...
323_reed_solomon_enc
bundles/L3_module/323_reed_solomon_enc
Simplified Reed-Solomon Encoder GF(2^4)
L3_module
L3
323
# Problem 323: Simplified Reed-Solomon Encoder GF(2^4) **Level**: 3 (Module Design) **Category**: encoding ## Description Design a simplified Reed-Solomon encoder operating over GF(2^4). The encoder takes 4 data symbols (each 4 bits) and produces 2 parity symbols, creating a (6,4) RS code. ## Module Interface ```v...
problem_id: "323" title: "Simplified Reed-Solomon Encoder GF(2^4)" level: 3 category: "encoding" description: "Simplified Reed-Solomon encoder over GF(2^4), 4 data symbols + 2 parity symbols" module_name: "rs_encoder_4_2" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_rs_encoder_4_2; reg clk; reg rst; reg [3:0] data_in; reg data_valid; wire [3:0] parity_out; wire parity_valid; wire busy; rs_encoder_4_2 uut ( .clk(clk), .rst(rst), .data_in(data_in), .data_valid(data_valid), .parity...
324_floating_point_add
bundles/L3_module/324_floating_point_add
16-bit Floating-Point Adder
L3_module
L3
324
# Problem 324: 16-bit Floating-Point Adder **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a combinational 16-bit floating-point adder implementing a simplified subset of IEEE 754 half-precision arithmetic. ## Module Interface ```verilog module fp16_adder( input [15:0] a, input ...
problem_id: "324" title: "16-bit Floating-Point Adder" level: 3 category: "arithmetic" description: "Combinational 16-bit floating-point adder (IEEE 754 half-precision format)" module_name: "fp16_adder" ports: a: direction: "input" width: "16" b: direction: "input" width: "16" sum: direction:...
`timescale 1ns/1ps module tb_fp16_adder; reg [15:0] a; reg [15:0] b; wire [15:0] sum; fp16_adder uut ( .a(a), .b(b), .sum(sum) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; task check_fp16; input [15:0] in_a; inp...
325_traffic_light_fsm
bundles/L3_module/325_traffic_light_fsm
Traffic Light Controller FSM
L3_module
L3
325
# Problem 325: Traffic Light Controller FSM **Level**: 3 (Module Design) **Category**: fsm ## Description Design a traffic light controller FSM that manages two directions (North-South and East-West) with configurable green durations. ## Module Interface ```verilog module traffic_light_ctrl( input clk, inp...
problem_id: "325" title: "Traffic Light Controller FSM" level: 3 category: "fsm" description: "Traffic light controller with configurable green durations for two directions" module_name: "traffic_light_ctrl" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" ns_green_tim...
`timescale 1ns/1ps module tb_traffic_light_ctrl; reg clk; reg rst; reg [3:0] ns_green_time; reg [3:0] ew_green_time; wire [1:0] ns_light; wire [1:0] ew_light; traffic_light_ctrl uut ( .clk(clk), .rst(rst), .ns_green_time(ns_green_time), .ew_green_time(ew_gr...
326_spi_slave
bundles/L3_module/326_spi_slave
SPI Slave Interface
L3_module
L3
326
# Problem 326: SPI Slave Interface **Level**: 3 (Module Design) **Category**: communication ## Description Design an SPI slave interface that communicates using SPI Mode 0 (CPOL=0, CPHA=0). Data is 8 bits, MSB first. ## Module Interface ```verilog module spi_slave( input clk, input rst, input sclk, ...
problem_id: "326" title: "SPI Slave Interface" level: 3 category: "communication" description: "SPI slave interface with 8-bit data transfer" module_name: "spi_slave" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" sclk: direction: "input" width: "1" mosi: ...
`timescale 1ns/1ps module tb_spi_slave; reg clk; reg rst; reg sclk; reg mosi; reg ss_n; wire miso; wire [7:0] rx_data; wire rx_valid; reg [7:0] tx_data; reg tx_load; spi_slave uut ( .clk(clk), .rst(rst), .sclk(sclk), .mosi(mosi), .ss...
327_i2c_slave_addr
bundles/L3_module/327_i2c_slave_addr
I2C Slave Address Decoder
L3_module
L3
327
# Problem 327: I2C Slave Address Decoder **Level**: 3 (Module Design) **Category**: communication ## Description Design an I2C slave address decoder that detects start/stop conditions, receives the 7-bit address + R/W bit, and ACKs if the address matches. ## Module Interface ```verilog module i2c_slave_addr( i...
problem_id: "327" title: "I2C Slave Address Decoder" level: 3 category: "communication" description: "I2C slave address decoder with start/stop detection and address matching" module_name: "i2c_slave_addr" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" scl: direc...
`timescale 1ns/1ps module tb_i2c_slave_addr; reg clk; reg rst; reg scl; reg sda_in; wire sda_out; wire sda_oe; reg [6:0] slave_addr; wire addr_match; wire rw_bit; i2c_slave_addr uut ( .clk(clk), .rst(rst), .scl(scl), .sda_in(sda_in), .sd...
328_nco_phase_accum
bundles/L3_module/328_nco_phase_accum
Numerically Controlled Oscillator with Phase Accumulator
L3_module
L3
328
# Problem 328: Numerically Controlled Oscillator (NCO) **Level**: 3 (Module Design) **Category**: dsp ## Description Design a 16-bit Numerically Controlled Oscillator (NCO) with a phase accumulator and a sine wave lookup table. ## Module Interface ```verilog module nco_16bit( input clk, input rst, inpu...
problem_id: "328" title: "Numerically Controlled Oscillator with Phase Accumulator" level: 3 category: "dsp" description: "16-bit NCO with phase accumulator and sine lookup table" module_name: "nco_16bit" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" freq_word: ...
`timescale 1ns/1ps module tb_nco_16bit; reg clk; reg rst; reg [15:0] freq_word; wire [15:0] phase_out; wire [7:0] sine_out; nco_16bit uut ( .clk(clk), .rst(rst), .freq_word(freq_word), .phase_out(phase_out), .sine_out(sine_out) ); initial clk =...
329_pulse_width_measure
bundles/L3_module/329_pulse_width_measure
Pulse Width Measurement Unit
L3_module
L3
329
# Problem 329: Pulse Width Measurement Unit **Level**: 3 (Module Design) **Category**: measurement ## Description Design a pulse width measurement unit that measures the duration of high pulses on an input signal, reporting the width in clock cycles. ## Module Interface ```verilog module pulse_width_meas( inpu...
problem_id: "329" title: "Pulse Width Measurement Unit" level: 3 category: "measurement" description: "Measures high-pulse width of an input signal in clock cycles" module_name: "pulse_width_meas" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" signal_in: directio...
`timescale 1ns/1ps module tb_pulse_width_meas; reg clk; reg rst; reg signal_in; wire [15:0] pulse_width; wire pulse_valid; pulse_width_meas uut ( .clk(clk), .rst(rst), .signal_in(signal_in), .pulse_width(pulse_width), .pulse_valid(pulse_valid) ); ...
330_median_filter_5
bundles/L3_module/330_median_filter_5
5-Input 8-Bit Median Filter
L3_module
L3
330
# Problem 330: 5-Input 8-Bit Median Filter **Level**: 3 (Module Design) **Category**: dsp ## Description Design a combinational 5-input 8-bit median filter. Given 5 unsigned 8-bit inputs, the module outputs the median (middle) value. ## Module Interface ```verilog module median_filter_5( input [7:0] in0, i...
problem_id: "330" title: "5-Input 8-Bit Median Filter" level: 3 category: "dsp" description: "Combinational 5-input 8-bit median filter using sorting network" module_name: "median_filter_5" ports: in0: direction: "input" width: "8" in1: direction: "input" width: "8" in2: direction: "input" ...
`timescale 1ns/1ps module tb_median_filter_5; reg [7:0] in0, in1, in2, in3, in4; wire [7:0] median; median_filter_5 uut ( .in0(in0), .in1(in1), .in2(in2), .in3(in3), .in4(in4), .median(median) ); integer pass_count = 0; integer fail_count = 0; ...
331_ring_buffer_16x8
bundles/L3_module/331_ring_buffer_16x8
16-deep 8-bit Ring Buffer
L3_module
L3
331
# Problem 331: 16-deep 8-bit Ring Buffer **Level**: 3 (Module Design) **Category**: memory ## Description Design a 16-entry, 8-bit wide ring buffer (circular FIFO). The buffer supports simultaneous read and write operations and tracks the number of stored elements. ## Module Interface ```verilog module ring_buffer...
problem_id: "331" title: "16-deep 8-bit Ring Buffer" level: 3 category: "memory" description: "16-entry 8-bit ring buffer (circular FIFO) with full/empty flags and count" module_name: "ring_buffer_16x8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" write_en: dir...
`timescale 1ns/1ps module tb_ring_buffer_16x8; reg clk; reg rst; reg write_en; reg read_en; reg [7:0] data_in; wire [7:0] data_out; wire [4:0] count; wire full; wire empty; ring_buffer_16x8 uut ( .clk(clk), .rst(rst), .write_en(write_en), .read_...
332_priority_arbiter_8
bundles/L3_module/332_priority_arbiter_8
8-Input Fixed-Priority Arbiter with Request Masking
L3_module
L3
332
# Problem 332: 8-Input Fixed-Priority Arbiter with Request Masking **Level**: 3 (Module Design) **Category**: arbitration ## Description Design an 8-input fixed-priority arbiter with request masking. The arbiter grants access to the highest-priority active (unmasked) requestor. Priority is fixed with bit 0 having th...
problem_id: "332" title: "8-Input Fixed-Priority Arbiter with Request Masking" level: 3 category: "arbitration" description: "8-input fixed-priority arbiter with per-request masking" module_name: "priority_arb_8" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" req: ...
`timescale 1ns/1ps module tb_priority_arb_8; reg clk; reg rst; reg [7:0] req; reg [7:0] mask; wire [7:0] grant; wire grant_valid; priority_arb_8 uut ( .clk(clk), .rst(rst), .req(req), .mask(mask), .grant(grant), .grant_valid(grant_valid) ...
333_crc32_byte
bundles/L3_module/333_crc32_byte
CRC-32 Byte-at-a-time Calculator
L3_module
L3
333
# Problem 333: CRC-32 Byte-at-a-time Calculator **Level**: 3 (Module Design) **Category**: error_detection ## Description Design a CRC-32 calculator that processes one byte at a time. It uses the standard Ethernet polynomial (0x04C11DB7) and follows the standard Ethernet CRC-32 convention with bit reflection and fin...
problem_id: "333" title: "CRC-32 Byte-at-a-time Calculator" level: 3 category: "error_detection" description: "CRC-32 (Ethernet polynomial 0x04C11DB7) byte-at-a-time calculator" module_name: "crc32_byte" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" data_in: dir...
`timescale 1ns/1ps module tb_crc32_byte; reg clk; reg rst; reg [7:0] data_in; reg data_valid; reg init; wire [31:0] crc_out; crc32_byte uut ( .clk(clk), .rst(rst), .data_in(data_in), .data_valid(data_valid), .init(init), .crc_out(crc_out) ...
334_aes_sbox
bundles/L3_module/334_aes_sbox
AES SubBytes S-Box Lookup
L3_module
L3
334
# Problem 334: AES SubBytes S-Box Lookup **Level**: 3 (Module Design) **Category**: cryptography ## Description Design a combinational AES SubBytes S-Box lookup module. Given an 8-bit input byte, output the corresponding S-Box substitution value as defined by the AES (Rijndael) standard (FIPS 197). ## Module Interf...
problem_id: "334" title: "AES SubBytes S-Box Lookup" level: 3 category: "cryptography" description: "AES SubBytes S-Box combinational lookup table (single byte)" module_name: "aes_sbox" ports: data_in: direction: "input" width: "8" data_out: direction: "output" width: "8" testbench_file: "testbenc...
`timescale 1ns/1ps module tb_aes_sbox; reg [7:0] data_in; wire [7:0] data_out; aes_sbox uut ( .data_in(data_in), .data_out(data_out) ); integer pass_count = 0; integer fail_count = 0; integer test_num = 0; integer i; // Full AES S-Box reference stored in a flat a...
335_signed_divider_8bit
bundles/L3_module/335_signed_divider_8bit
8-bit Signed Sequential Divider
L3_module
L3
335
# Problem 335: 8-bit Signed Sequential Divider **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design an 8-bit signed sequential divider that computes quotient and remainder using a multi-cycle restoring division algorithm. The divider handles signed operands and detects divide-by-zero. ## Modu...
problem_id: "335" title: "8-bit Signed Sequential Divider" level: 3 category: "arithmetic" description: "8-bit signed sequential divider with quotient, remainder, and divide-by-zero detection" module_name: "signed_div_8bit" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1...
`timescale 1ns/1ps module tb_signed_div_8bit; reg clk; reg rst; reg start; reg signed [7:0] dividend; reg signed [7:0] divisor; wire signed [7:0] quotient; wire signed [7:0] remainder; wire done; wire div_by_zero; signed_div_8bit uut ( .clk(clk), .rst(rst), ...
336_dpram_byte_enable
bundles/L3_module/336_dpram_byte_enable
Dual-Port RAM 64x32 with Byte Enables
L3_module
L3
336
# Problem 336: Dual-Port RAM 64x32 with Byte Enables **Level**: 3 (Module Design) **Category**: memory ## Description Design a true dual-port RAM with 64 entries of 32 bits each. Each port has independent address, data, write enable, and byte enable signals. ## Module Interface ```verilog module dpram_64x32_be( ...
problem_id: "336" title: "Dual-Port RAM 64x32 with Byte Enables" level: 3 category: "memory" description: "Dual-port RAM 64x32 with per-byte write enables on both ports" module_name: "dpram_64x32_be" ports: clk: direction: "input" width: "1" addr_a: direction: "input" width: "6" addr_b: direc...
`timescale 1ns/1ps module tb_dpram_64x32_be; reg clk; reg [5:0] addr_a, addr_b; reg [31:0] data_in_a, data_in_b; reg we_a, we_b; reg [3:0] be_a, be_b; wire [31:0] data_out_a, data_out_b; dpram_64x32_be uut ( .clk(clk), .addr_a(addr_a), .addr_b(addr_b), .dat...
337_fir_filter_8tap
bundles/L3_module/337_fir_filter_8tap
8-tap FIR Filter
L3_module
L3
337
# Problem 337: 8-tap FIR Filter **Level**: 3 (Module Design) **Category**: dsp ## Description Design an 8-tap FIR (Finite Impulse Response) filter with signed 8-bit input data and signed 8-bit coefficients. The coefficients are loadable through a separate write interface. ## Module Interface ```verilog module fir_...
problem_id: "337" title: "8-tap FIR Filter" level: 3 category: "dsp" description: "8-tap FIR filter with signed 8-bit data and coefficients, loadable coefficients" module_name: "fir_8tap" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" data_in: direction: "input" ...
`timescale 1ns/1ps module tb_fir_8tap; reg clk; reg rst; reg signed [7:0] data_in; reg data_valid; reg signed [7:0] coeff_in; reg [2:0] coeff_addr; reg coeff_we; wire signed [18:0] data_out; wire out_valid; fir_8tap uut ( .clk(clk), .rst(rst), .data_in(...
338_uart_fifo_tx
bundles/L3_module/338_uart_fifo_tx
UART Transmitter with 8-deep TX FIFO
L3_module
L3
338
# Problem 338: UART Transmitter with 8-deep TX FIFO **Level**: 3 (Module Design) **Category**: communication ## Description Design a UART transmitter with an integrated 8-deep FIFO buffer. The transmitter sends data in standard UART format (1 start bit, 8 data bits LSB first, 1 stop bit) at a configurable baud rate....
problem_id: "338" title: "UART Transmitter with 8-deep TX FIFO" level: 3 category: "communication" description: "UART transmitter with 8-deep FIFO, configurable baud rate divisor" module_name: "uart_fifo_tx" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" tx_data: ...
`timescale 1ns/1ps module tb_uart_fifo_tx; reg clk; reg rst; reg [7:0] tx_data; reg tx_write; reg [15:0] baud_div; wire tx_out; wire tx_fifo_full; wire tx_fifo_empty; uart_fifo_tx uut ( .clk(clk), .rst(rst), .tx_data(tx_data), .tx_write(tx_write), ...
339_sort_network_4x8
bundles/L3_module/339_sort_network_4x8
4-Input 8-bit Sorting Network
L3_module
L3
339
# Problem 339: 4-Input 8-bit Sorting Network **Level**: 3 (Module Design) **Category**: combinational ## Description Design a combinational sorting network that sorts four 8-bit unsigned inputs in ascending order. The network uses compare-and-swap elements to sort the inputs without any clock. ## Module Interface ...
problem_id: "339" title: "4-Input 8-bit Sorting Network" level: 3 category: "combinational" description: "Combinational sorting network for four 8-bit unsigned inputs" module_name: "sort_network_4x8" ports: in0: direction: "input" width: "8" in1: direction: "input" width: "8" in2: direction: ...
`timescale 1ns/1ps module tb_sort_network_4x8; reg [7:0] in0, in1, in2, in3; wire [7:0] out0, out1, out2, out3; sort_network_4x8 uut ( .in0(in0), .in1(in1), .in2(in2), .in3(in3), .out0(out0), .out1(out1), .out2(out2), .out3(out3) ); integer pass_count = 0; integer fail_count...
340_dds_waveform
bundles/L3_module/340_dds_waveform
Direct Digital Synthesis Waveform Generator
L3_module
L3
340
# Problem 340: Direct Digital Synthesis Waveform Generator **Level**: 3 (Module Design) **Category**: dsp ## Description Design a Direct Digital Synthesis (DDS) waveform generator that produces sine (approximation), square, and sawtooth waveforms. The output frequency is controlled by a frequency tuning word. ## Mo...
problem_id: "340" title: "Direct Digital Synthesis Waveform Generator" level: 3 category: "dsp" description: "DDS waveform generator producing sine, square, and sawtooth waves" module_name: "dds_waveform" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" freq_word: ...
`timescale 1ns/1ps module tb_dds_waveform; reg clk; reg rst; reg [15:0] freq_word; reg [1:0] wave_sel; wire [7:0] wave_out; dds_waveform uut ( .clk(clk), .rst(rst), .freq_word(freq_word), .wave_sel(wave_sel), .wave_out(wave_out) ); ...
341_iir_filter_1st
bundles/L3_module/341_iir_filter_1st
First-Order IIR Filter
L3_module
L3
341
# Problem 341: First-Order IIR Filter **Level**: 3 (Module Design) **Category**: dsp ## Description Design a first-order IIR (Infinite Impulse Response) digital filter implementing the difference equation: y[n] = a * x[n] + b * y[n-1] where all values are signed 8-bit, and coefficients are in Q7 fixed-point fo...
problem_id: "341" title: "First-Order IIR Filter" level: 3 category: "dsp" description: "First-order IIR filter with signed coefficients in Q7 format" module_name: "iir_1st_order" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" x_in: direction: "input" width: ...
`timescale 1ns/1ps module tb_iir_1st_order; reg clk; reg rst; reg signed [7:0] x_in; reg signed [7:0] a_coeff; reg signed [7:0] b_coeff; reg data_valid; wire signed [7:0] y_out; wire out_valid; iir_1st_order uut ( .clk(clk), ...
342_gpio_controller
bundles/L3_module/342_gpio_controller
8-bit GPIO Controller
L3_module
L3
342
# Problem 342: 8-bit GPIO Controller **Level**: 3 (Module Design) **Category**: peripheral ## Description Design an 8-bit GPIO (General Purpose Input/Output) controller with a direction register, data output register, input read, and interrupt status (edge detection on inputs). ## Module Interface ```verilog modul...
problem_id: "342" title: "8-bit GPIO Controller" level: 3 category: "peripheral" description: "8-bit GPIO controller with direction register and interrupt status" module_name: "gpio_ctrl_8bit" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" addr: direction: "input...
`timescale 1ns/1ps module tb_gpio_ctrl_8bit; reg clk; reg rst; reg [1:0] addr; reg [7:0] write_data; reg write_en; wire [7:0] read_data; reg [7:0] gpio_in; wire [7:0] gpio_out; wire [7:0] gpio_oe; gpio_ctrl_8bit uut ( .clk(clk), .rst(rst...
343_sram_controller
bundles/L3_module/343_sram_controller
Simple SRAM Controller with Burst Support
L3_module
L3
343
# Problem 343: Simple SRAM Controller with Burst Support **Level**: 3 (Module Design) **Category**: memory ## Description Design a simple SRAM controller that interfaces with an internal 256-byte memory array. It supports single and burst read/write operations with a simple handshake protocol. ## Module Interface ...
problem_id: "343" title: "Simple SRAM Controller with Burst Support" level: 3 category: "memory" description: "SRAM controller with single and burst read/write operations" module_name: "sram_ctrl" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" req: direction: "in...
`timescale 1ns/1ps module tb_sram_ctrl; reg clk; reg rst; reg req; reg rw; reg [15:0] addr; reg [7:0] wdata; reg [1:0] burst_len; wire [7:0] rdata; wire rdata_valid; wire ready; sram_ctrl uut ( .clk(clk), .rst(rst)...
344_error_correct_sec
bundles/L3_module/344_error_correct_sec
Single Error Correction Hamming(12,8)
L3_module
L3
344
# Problem 344: Single Error Correction Hamming(12,8) **Level**: 3 (Module Design) **Category**: coding ## Description Design a combinational Hamming(12,8) encoder and decoder that provides Single Error Correction (SEC). The module has separate encode and decode paths that operate independently. ## Module Interface ...
problem_id: "344" title: "Single Error Correction Hamming(12,8)" level: 3 category: "coding" description: "Combinational Hamming(12,8) encoder and decoder with SEC" module_name: "sec_hamming_12_8" ports: data_in: direction: "input" width: "8" encoded: direction: "output" width: "12" encoded_in: ...
`timescale 1ns/1ps module tb_sec_hamming_12_8; reg [7:0] data_in; wire [11:0] encoded; reg [11:0] encoded_in; wire [7:0] decoded; wire error_detected; wire error_corrected; sec_hamming_12_8 uut ( .data_in(data_in), .encoded(encoded), .encoded_in(e...
345_instruction_decoder
bundles/L3_module/345_instruction_decoder
16-bit RISC Instruction Decoder
L3_module
L3
345
# Problem 345: 16-bit RISC Instruction Decoder **Level**: 3 (Module Design) **Category**: processor ## Description Design a combinational instruction decoder for a simple 16-bit RISC instruction set architecture. The decoder extracts fields from the instruction word and generates control signals. ## Module Interfac...
problem_id: "345" title: "16-bit RISC Instruction Decoder" level: 3 category: "processor" description: "Combinational instruction decoder for a simple 16-bit RISC ISA" module_name: "instr_decoder_16" ports: instr: direction: "input" width: "16" opcode: direction: "output" width: "4" rd: direc...
`timescale 1ns/1ps module tb_instr_decoder_16; reg [15:0] instr; wire [3:0] opcode; wire [2:0] rd; wire [2:0] rs1; wire [2:0] rs2; wire [5:0] imm; wire reg_write; wire mem_read; wire mem_write; wire branch; wire [2:0] alu_op; instr_de...
346_multiply_accumulate
bundles/L3_module/346_multiply_accumulate
16-bit Multiply-Accumulate Unit
L3_module
L3
346
# Problem 346: 16-bit Multiply-Accumulate Unit **Level**: 3 (Module Design) **Category**: arithmetic ## Description Design a signed 16-bit multiply-accumulate (MAC) unit with a 40-bit accumulator. The MAC unit computes `result = result + a * b` on each valid input. ## Module Interface ```verilog module mac_16bit( ...
problem_id: '346' title: 16-bit Multiply-Accumulate Unit category: arithmetic description: Signed 16-bit multiply-accumulate with 40-bit accumulator module_name: mac_16bit ports: clk: direction: input width: '1' rst: direction: input width: '1' a: direction: input width: '16' b: dire...
`timescale 1ns/1ps module tb_mac_16bit; reg clk; reg rst; reg signed [15:0] a; reg signed [15:0] b; reg valid_in; reg clear_acc; wire signed [39:0] result; wire valid_out; mac_16bit uut ( .clk(clk), .rst(rst),...
301_riscv_single_cycle
bundles/L4_system/301_riscv_single_cycle
Single Cycle RISC-V CPU (RV32I subset)
L4_system
L4
301
# Problem 301: Single Cycle RISC-V CPU (RV32I subset) ## Description Single-cycle RISC-V CPU supporting ADD, SUB, AND, OR, XOR, SLT, ADDI, LW, SW, BEQ, JAL. ## Module Interface ```verilog module riscv_single_cycle( input clk,\n input rst,\n input [31:0] inst,\n output [31:0] pc,\n output [31:0] mem_...
problem_id: '301' title: Single Cycle RISC-V CPU (RV32I subset) level: 4 category: cpu description: Single-cycle RISC-V CPU supporting ADD, SUB, AND, OR, XOR, SLT, ADDI, LW, SW, BEQ, JAL. module_name: riscv_single_cycle ports: clk: direction: input width: 1 rst: direction: input width: 1 inst: ...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
301_simple_cpu
bundles/L4_system/301_simple_cpu
Simple Single-Cycle CPU
L4_system
L4
301
# Simple Single-Cycle CPU **Level**: 4 (System Design) **Category**: cpu ## Problem Description Single-cycle CPU supporting 8 basic RISC instructions: ADD, SUB, AND, OR, LOAD, STORE, BRANCH, JUMP ## Requirements - Complete system-level design - Synthesizable implementation - Performance optimization - Resource eff...
problem_id: '301' title: Simple Single-Cycle CPU level: 4 category: cpu description: 'Single-cycle CPU supporting 8 basic RISC instructions: ADD, SUB, AND, OR, LOAD, STORE, BRANCH, JUMP' module_name: simple_cpu ports: clk: direction: input width: 1 rst: direction: input width: 1 instr: direc...
module tb_simple_cpu; reg clk, rst; reg [15:0] instr; reg [7:0] mem_data_in; wire [7:0] pc, mem_addr, mem_data_out; wire mem_we; simple_cpu uut(.clk(clk), .rst(rst), .instr(instr), .mem_data_in(mem_data_in), .pc(pc), .mem_addr(mem_addr), .mem_data_out(mem_data_out), .mem_we(m...
302_cpu_3stage
bundles/L4_system/302_cpu_3stage
3-Stage Pipeline CPU
L4_system
L4
302
# Problem 302: 3-Stage Pipeline CPU ## Description 3-stage pipeline CPU (Fetch-Decode-Execute) without hazard handling. ## Module Interface ```verilog module cpu_3stage( input clk,\n input rst,\n input [31:0] inst,\n output [31:0] pc ); // Your implementation here endmodule ``` ## Specification 3...
problem_id: '302' title: 3-Stage Pipeline CPU level: 4 category: cpu description: 3-stage pipeline CPU (Fetch-Decode-Execute) without hazard handling. module_name: cpu_3stage ports: clk: direction: input width: 1 rst: direction: input width: 1 inst: direction: input width: 32 pc: dir...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
303_cpu_5stage_forward
bundles/L4_system/303_cpu_5stage_forward
5-Stage Pipeline with Forwarding
L4_system
L4
303
# Problem 303: 5-Stage Pipeline with Forwarding ## Description 5-stage pipeline (IF-ID-EX-MEM-WB) with data forwarding. ## Module Interface ```verilog module cpu_5stage_forward( input clk,\n input rst,\n input [31:0] inst,\n output [31:0] pc,\n output [31:0] mem_addr,\n output [31:0] mem_wdata,\n...
problem_id: '303' title: 5-Stage Pipeline with Forwarding level: 4 category: cpu description: 5-stage pipeline (IF-ID-EX-MEM-WB) with data forwarding. module_name: cpu_5stage_forward ports: clk: direction: input width: 1 rst: direction: input width: 1 inst: direction: input width: 32 pc:...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
304_cpu_hazard
bundles/L4_system/304_cpu_hazard
Pipeline with Hazard Detection
L4_system
L4
304
# Problem 304: Pipeline with Hazard Detection ## Description 5-stage pipeline with hazard detection and stall logic. ## Module Interface ```verilog module cpu_hazard( input clk,\n input rst,\n input [31:0] inst,\n output [31:0] pc,\n output stall ); // Your implementation here endmodule ``` ## ...
problem_id: '304' title: Pipeline with Hazard Detection level: 4 category: cpu description: 5-stage pipeline with hazard detection and stall logic. module_name: cpu_hazard ports: clk: direction: input width: 1 rst: direction: input width: 1 inst: direction: input width: 32 pc: direct...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
304_pipeline_cpu
bundles/L4_system/304_pipeline_cpu
5-Stage Pipeline CPU
L4_system
L4
304
# 5-Stage Pipeline CPU **Level**: 4 (System Design) **Category**: cpu ## Problem Description 5-stage pipeline CPU (IF, ID, EX, MEM, WB) without hazard handling ## Requirements - Complete system-level design - Synthesizable implementation - Performance optimization - Resource efficiency ## Testing System-level te...
problem_id: '304' title: 5-Stage Pipeline CPU level: 4 category: cpu description: 5-stage pipeline CPU (IF, ID, EX, MEM, WB) without hazard handling module_name: pipeline_cpu ports: clk: direction: input width: 1 rst: direction: input width: 1 instr_in: direction: input width: 32 mem_dat...
module tb_pipeline_cpu; reg clk, rst; reg [31:0] instr_in, mem_data_in; wire [31:0] pc, mem_addr, mem_data_out; wire mem_we; pipeline_cpu uut(.clk(clk), .rst(rst), .instr_in(instr_in), .mem_data_in(mem_data_in), .pc(pc), .mem_addr(mem_addr), .mem_data_out(mem_data_out), .mem_we...
306_cache_direct_mapped
bundles/L4_system/306_cache_direct_mapped
Direct-Mapped Cache
L4_system
L4
306
# Direct-Mapped Cache **Level**: 4 (System Design) **Category**: cache ## Problem Description 128-byte direct-mapped cache with 16-byte lines ## Requirements - Complete system-level design - Synthesizable implementation - Performance optimization - Resource efficiency ## Testing System-level testbenches with ins...
problem_id: '306' title: Direct-Mapped Cache level: 4 category: cache description: 128-byte direct-mapped cache with 16-byte lines module_name: cache_direct_mapped ports: clk: direction: input width: 1 rst: direction: input width: 1 addr: direction: input width: 32 wr_data: direction...
module tb_cache_direct_mapped; reg clk, rst, we; reg [31:0] addr, wr_data; wire [31:0] rd_data; wire hit; cache_direct_mapped uut(.clk(clk), .rst(rst), .we(we), .addr(addr), .wr_data(wr_data), .rd_data(rd_data), .hit(hit)); initial clk = 0; always #5 clk = ~clk;...
311_cache_direct
bundles/L4_system/311_cache_direct
Direct-Mapped Cache
L4_system
L4
311
# Problem 311: Direct-Mapped Cache ## Description Direct-mapped cache, 16 lines, 4-byte blocks. ## Module Interface ```verilog module cache_direct( input clk,\n input rst,\n input [31:0] addr,\n input we,\n input [31:0] wdata,\n output [31:0] rdata,\n output hit ); // Your implementation h...
problem_id: '311' title: Direct-Mapped Cache level: 4 category: cache description: Direct-mapped cache, 16 lines, 4-byte blocks. module_name: cache_direct ports: clk: direction: input width: 1 rst: direction: input width: 1 addr: direction: input width: 32 we: direction: input wi...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
311_simple_soc
bundles/L4_system/311_simple_soc
Simple SoC (CPU + Memory + Timer)
L4_system
L4
311
# Simple SoC (CPU + Memory + Timer) **Level**: 4 (System Design) **Category**: soc ## Problem Description Complete SoC with CPU, memory, and timer peripheral ## Requirements - Complete system-level design - Synthesizable implementation - Performance optimization - Resource efficiency ## Testing System-level test...
problem_id: '311' title: Simple SoC (CPU + Memory + Timer) level: 4 category: soc description: Complete SoC with CPU, memory, and timer peripheral module_name: simple_soc ports: clk: direction: input width: 1 rst: direction: input width: 1 gpio_out: direction: output width: 8 testbench_fil...
module tb_simple_soc; reg clk, rst; wire [7:0] gpio_out; simple_soc uut(.clk(clk), .rst(rst), .gpio_out(gpio_out)); initial clk = 0; always #5 clk = ~clk; integer pass = 0, fail = 0; initial begin rst = 1; #20; rst = 0; repeat(100) #10; pass = 1; if (fai...
312_cache_2way
bundles/L4_system/312_cache_2way
2-Way Set Associative Cache
L4_system
L4
312
# Problem 312: 2-Way Set Associative Cache ## Description 2-way set associative cache with LRU replacement. ## Module Interface ```verilog module cache_2way( input clk,\n input rst,\n input [31:0] addr,\n input we,\n input [31:0] wdata,\n output [31:0] rdata,\n output hit ); // Your implem...
problem_id: '312' title: 2-Way Set Associative Cache level: 4 category: cache description: 2-way set associative cache with LRU replacement. module_name: cache_2way ports: clk: direction: input width: 1 rst: direction: input width: 1 addr: direction: input width: 32 we: direction: in...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
313_cache_writeback
bundles/L4_system/313_cache_writeback
Write-Back Cache
L4_system
L4
313
# Problem 313: Write-Back Cache ## Description Direct-mapped cache with write-back policy. ## Module Interface ```verilog module cache_writeback( input clk,\n input rst,\n input [31:0] cpu_addr,\n input cpu_we,\n input [31:0] cpu_wdata,\n output [31:0] cpu_rdata,\n output [31:0] mem_addr,\n ...
problem_id: '313' title: Write-Back Cache level: 4 category: cache description: Direct-mapped cache with write-back policy. module_name: cache_writeback ports: clk: direction: input width: 1 rst: direction: input width: 1 cpu_addr: direction: input width: 32 cpu_we: direction: input ...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
321_dma_simple
bundles/L4_system/321_dma_simple
Simple DMA Controller
L4_system
L4
321
# Problem 321: Simple DMA Controller ## Description Simple DMA controller for memory-to-memory transfer. ## Module Interface ```verilog module dma_simple( input clk,\n input rst,\n input start,\n input [15:0] src_addr,\n input [15:0] dst_addr,\n input [7:0] len,\n output done,\n output [15:...
problem_id: '321' title: Simple DMA Controller level: 4 category: dma description: Simple DMA controller for memory-to-memory transfer. module_name: dma_simple ports: clk: direction: input width: 1 rst: direction: input width: 1 start: direction: input width: 1 src_addr: direction: i...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
322_dma_multichannel
bundles/L4_system/322_dma_multichannel
Multi-Channel DMA
L4_system
L4
322
# Problem 322: Multi-Channel DMA ## Description 4-channel DMA controller with priority arbitration. ## Module Interface ```verilog module dma_multichannel( input clk,\n input rst,\n input [1:0] ch_sel,\n input start,\n input [15:0] src_addr,\n input [15:0] dst_addr,\n input [7:0] len,\n out...
problem_id: '322' title: Multi-Channel DMA level: 4 category: dma description: 4-channel DMA controller with priority arbitration. module_name: dma_multichannel ports: clk: direction: input width: 1 rst: direction: input width: 1 ch_sel: direction: input width: 2 start: direction: in...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
331_interrupt_controller
bundles/L4_system/331_interrupt_controller
Simple Interrupt Controller
L4_system
L4
331
# Problem 331: Simple Interrupt Controller ## Description 8-input interrupt controller with priority encoder. ## Module Interface ```verilog module interrupt_controller( input clk,\n input rst,\n input [7:0] irq,\n input ack,\n output int_req,\n output [2:0] int_vec ); // Your implementation ...
problem_id: '331' title: Simple Interrupt Controller level: 4 category: interrupt description: 8-input interrupt controller with priority encoder. module_name: interrupt_controller ports: clk: direction: input width: 1 rst: direction: input width: 1 irq: direction: input width: 8 ack: ...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
332_interrupt_nested
bundles/L4_system/332_interrupt_nested
Nested Interrupt Controller
L4_system
L4
332
# Problem 332: Nested Interrupt Controller ## Description Interrupt controller with nested interrupt support. ## Module Interface ```verilog module interrupt_nested( input clk,\n input rst,\n input [7:0] irq,\n input ack,\n input ret,\n output int_req,\n output [2:0] int_vec ); // Your imp...
problem_id: '332' title: Nested Interrupt Controller level: 4 category: interrupt description: Interrupt controller with nested interrupt support. module_name: interrupt_nested ports: clk: direction: input width: 1 rst: direction: input width: 1 irq: direction: input width: 8 ack: di...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
341_timer_prog
bundles/L4_system/341_timer_prog
Programmable Timer
L4_system
L4
341
# Problem 341: Programmable Timer ## Description Programmable count-down timer with interrupt. ## Module Interface ```verilog module timer_prog( input clk,\n input rst,\n input load,\n input enable,\n input [15:0] count_val,\n output timeout,\n output [15:0] count ); // Your implementation...
problem_id: '341' title: Programmable Timer level: 4 category: timer description: Programmable count-down timer with interrupt. module_name: timer_prog ports: clk: direction: input width: 1 rst: direction: input width: 1 load: direction: input width: 1 enable: direction: input wi...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
342_watchdog_timer
bundles/L4_system/342_watchdog_timer
Watchdog Timer
L4_system
L4
342
# Problem 342: Watchdog Timer ## Description Watchdog timer with configurable timeout. ## Module Interface ```verilog module watchdog_timer( input clk,\n input rst,\n input kick,\n input enable,\n output timeout ); // Your implementation here endmodule ``` ## Specification Watchdog timer with ...
problem_id: '342' title: Watchdog Timer level: 4 category: timer description: Watchdog timer with configurable timeout. module_name: watchdog_timer ports: clk: direction: input width: 1 rst: direction: input width: 1 kick: direction: input width: 1 enable: direction: input width:...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
343_simple_soc
bundles/L4_system/343_simple_soc
Simple SoC: CPU + Memory + UART
L4_system
L4
343
# Problem 343: Simple SoC: CPU + Memory + UART ## Description Simple SoC with RISC-V CPU subset, 1KB RAM, and UART. ## Module Interface ```verilog module simple_soc( input clk,\n input rst,\n input uart_rx,\n output uart_tx,\n output [7:0] gpio ); // Your implementation here endmodule ``` ## Re...
problem_id: '343' title: 'Simple SoC: CPU + Memory + UART' level: 4 category: soc description: Simple SoC with RISC-V CPU subset, 1KB RAM, and UART. module_name: simple_soc ports: clk: direction: input width: 1 rst: direction: input width: 1 uart_rx: direction: input width: 1 uart_tx: ...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
344_bus_arbiter
bundles/L4_system/344_bus_arbiter
Bus Arbiter with Priority
L4_system
L4
344
# Problem 344: Bus Arbiter with Priority **Level**: 4 (System Design) **Category**: system ## Description Design a 4-master bus arbiter with configurable per-master priority. ## Module Interface ```verilog module bus_arbiter( input clk, input rst, input [3:0] req, input [7:0] priority_cfg, outp...
problem_id: '344' title: Bus Arbiter with Priority level: 4 category: arbiter description: 4-master bus arbiter with configurable priority. module_name: bus_arbiter ports: clk: direction: input width: 1 rst: direction: input width: 1 req: direction: input width: 4 priority: direction...
`timescale 1ns/1ps module tb_bus_arbiter; reg clk, rst; reg [3:0] req; reg [7:0] priority_cfg; wire [3:0] grant; wire busy; bus_arbiter uut ( .clk(clk), .rst(rst), .req(req), .priority_cfg(priority_cfg), .grant(grant), .busy(busy) ); initial clk = 0; alway...
345_mem_controller
bundles/L4_system/345_mem_controller
Memory Controller DDR-like
L4_system
L4
345
# Problem 345: Memory Controller DDR-like ## Description Simplified memory controller with read/write commands, bank management. ## Module Interface ```verilog module mem_controller( input clk,\n input rst,\n input [2:0] cmd,\n input [15:0] addr,\n input [31:0] wdata,\n output [31:0] rdata,\n ...
problem_id: '345' title: Memory Controller DDR-like level: 4 category: memory_ctrl description: Simplified memory controller with read/write commands, bank management. module_name: mem_controller ports: clk: direction: input width: 1 rst: direction: input width: 1 cmd: direction: input wid...
`timescale 1ns/1ps module tb; reg clk; initial clk=0; always #5 clk=~clk; reg rst; initial begin rst = 1; #20; rst = 0; #100; $display("TEST PASSED"); $finish; end initial begin #100000; $display("TIMEOUT"); $finish; end endmodule
346_fir_8tap_sys
bundles/L4_system/346_fir_8tap_sys
8-tap FIR Filter System
L4_system
L1
346
# 8-tap FIR Filter System ## Description Complete 8-tap FIR filter with valid handshaking. ## Module Interface ```verilog module fir_8tap_sys ( input clk, input rst, input [15:0] din, input din_valid, output [23:0] dout, output dout_valid ); ``` ## Port Specification - `clk`: input/1 - `rst...
problem_id: 346 title: 8-tap FIR Filter System difficulty: L4 module_name: fir_8tap_sys description: Complete 8-tap FIR filter with valid handshaking. ports: clk: input/1 rst: input/1 din: input/16 din_valid: input/1 dout: output/24 dout_valid: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
347_iir_biquad
bundles/L4_system/347_iir_biquad
IIR Biquad Filter
L4_system
L1
347
# IIR Biquad Filter ## Description 2nd order IIR filter (biquad). ## Module Interface ```verilog module iir_biquad ( input clk, input rst, input [15:0] din, input din_valid, output [15:0] dout, output dout_valid ); ``` ## Port Specification - `clk`: input/1 - `rst`: input/1 - `din`: input/1...
problem_id: 347 title: IIR Biquad Filter difficulty: L4 module_name: iir_biquad description: 2nd order IIR filter (biquad). ports: clk: input/1 rst: input/1 din: input/16 din_valid: input/1 dout: output/16 dout_valid: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
348_fft_8pt
bundles/L4_system/348_fft_8pt
FFT 8-point Radix-2
L4_system
L1
348
# FFT 8-point Radix-2 ## Description 8-point radix-2 FFT. ## Module Interface ```verilog module fft_8pt ( input clk, input rst, input start, input [15:0] din_re, input [15:0] din_im, output [15:0] dout_re, output [15:0] dout_im, output done ); ``` ## Port Specification - `clk`: inpu...
problem_id: 348 title: FFT 8-point Radix-2 difficulty: L4 module_name: fft_8pt description: 8-point radix-2 FFT. ports: clk: input/1 rst: input/1 start: input/1 din_re: input/16 din_im: input/16 dout_re: output/16 dout_im: output/16 done: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
349_dds_system
bundles/L4_system/349_dds_system
DDS (Direct Digital Synthesizer)
L4_system
L1
349
# DDS (Direct Digital Synthesizer) ## Description Complete DDS system with phase accumulator and sine LUT. ## Module Interface ```verilog module dds_system ( input clk, input rst, input [23:0] freq_word, input [15:0] phase, output [15:0] amplitude ); ``` ## Port Specification - `clk`: input/1 -...
problem_id: 349 title: DDS (Direct Digital Synthesizer) difficulty: L4 module_name: dds_system description: Complete DDS system with phase accumulator and sine LUT. ports: clk: input/1 rst: input/1 freq_word: input/24 phase: input/16 amplitude: output/16 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
350_qpsk_mod
bundles/L4_system/350_qpsk_mod
QPSK Modulator
L4_system
L1
350
# QPSK Modulator ## Description QPSK modulator. ## Module Interface ```verilog module qpsk_mod ( input clk, input rst, input [1:0] data, input data_valid, output [7:0] i_out, output [7:0] q_out ); ``` ## Port Specification - `clk`: input/1 - `rst`: input/1 - `data`: input/2 - `data_valid`: ...
problem_id: 350 title: QPSK Modulator difficulty: L4 module_name: qpsk_mod description: QPSK modulator. ports: clk: input/1 rst: input/1 data: input/2 data_valid: input/1 i_out: output/8 q_out: output/8 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[1:0]data;reg data_valid;wire[7:0]i_out,q_out; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; qpsk_mod dut(.clk(clk),.rst(rst),.data(data),.data_valid(data_valid),.i_out(i_out),.q_out(q_out)); task check;input[1:0]d;input[7:0]ei;input[7:0]eq; b...
351_qpsk_demod
bundles/L4_system/351_qpsk_demod
QPSK Demodulator
L4_system
L1
351
# QPSK Demodulator ## Description QPSK demodulator. ## Module Interface ```verilog module qpsk_demod ( input clk, input rst, input [7:0] i_in, input [7:0] q_in, input valid_in, output [1:0] data, output valid_out ); ``` ## Port Specification - `clk`: input/1 - `rst`: input/1 - `i_in`: i...
problem_id: 351 title: QPSK Demodulator difficulty: L4 module_name: qpsk_demod description: QPSK demodulator. ports: clk: input/1 rst: input/1 i_in: input/8 q_in: input/8 valid_in: input/1 data: output/2 valid_out: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[7:0]i_in,q_in;reg valid_in; wire[1:0]data;wire valid_out; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; qpsk_demod dut(.clk(clk),.rst(rst),.i_in(i_in),.q_in(q_in),.valid_in(valid_in),.data(data),.valid_out(valid_out)); task check;input[7:0]ii...
356_uart_full
bundles/L4_system/356_uart_full
UART Full Duplex
L4_system
L1
356
# UART Full Duplex ## Description Full-duplex UART with configurable baud rate. ## Module Interface ```verilog module uart_full ( input clk, input rst, input [7:0] tx_data, input tx_start, input rx, output tx, output [7:0] rx_data, output rx_valid, output tx_busy ); ``` ## Port S...
problem_id: 356 title: UART Full Duplex difficulty: L4 module_name: uart_full description: Full-duplex UART with configurable baud rate. ports: clk: input/1 rst: input/1 tx_data: input/8 tx_start: input/1 rx: input/1 tx: output/1 rx_data: output/8 rx_valid: output/1 tx_busy: output/1 testbench: testbe...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1; reg[7:0]tx_data;reg tx_start; wire tx_out;wire[7:0]rx_data; wire rx_valid;wire tx_busy; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; uart_full dut(.clk(clk),.rst(rst), .tx_data(tx_data),.tx_start(tx_start), .rx(tx_out),.tx(tx_out), .rx_data(rx_...
357_spi_master_full
bundles/L4_system/357_spi_master_full
SPI Master Full
L4_system
L1
357
# SPI Master Full ## Description Full SPI master controller with 4 modes. ## Module Interface ```verilog module spi_master_full ( input clk, input rst, input [7:0] tx_data, input start, input miso, output mosi, output sclk, output ss, output [7:0] rx_data, output done ); ``` ...
problem_id: 357 title: SPI Master Full difficulty: L4 module_name: spi_master_full description: Full SPI master controller with 4 modes. ports: clk: input/1 rst: input/1 tx_data: input/8 start: input/1 miso: input/1 mosi: output/1 sclk: output/1 ss: output/1 rx_data: output/8 done: output/1 testbenc...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[7:0]tx_data;reg start; wire mosi,sclk,ss;wire[7:0]rx_data;wire done; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; spi_master_full dut(.clk(clk),.rst(rst), .tx_data(tx_data),.start(start), .miso(mosi),.mosi(mosi),.sclk(sclk),.ss(ss), .rx_dat...
358_i2c_master_full
bundles/L4_system/358_i2c_master_full
I2C Master Full
L4_system
L1
358
# I2C Master Full ## Description Complete I2C master controller. ## Module Interface ```verilog module i2c_master_full ( input clk, input rst, input start, input rw, input [6:0] addr, input [7:0] data_in, output scl, inout sda, output [7:0] data_out, output ack, output don...
problem_id: 358 title: I2C Master Full difficulty: L4 module_name: i2c_master_full description: Complete I2C master controller. ports: clk: input/1 rst: input/1 start: input/1 rw: input/1 addr: input/7 data_in: input/8 scl: output/1 sda: inout/1 data_out: output/8 ack: output/1 done: output/1 test...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg start_cmd;reg rw; reg[6:0]addr;reg[7:0]data_in; wire scl;wire sda;wire[7:0]data_out; wire ack_out;wire done; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; pullup(sda); i2c_master_full dut(.clk(clk),.rst(rst), .start(start_cmd),.rw(rw),.addr(...
359_can_basic
bundles/L4_system/359_can_basic
CAN Controller Basic
L4_system
L1
359
# CAN Controller Basic ## Description Basic CAN 2.0A controller. ## Module Interface ```verilog module can_basic ( input clk, input rst, input [10:0] tx_id, input [63:0] tx_data, input tx_start, output can_tx, input can_rx, output [10:0] rx_id, output [63:0] rx_data, output rx...
problem_id: 359 title: CAN Controller Basic difficulty: L4 module_name: can_basic description: Basic CAN 2.0A controller. ports: clk: input/1 rst: input/1 tx_id: input/11 tx_data: input/64 tx_start: input/1 can_tx: output/1 can_rx: input/1 rx_id: output/11 rx_data: output/64 rx_valid: output/1 testb...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1; reg[10:0]tx_id;reg[63:0]tx_data;reg tx_start; wire can_tx;wire[10:0]rx_id; wire[63:0]rx_data;wire rx_valid; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; can_basic dut(.clk(clk),.rst(rst), .tx_id(tx_id),.tx_data(tx_data), .tx_start(tx_start),.c...
360_eth_mac_lite
bundles/L4_system/360_eth_mac_lite
Ethernet MAC Lite
L4_system
L1
360
# Ethernet MAC Lite ## Description Simplified Ethernet MAC (MII interface). ## Module Interface ```verilog module eth_mac_lite ( input clk, input rst, input [7:0] tx_data, input tx_valid, output tx_ready, output [7:0] rx_data, output rx_valid, output [3:0] mii_tx, input [3:0] mii_...
problem_id: 360 title: Ethernet MAC Lite difficulty: L4 module_name: eth_mac_lite description: Simplified Ethernet MAC (MII interface). ports: clk: input/1 rst: input/1 tx_data: input/8 tx_valid: input/1 tx_ready: output/1 rx_data: output/8 rx_valid: output/1 mii_tx: output/4 mii_rx: input/4 testbench...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[7:0]tx_data;reg tx_valid; wire tx_ready;wire[7:0]rx_data;wire rx_valid; wire[3:0]mii_tx; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; eth_mac_lite dut(.clk(clk),.rst(rst), .tx_data(tx_data),.tx_valid(tx_valid), .tx_ready(tx_ready),.rx_data(...
361_hdlc_framer
bundles/L4_system/361_hdlc_framer
HDLC Framer
L4_system
L1
361
# HDLC Framer ## Description HDLC frame encoder with bit stuffing. ## Module Interface ```verilog module hdlc_framer ( input clk, input rst, input [7:0] data_in, input data_valid, input sof, input eof, output [7:0] frame_out, output frame_valid ); ``` ## Port Specification - `clk`: ...
problem_id: 361 title: HDLC Framer difficulty: L4 module_name: hdlc_framer description: HDLC frame encoder with bit stuffing. ports: clk: input/1 rst: input/1 data_in: input/8 data_valid: input/1 sof: input/1 eof: input/1 frame_out: output/8 frame_valid: output/1 testbench: testbench.v timeout: 10 test_...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[7:0]data_in; reg data_valid,sof,eof; wire[7:0]frame_out;wire frame_valid; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; hdlc_framer dut(.clk(clk),.rst(rst), .data_in(data_in),.data_valid(data_valid), .sof(sof),.eof(eof), .frame_out(frame_out...
362_hdlc_deframer
bundles/L4_system/362_hdlc_deframer
HDLC Deframer
L4_system
L1
362
# HDLC Deframer ## Description HDLC frame decoder with bit destuffing. ## Module Interface ```verilog module hdlc_deframer ( input clk, input rst, input [7:0] frame_in, input frame_valid, output [7:0] data_out, output data_valid, output sof, output eof ); ``` ## Port Specification -...
problem_id: 362 title: HDLC Deframer difficulty: L4 module_name: hdlc_deframer description: HDLC frame decoder with bit destuffing. ports: clk: input/1 rst: input/1 frame_in: input/8 frame_valid: input/1 data_out: output/8 data_valid: output/1 sof: output/1 eof: output/1 testbench: testbench.v timeout: ...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[7:0]frame_in;reg frame_valid; wire[7:0]data_out;wire data_valid,sof_out,eof_out; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; hdlc_deframer dut(.clk(clk),.rst(rst), .frame_in(frame_in),.frame_valid(frame_valid), .data_out(data_out),.data_va...
371_cache_2way_set
bundles/L4_system/371_cache_2way_set
2-way Set-Associative Cache
L4_system
L1
371
# 2-way Set-Associative Cache ## Description 2-way set-associative cache (LRU replacement). ## Module Interface ```verilog module cache_2way_set ( input clk, input rst, input [15:0] addr, input wr_en, input [31:0] data_in, output [31:0] data_out, output hit ); ``` ## Port Specification ...
problem_id: 371 title: 2-way Set-Associative Cache difficulty: L4 module_name: cache_2way_set description: 2-way set-associative cache (LRU replacement). ports: clk: input/1 rst: input/1 addr: input/16 wr_en: input/1 data_in: input/32 data_out: output/32 hit: output/1 testbench: testbench.v timeout: 10 te...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[15:0]addr; reg wr_en;reg[31:0]data_in; wire[31:0]data_out;wire hit; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; cache_2way_set dut(.clk(clk),.rst(rst), .addr(addr),.wr_en(wr_en), .data_in(data_in),.data_out(data_out),.hit(hit)); task wr;in...
372_cache_4way_set
bundles/L4_system/372_cache_4way_set
4-way Set-Associative Cache
L4_system
L1
372
# 4-way Set-Associative Cache ## Description 4-way set-associative cache (LRU replacement). ## Module Interface ```verilog module cache_4way_set ( input clk, input rst, input [15:0] addr, input wr_en, input [31:0] data_in, output [31:0] data_out, output hit ); ``` ## Port Specification ...
problem_id: 372 title: 4-way Set-Associative Cache difficulty: L4 module_name: cache_4way_set description: 4-way set-associative cache (LRU replacement). ports: clk: input/1 rst: input/1 addr: input/16 wr_en: input/1 data_in: input/32 data_out: output/32 hit: output/1 testbench: testbench.v timeout: 10 te...
`timescale 1ns/1ps module testbench; reg clk=0;reg rst=1;reg[15:0]addr; reg wr_en;reg[31:0]data_in; wire[31:0]data_out;wire hit; integer pass_count=0;integer fail_count=0; always #5 clk=~clk; cache_4way_set dut(.clk(clk),.rst(rst), .addr(addr),.wr_en(wr_en), .data_in(data_in),.data_out(data_out),.hit(hit)); task wr;in...
373_branch_pred_1bit
bundles/L4_system/373_branch_pred_1bit
Branch Predictor 1-bit
L4_system
L1
373
# Branch Predictor 1-bit ## Description 1-bit branch predictor with 256-entry BHT. ## Module Interface ```verilog module branch_pred_1bit ( input clk, input rst, input [15:0] pc, input taken_actual, input update, output prediction ); ``` ## Port Specification - `clk`: input/1 - `rst`: input...
problem_id: 373 title: Branch Predictor 1-bit difficulty: L4 module_name: branch_pred_1bit description: 1-bit branch predictor with 256-entry BHT. ports: clk: input/1 rst: input/1 pc: input/16 taken_actual: input/1 update: input/1 prediction: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
374_branch_pred_2bit
bundles/L4_system/374_branch_pred_2bit
Branch Predictor 2-bit
L4_system
L1
374
# Branch Predictor 2-bit ## Description 2-bit saturating counter branch predictor. ## Module Interface ```verilog module branch_pred_2bit ( input clk, input rst, input [15:0] pc, input taken_actual, input update, output prediction ); ``` ## Port Specification - `clk`: input/1 - `rst`: input...
problem_id: 374 title: Branch Predictor 2-bit difficulty: L4 module_name: branch_pred_2bit description: 2-bit saturating counter branch predictor. ports: clk: input/1 rst: input/1 pc: input/16 taken_actual: input/1 update: input/1 prediction: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
375_tlb
bundles/L4_system/375_tlb
TLB (Translation Lookaside Buffer)
L4_system
L1
375
# TLB (Translation Lookaside Buffer) ## Description 16-entry fully-associative TLB. ## Module Interface ```verilog module tlb ( input clk, input rst, input [19:0] vaddr, output [19:0] paddr, output hit, output valid ); ``` ## Port Specification - `clk`: input/1 - `rst`: input/1 - `vaddr`: i...
problem_id: 375 title: TLB (Translation Lookaside Buffer) difficulty: L4 module_name: tlb description: 16-entry fully-associative TLB. ports: clk: input/1 rst: input/1 vaddr: input/20 paddr: output/20 hit: output/1 valid: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
376_store_buffer
bundles/L4_system/376_store_buffer
Store Buffer
L4_system
L1
376
# Store Buffer ## Description 8-entry store buffer for write-through cache. ## Module Interface ```verilog module store_buffer ( input clk, input rst, input [15:0] wr_addr, input [31:0] wr_data, input wr_en, input flush, output empty, output full ); ``` ## Port Specification - `clk`...
problem_id: 376 title: Store Buffer difficulty: L4 module_name: store_buffer description: 8-entry store buffer for write-through cache. ports: clk: input/1 rst: input/1 wr_addr: input/16 wr_data: input/32 wr_en: input/1 flush: input/1 empty: output/1 full: output/1 testbench: testbench.v timeout: 10 tes...
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
377_rob_entry
bundles/L4_system/377_rob_entry
Reorder Buffer Entry
L4_system
L1
377
# Reorder Buffer Entry ## Description Single entry of reorder buffer. ## Module Interface ```verilog module rob_entry ( input clk, input rst, input alloc, input commit, input [15:0] pc, input [31:0] result, output valid, output ready ); ``` ## Port Specification - `clk`: input/1 - `...
problem_id: 377 title: Reorder Buffer Entry difficulty: L4 module_name: rob_entry description: Single entry of reorder buffer. ports: clk: input/1 rst: input/1 alloc: input/1 commit: input/1 pc: input/16 result: input/32 valid: output/1 ready: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
381_conv2d_engine
bundles/L4_system/381_conv2d_engine
2D Convolution Engine
L4_system
L1
381
# 2D Convolution Engine ## Description 2D convolution engine with selectable 3x3 kernels. ## Module Interface ```verilog module conv2d_engine ( input clk, input rst, input [7:0] pixel_in, input valid_in, input [1:0] kernel_sel, output [15:0] pixel_out, output valid_out ); ``` ## Port Spe...
problem_id: 381 title: 2D Convolution Engine difficulty: L4 module_name: conv2d_engine description: 2D convolution engine with selectable 3x3 kernels. ports: clk: input/1 rst: input/1 pixel_in: input/8 valid_in: input/1 kernel_sel: input/2 pixel_out: output/16 valid_out: output/1 testbench: testbench.v ti...
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
382_edge_detect_sys
bundles/L4_system/382_edge_detect_sys
Edge Detection System
L4_system
L1
382
# Edge Detection System ## Description Complete edge detection using Sobel + thresholding. ## Module Interface ```verilog module edge_detect_sys ( input clk, input rst, input [7:0] pixel_in, input valid_in, output edge_out, output valid_out ); ``` ## Port Specification - `clk`: input/1 - `r...
problem_id: 382 title: Edge Detection System difficulty: L4 module_name: edge_detect_sys description: Complete edge detection using Sobel + thresholding. ports: clk: input/1 rst: input/1 pixel_in: input/8 valid_in: input/1 edge_out: output/1 valid_out: output/1 testbench: testbench.v timeout: 10 test_cases:...
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
383_gaussian_5x5
bundles/L4_system/383_gaussian_5x5
Gaussian Blur 5x5
L4_system
L1
383
# Gaussian Blur 5x5 ## Description 5x5 Gaussian blur filter. ## Module Interface ```verilog module gaussian_5x5 ( input clk, input rst, input [7:0] pixel_in, input valid_in, output [7:0] pixel_out, output valid_out ); ``` ## Port Specification - `clk`: input/1 - `rst`: input/1 - `pixel_in`:...
problem_id: 383 title: Gaussian Blur 5x5 difficulty: L4 module_name: gaussian_5x5 description: 5x5 Gaussian blur filter. ports: clk: input/1 rst: input/1 pixel_in: input/8 valid_in: input/1 pixel_out: output/8 valid_out: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
384_img_scaler_2x
bundles/L4_system/384_img_scaler_2x
Image Scaler 2x
L4_system
L1
384
# Image Scaler 2x ## Description Image upscaler (bilinear interpolation, 2x). ## Module Interface ```verilog module img_scaler_2x ( input clk, input rst, input [7:0] pixel_in, input valid_in, output [7:0] pixel_out, output valid_out ); ``` ## Port Specification - `clk`: input/1 - `rst`: inp...
problem_id: 384 title: Image Scaler 2x difficulty: L4 module_name: img_scaler_2x description: Image upscaler (bilinear interpolation, 2x). ports: clk: input/1 rst: input/1 pixel_in: input/8 valid_in: input/1 pixel_out: output/8 valid_out: output/1 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
385_yuv2rgb
bundles/L4_system/385_yuv2rgb
YUV to RGB Converter
L4_system
L1
385
# YUV to RGB Converter ## Description YUV422 to RGB888 color space converter. ## Module Interface ```verilog module yuv2rgb ( input [7:0] y, input [7:0] u, input [7:0] v, output [7:0] r, output [7:0] g, output [7:0] b ); ``` ## Port Specification - `y`: input/8 - `u`: input/8 - `v`: input/8...
problem_id: 385 title: YUV to RGB Converter difficulty: L4 module_name: yuv2rgb description: YUV422 to RGB888 color space converter. ports: y: input/8 u: input/8 v: input/8 r: output/8 g: output/8 b: output/8 testbench: testbench.v timeout: 10 test_cases: 100
`timescale 1ns/1ps module tb; initial begin #10; $display("TEST PASSED"); $finish; end endmodule
386_pipelined_mips_alu
bundles/L4_system/386_pipelined_mips_alu
5-Stage Pipelined ALU with Forwarding and Hazard Detection
L4_system
L4
386
# Problem 386: 5-Stage Pipelined ALU with Forwarding and Hazard Detection **Level**: 4 (System Design) **Category**: system ## Description Design a 5-stage pipelined ALU that supports 7 operations with data forwarding and hazard detection. The pipeline stages are: Fetch (IF), Decode (ID), Execute (EX), Memory (MEM),...
problem_id: "386" title: "5-Stage Pipelined ALU with Forwarding and Hazard Detection" level: 4 category: "system" description: "5-stage pipelined ALU supporting ADD/SUB/AND/OR/SLT/SLL/SRL with data forwarding and hazard detection" module_name: "pipelined_alu_5stage" ports: clk: direction: "input" width: "1" ...
`timescale 1ns/1ps module tb_pipelined_alu_5stage; reg clk; reg rst; reg [2:0] opcode; reg [15:0] rs, rt; reg [3:0] shamt; wire [15:0] result; wire result_valid; wire stall; pipelined_alu_5stage uut ( .clk(clk), .rst(rst), .opcode(opcode), .rs(rs), ...
387_cache_controller
bundles/L4_system/387_cache_controller
Direct-Mapped Write-Back Cache Controller
L4_system
L4
387
# Problem 387: Direct-Mapped Write-Back Cache Controller **Level**: 4 (System Design) **Category**: system ## Description Design a direct-mapped write-back cache controller with 4 cache lines, 4 words (bytes) per line, 16-bit address, and 8-bit data. The controller interfaces between a CPU and main memory. ## Modul...
problem_id: "387" title: "Direct-Mapped Write-Back Cache Controller" level: 4 category: "system" description: "Direct-mapped write-back cache controller with 4 lines, 4 words per line, FSM-based control" module_name: "cache_ctrl_dm" ports: clk: direction: "input" width: "1" rst: direction: "input" ...
`timescale 1ns/1ps module tb_cache_ctrl_dm; reg clk, rst; reg [15:0] cpu_addr; reg [7:0] cpu_data_in; reg cpu_we, cpu_re; wire [7:0] cpu_data_out; wire cpu_ready; wire [15:0] mem_addr; wire [7:0] mem_data_out; wire mem_we, mem_re; reg [7:0] mem_data_in; reg mem_ready; ...
388_bus_arbiter_3master
bundles/L4_system/388_bus_arbiter_3master
3-Master Bus Arbiter with Priority and Round-Robin
L4_system
L4
388
# Problem 388: 3-Master Bus Arbiter with Priority and Round-Robin **Level**: 4 (System Design) **Category**: system ## Description Design a 3-master bus arbiter that combines fixed-priority arbitration for locked (urgent) requests with round-robin arbitration for normal requests. Supports split transactions via the ...
problem_id: "388" title: "3-Master Bus Arbiter with Priority and Round-Robin" level: 4 category: "system" description: "3-master bus arbiter with fixed priority for urgent requests and round-robin for normal requests" module_name: "bus_arbiter_3m" ports: clk: direction: "input" width: "1" rst: directio...
`timescale 1ns/1ps module tb_bus_arbiter_3m; reg clk, rst; reg [2:0] req; wire [2:0] bus_grant; wire bus_busy; reg [2:0] lock; bus_arbiter_3m uut ( .clk(clk), .rst(rst), .req(req), .bus_grant(bus_grant), .bus_busy(bus_busy), .lock(lock) ); ...
389_dma_engine
bundles/L4_system/389_dma_engine
Simple DMA Engine
L4_system
L4
389
# Problem 389: Simple DMA Engine **Level**: 4 (System Design) **Category**: system ## Description Design a simple DMA (Direct Memory Access) engine that copies a block of data from a source address to a destination address in memory. The engine reads one byte at a time from the source, then writes it to the destinat...
problem_id: "389" title: "Simple DMA Engine" level: 4 category: "system" description: "DMA engine that copies data blocks from source to destination addresses in memory" module_name: "dma_engine" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: direction: "i...
`timescale 1ns/1ps module tb_dma_engine; reg clk, rst; reg start; reg [15:0] src_addr, dst_addr; reg [7:0] length; wire done, busy; wire [15:0] mem_addr; wire [7:0] mem_data_out; wire mem_we, mem_re; reg [7:0] mem_data_in; reg mem_ready; dma_engine uut ( .clk(clk),...
390_uart_with_fifo
bundles/L4_system/390_uart_with_fifo
Full UART System with TX/RX and 8-Deep FIFOs
L4_system
L4
390
# Problem 390: Full UART System with TX/RX and 8-Deep FIFOs **Level**: 4 (System Design) **Category**: system ## Description Design a complete UART system with transmitter, receiver, and 8-deep FIFOs on both TX and RX sides. The baud rate is configurable via a divider register. ## Module Interface ```verilog modul...
problem_id: "390" title: "Full UART System with TX/RX and 8-Deep FIFOs" level: 4 category: "system" description: "Full UART system with transmitter, receiver, and 8-deep FIFOs for both directions" module_name: "uart_system" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1...
`timescale 1ns/1ps module tb_uart_system; reg clk, rst; reg [7:0] tx_data; reg tx_write; reg rx_read; reg [7:0] baud_div; wire tx_out; reg rx_in; wire [7:0] rx_data; wire rx_valid; wire tx_full; wire rx_empty; uart_system uut ( .clk(clk), .rst(rst), ...
391_interrupt_controller_8
bundles/L4_system/391_interrupt_controller_8
8-Source Interrupt Controller
L4_system
L4
391
# Problem 391: 8-Source Interrupt Controller **Level**: 4 (System Design) **Category**: system ## Description Design an 8-source interrupt controller with a priority encoder, mask register, pending register, and in-service register (ISR tracking). Supports interrupt acknowledgment and end-of-interrupt signaling. ##...
problem_id: "391" title: "8-Source Interrupt Controller" level: 4 category: "system" description: "8-source interrupt controller with priority encoder, mask register, pending register, and ISR tracking" module_name: "intc_8src" ports: clk: direction: "input" width: "1" rst: direction: "input" width...
`timescale 1ns/1ps module tb_intc_8src; reg clk, rst; reg [7:0] irq; reg ack, eoi; reg [7:0] mask; wire irq_out; wire [2:0] irq_vector; wire [7:0] in_service; intc_8src uut ( .clk(clk), .rst(rst), .irq(irq), .ack(ack), .eoi(eoi), .mask(m...
392_spi_master_dma
bundles/L4_system/392_spi_master_dma
SPI Master with DMA
L4_system
L4
392
# Problem 392: SPI Master with DMA **Level**: 4 (System Design) **Category**: system ## Description Design an SPI master that automatically reads data from a memory interface and transmits it over SPI. Supports configurable clock polarity (CPOL) and clock phase (CPHA). ## Module Interface ```verilog module spi_mas...
problem_id: "392" title: "SPI Master with DMA" level: 4 category: "system" description: "SPI master with configurable CPOL/CPHA and auto-transfer from memory via DMA-like interface" module_name: "spi_master_dma" ports: clk: direction: "input" width: "1" rst: direction: "input" width: "1" start: ...
`timescale 1ns/1ps module tb_spi_master_dma; reg clk, rst; reg start; reg [7:0] mem_base; reg [3:0] transfer_len; reg cpol, cpha; wire sclk_w; wire mosi; reg miso; wire ss_n; wire done, busy; wire [7:0] mem_addr; wire mem_re; reg [7:0] mem_data; spi_master_dma ...