Start expanding core JPEG-LS datapath toward NEAR 255

This commit is contained in:
2026-04-17 07:52:24 +08:00
parent 827d925b4a
commit ac093da000
12 changed files with 488 additions and 379 deletions

View File

@@ -26,7 +26,7 @@ module tb_jls_near_ctrl;
logic [31:0] strip_output_bytes;
// Dynamic NEAR controller outputs.
logic [5:0] current_near;
logic [7:0] current_near;
logic [47:0] actual_bits_cumulative;
logic [47:0] target_bits_cumulative;
logic target_miss_at_max_near;
@@ -37,7 +37,7 @@ module tb_jls_near_ctrl;
jls_near_ctrl #(
.PIX_WIDTH(PIX_WIDTH),
.MAX_NEAR(31)
.MAX_NEAR(255)
) dut (
.clk(clk),
.rst(rst),
@@ -139,7 +139,7 @@ module tb_jls_near_ctrl;
@(posedge clk);
image_start_valid = 1'b0;
for (loop_index = 0; loop_index < 8; loop_index = loop_index + 1) begin
for (loop_index = 0; loop_index < 16; loop_index = loop_index + 1) begin
@(posedge clk);
strip_output_bytes = 32'd1000;
strip_done_valid = 1'b1;
@@ -149,7 +149,7 @@ module tb_jls_near_ctrl;
end
#1;
if (current_near !== 6'd31 || target_miss_at_max_near !== 1'b1) begin
if (current_near !== 8'd255 || target_miss_at_max_near !== 1'b1) begin
$fatal(1, "MAX_NEAR saturation or target miss flag mismatch");
end