Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
axi_dmac: Use localparam instead of parameter
Xilinx tools don't allow to use $clog2() when computing the value of a localparam, even though it is valid Verilog. For this reason a parameter was used for BYTES_PER_BURST_WIDTH so far. But that generates warnings from both Quartus and Vivado since the parameter is not part of the parameter list. Fix this by changing it to a localparam and computing the log2() manually. The upper limit for the burst length is known to be 4k, so values larger than that don't have to be supported. Signed-off-by: Lars-Peter Clausen <[email protected]>
- Loading branch information