Skip to content

Commit

Permalink
hw: Fix instantiation of reg cdc for external reg interface
Browse files Browse the repository at this point in the history
* The for loop was iterating on the number of synchrnous interfaces
isntead of asyncrhonous, with the former set to 1. hence, Only one reg
cdc for port 0 was generated!
  • Loading branch information
alex96295 committed Oct 8, 2023
1 parent 6721d0e commit c5c7899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/cheshire_wrap.sv
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ axi_id_remap #(

// Async reg interface:
// See carfield_pkg.sv for indices referring to sync and async reg interfaces.
for (genvar i = 0; i < Cfg.RegExtNumSlv - NumAsyncRegSlv; i++) begin : gen_ext_reg_async
for (genvar i = 0; i < NumAsyncRegSlv; i++) begin : gen_ext_reg_async
reg_cdc_src #(
.CDC_KIND ( "cdc_4phase" ),
.req_t ( cheshire_reg_ext_req_t ),
Expand Down

0 comments on commit c5c7899

Please sign in to comment.