Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThe component interface isn't very smart and needs all port widths to be either a constant, a top level parameter or a simple expression with only integers and top level parameters. It probably isn't happy with your local parameters. I suggest to either put the whole expression (ex (SINGLE_ENTRY==1) ? 3 : CSR_ADDR_WITDH) in the port width, or use a top level parameter instead of LOCAL_CSR_ADDR_WITDH and put your logic with SINGLE_ENTRY in the tcl file instead.