Skip to content

Commit

Permalink
modules/dbe: Lz4 encoder - use abstract RAM interface
Browse files Browse the repository at this point in the history
Switches Lz4 encoder proc to use abstract (1R1W) RamModel
and adds RAM interface rewrites at xls_ir_opt_ir and
xls_ir_verilog stages.

Signed-off-by: Roman Dobrodii <[email protected]>
  • Loading branch information
rdob-ant committed Aug 24, 2023
1 parent 715e1d1 commit c20d324
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 148 deletions.
17 changes: 17 additions & 0 deletions xls/modules/dbe/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ xls_ir_opt_ir(
name = "dbe_lz4_encoder_8k_opt_ir",
src = "dbe_lz4_encoder_8k_ir.ir",
top = "__lz4_encoder__encoder_8k__encoder_base_0__16_3_13_12_13_65536_8192_4_16_8_next",
ram_rewrites = [
":lz4_encoder_8k_ram1r1w_rewrites.textproto",
],
)

xls_ir_verilog(
Expand All @@ -151,5 +154,19 @@ xls_ir_verilog(
"reset": "rst",
"use_system_verilog": "false",
"streaming_channel_data_suffix": "_data",
"ram_configurations": ",".join([
"ram_hb:1R1W:{rd_req}:{rd_resp}:{wr_req}:{wr_comp}".format(
rd_req = "ram_hb_read_req",
rd_resp = "ram_hb_read_resp",
wr_req = "ram_hb_write_req",
wr_comp = "ram_hb_write_completion",
),
"ram_ht:1R1W:{rd_req}:{rd_resp}:{wr_req}:{wr_comp}".format(
rd_req = "ram_ht_read_req",
rd_resp = "ram_ht_read_resp",
wr_req = "ram_ht_write_req",
wr_comp = "ram_ht_write_completion",
),
]),
},
)
Loading

0 comments on commit c20d324

Please sign in to comment.