Skip to content

Commit

Permalink
Update rules in the BUILD file
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Winkler <[email protected]>
  • Loading branch information
rw1nkler committed Jan 29, 2025
1 parent 2e6ccb5 commit 16cd455
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
31 changes: 16 additions & 15 deletions xls/modules/zstd/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ xls_dslx_verilog(
dslx_top = "ShiftBufferAlignerInst",
library = ":shift_buffer_dslx",
opt_ir_args = {
"top": "__xls_modules_shift_buffer_shift_buffer__ShiftBufferAlignerInst__ShiftBufferAligner_0__64_128_7_next",
"top": "__shift_buffer__ShiftBufferAlignerInst__ShiftBufferAligner_0__64_128_7_next",
},
verilog_file = "shift_buffer_aligner.v",
tags = ["manual"],
Expand Down Expand Up @@ -250,12 +250,10 @@ xls_dslx_verilog(
"reset": "rst",
"worst_case_throughput": "1",
"use_system_verilog": "false",
"multi_proc": "true",
},
dslx_top = "ShiftBufferStorageInst",
library = ":shift_buffer_dslx",
opt_ir_args = {
"top": "__xls_modules_shift_buffer_shift_buffer__ShiftBufferStorageInst__ShiftBufferStorage_0__64_7_next",
},
verilog_file = "shift_buffer_storage.v",
tags = ["manual"],
)
Expand All @@ -264,8 +262,10 @@ xls_benchmark_ir(
name = "shift_buffer_storage_opt_ir_benchmark",
src = ":shift_buffer_storage_verilog.opt.ir",
benchmark_ir_args = {
"inline_procs": "false",
"pipeline_stages": "2",
"delay_model": "asap7",
"top": "__shift_buffer__ShiftBufferStorageInst__ShiftBufferStorage_0__64_7_next"
},
tags = ["manual"],
)
Expand Down Expand Up @@ -322,13 +322,10 @@ xls_dslx_verilog(
"reset": "rst",
"worst_case_throughput": "1",
"use_system_verilog": "false",
"multi_proc": "true",
},
dslx_top = "ShiftBufferInst",
library = ":shift_buffer_dslx",
opt_ir_args = {
"inline_procs": "true",
"top": "__xls_modules_shift_buffer_shift_buffer__ShiftBufferInst__ShiftBuffer_0__ShiftBufferStorage_0__64_7_next",
},
verilog_file = "shift_buffer.v",
tags = ["manual"],
)
Expand All @@ -337,9 +334,11 @@ xls_benchmark_ir(
name = "shift_buffer_opt_ir_benchmark",
src = ":shift_buffer_verilog.opt.ir",
benchmark_ir_args = {
"inline_procs": "false",
"pipeline_stages": "2",
"delay_model": "asap7",
},

tags = ["manual"],
)

Expand Down Expand Up @@ -1472,7 +1471,7 @@ xls_dslx_library(
xls_dslx_test(
name = "comp_block_dec_dslx_test",
library = ":comp_block_dec_dslx",
size = "large",
size = "enormous",
tags = ["manual"],
)

Expand Down Expand Up @@ -1549,6 +1548,7 @@ xls_dslx_test(
"data/comp_frame_fse_comp.x",
"data/comp_frame_fse_repeated.x",
],
size = "large",
tags = ["manual"],
deps = zstd_dec_deps,
)
Expand Down Expand Up @@ -2723,13 +2723,10 @@ xls_dslx_verilog(
"reset": "rst",
"worst_case_throughput": "1",
"use_system_verilog": "false",
"multi_proc": "true",
},
dslx_top = "LiteralsBufferInst",
library = ":literals_buffer_dslx",
opt_ir_args = {
"inline_procs": "true",
"top": "__literals_buffer__LiteralsBufferInst__LiteralsBuffer_0__LiteralsBufferReader_0__64_0_0_0_13_8192_65536_next"
},
verilog_file = "literals_buffer.v",
tags = ["manual"],
)
Expand All @@ -2740,6 +2737,8 @@ xls_benchmark_ir(
benchmark_ir_args = {
"pipeline_stages": "6",
"delay_model": "asap7",
"inline_procs": "false",
"top":"__literals_buffer__LiteralsBufferInst__LiteralsBuffer_0__LiteralsBufferReader_0__64_0_0_0_13_8192_65536_next"
},
tags = ["manual"],
)
Expand Down Expand Up @@ -3498,13 +3497,15 @@ xls_dslx_test(
name = "huffman_weights_dec_dslx_test",
library = ":huffman_weights_dec_dslx",
tags = ["manual"],
size = "large",
)

