axi_clkgen: Add type hints for parameters

Vivado infers the type of floating point type parameters as integer if the
value can be expressed as an integer (i.e. decimal places are 0). To
correctly infer them as floating point parameters add types to the
parameter declaration.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2017-04-20 19:22:12 +02:00
parent 844521c7b1
commit 886c818b72
1 changed files with 10 additions and 10 deletions

View File

@ -40,14 +40,14 @@ module axi_clkgen #(
parameter ID = 0,
parameter DEVICE_TYPE = 0,
parameter CLKIN_PERIOD = 5.0,
parameter CLKIN2_PERIOD = 5.0,
parameter VCO_DIV = 11,
parameter VCO_MUL = 49,
parameter CLK0_DIV = 6,
parameter CLK0_PHASE = 0.000,
parameter CLK1_DIV = 6,
parameter CLK1_PHASE = 0.000) (
parameter real CLKIN_PERIOD = 5.000,
parameter real CLKIN2_PERIOD = 5.000,
parameter integer VCO_DIV = 11,
parameter real VCO_MUL = 49.000,
parameter real CLK0_DIV = 6.000,
parameter real CLK0_PHASE = 0.000,
parameter integer CLK1_DIV = 6,
parameter real CLK1_PHASE = 0.000) (
// clocks