axi_dmac: List valid store-and-forward memory sizes
For correct operation the store-and-forward memory size must be a power-of-two in the range of 2 to 32. This is simple enough so we can list all values and let the IP Integrator and QSYS perform proper validation of the parameter. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
682895c7ae
commit
15b0e38e23
|
@ -69,6 +69,7 @@ set_parameter_property DMA_LENGTH_WIDTH GROUP $group
|
|||
add_parameter FIFO_SIZE INTEGER 4
|
||||
set_parameter_property FIFO_SIZE DISPLAY_NAME "FIFO Size (In Bursts)"
|
||||
set_parameter_property FIFO_SIZE HDL_PARAMETER true
|
||||
set_parameter_property FIFO_SIZE ALLOWED_RANGES {2 4 8 16 32}
|
||||
set_parameter_property FIFO_SIZE GROUP $group
|
||||
|
||||
add_parameter MAX_BYTES_PER_BURST INTEGER 128
|
||||
|
|
|
@ -190,6 +190,12 @@ foreach intf [ipx::get_bus_interfaces m_*_axi -of_objects $cc] {
|
|||
set_property "VALUE" "0" $para
|
||||
}
|
||||
|
||||
set_property -dict [list \
|
||||
"value_validation_type" "list" \
|
||||
"value_validation_list" "2 4 8 16 32" \
|
||||
] \
|
||||
[ipx::get_user_parameters FIFO_SIZE -of_objects $cc]
|
||||
|
||||
set_property -dict [list \
|
||||
"value_validation_type" "range_long" \
|
||||
"value_validation_range_minimum" "8" \
|
||||
|
@ -311,6 +317,7 @@ set_property -dict [list \
|
|||
set p [ipgui::get_guiparamspec -name "FIFO_SIZE" -component $cc]
|
||||
ipgui::move_param -component $cc -order 2 $p -parent $general_group
|
||||
set_property -dict [list \
|
||||
"widget" "comboBox" \
|
||||
"display_name" "FIFO Size (In Bursts)" \
|
||||
] $p
|
||||
|
||||
|
|
Loading…
Reference in New Issue