huffman_weights_dec_codegen_args = common_codegen_args | {
"module_name": "HuffmanWeightsDecoder",
"pipeline_stages": "25",
"clock_period_ps": "750",
"worst_case_throughput": "17",
"multi_proc": "true"
}

xls_dslx_verilog(
Expand All @@ -3513,8 +3514,7 @@ xls_dslx_verilog(
dslx_top = "HuffmanWeightsDecoderInst",
library = ":huffman_weights_dec_dslx",
opt_ir_args = {
"inline_procs": "true",
"top": "__huffman_weights_dec__HuffmanWeightsDecoderInst__HuffmanWeightsDecoder_0__32_64_6_32_8_next",
"top": "__huffman_weights_dec__HuffmanWeightsDecoderInst__HuffmanWeightsDecoder_0__32_64_8_8_16_1_8_32_4_9_8_1_8_16_1_6_32_8_next",
},
tags = ["manual"],
verilog_file = "huffman_weights_dec.v",
Expand All @@ -3531,6 +3531,7 @@ verilog_library(
name = "huffman_weights_dec_verilog_lib",
srcs = [
":huffman_weights_dec.v",
":xls_fifo_wrapper.v",
],
tags = ["manual"],
)
Expand Down
11 changes: 4 additions & 7 deletions xls/modules/zstd/huffman_weights_dec.x
Original file line number Diff line number Diff line change
Expand Up @@ -1266,18 +1266,15 @@ pub proc HuffmanWeightsDecoder<
let (raw_weights_ram_wr_resp_s, raw_weights_ram_wr_resp_r) = chan<WeightsRamWrResp, u32:1>("raw_weights_ram_wr_resp");

// Internal RAM Write interface with decoded Fse Huffman Tree Description
let (fse_weights_ram_wr_req_s, fse_weights_ram_wr_req_r) = chan<WeightsRamWrReq, u32:1>("raw_weights_ram_wr_req");
let (fse_weights_ram_wr_resp_s, fse_weights_ram_wr_resp_r) = chan<WeightsRamWrResp, u32:1>("raw_weights_ram_wr_resp");

let (fse_lookup_weights_ram_wr_req_s, fse_lookup_weights_ram_wr_req_r) = chan<WeightsRamWrReq, u32:1>("fse_weights_ram_wr_req");
let (fse_lookup_weights_ram_wr_resp_s, fse_lookup_weights_ram_wr_resp_r) = chan<WeightsRamWrResp, u32:1>("fse_weights_ram_wr_resp");
let (fse_decoder_weights_ram_wr_req_s, fse_decoder_weights_ram_wr_req_r) = chan<WeightsRamWrReq, u32:1>("fse_weights_ram_wr_req");
let (fse_decoder_weights_ram_wr_resp_s, fse_decoder_weights_ram_wr_resp_r) = chan<WeightsRamWrResp, u32:1>("fse_weights_ram_wr_resp");
let (fse_weights_ram_wr_req_s, fse_weights_ram_wr_req_r) = chan<WeightsRamWrReq, u32:1>("fse_weights_ram_wr_req");
let (fse_weights_ram_wr_resp_s, fse_weights_ram_wr_resp_r) = chan<WeightsRamWrResp, u32:1>("fse_weights_ram_wr_resp_s");

let (raw_weights_ram_rd_req_s, raw_weights_ram_rd_req_r) = chan<WeightsRamRdReq, u32:1>("raw_weights_ram_rd_req");
let (raw_weights_ram_rd_resp_s, raw_weights_ram_rd_resp_r) = chan<WeightsRamRdResp, u32:1>("raw_weights_ram_rd_resp");

let (fse_weights_ram_rd_req_s, fse_weights_ram_rd_req_r) = chan<WeightsRamRdReq, u32:1>("fse_weights_ram_rd_req");
let (fse_weights_ram_rd_resp_s, fse_weights_ram_rd_resp_r) = chan<WeightsRamRdResp, u32:1>("fse_weights_ram_rd_resp");

let (weights_ram_rd_req_s, weights_ram_rd_req_r) = chan<WeightsRamRdReq, u32:1>("weights_ram_rd_req");
let (weights_ram_rd_resp_s, weights_ram_rd_resp_r) = chan<WeightsRamRdResp, u32:1>("weights_ram_rd_resp");

Expand Down

0 comments on commit 16cd455

Please sign in to comment.