Hello guys,
I still trying the find a possible solution for my issue.
I do not have hard skills in fpga but I am trying to dig it deeper and will appreciate if you could help me with understanding when there is a mistake in my conclusions.
As I said before enabling of at least the only PWM out leads to error I will focus on the single pin PWMAOutPin
Code:
IOPortTag & x"00" & PWMTag & PWMAOutPin, -- I/O 0 PWM OUT
According to the error message and your help I see that the problem is in different sites used for PWM module clocking and the component "SP6_BUFIO_INSERT_ML_BUFIO2_1".
First problem is that I do not understand what the component it is... It looks like some kind of implicitly named component of the design. I just assume that it is something related to the PWM module.
In
TopGCSPIHostMot2.vhd line 306
I found the confirmation that the PWM clock frequency should be 200 MHz:
Code:
clkhigh => fclk, -- PWM clock
fclk is the output of the BUFG_inst0 where the input is clkfx0, which is CLKFX endpoint of ClockMultH digital clock manager, which is
Code:
Oscillator's CLK (25) MHz * CLKFX_MULTIPLY (16) / CLKFX_DIVIDE (2) = 200 MHz
So it looks like the truth: PWM module depends on the CLK which is package pin M9 and in PlanAhead I see for it:
Code:
Instance: CLK_IBUFG
Net: CLK
Package pin: M9
Site type: IO_L29P_GCLK3_2
Bank: I/O Bank: 2 (Standard)
Tile: BIOB_X12Y0
Clock region: X1Y0
As I also see: clock region X1Y0 is the bottom right part of the crystal.
In UG382 I found that BUFIO2_X4Y21 is related to Bank 1:
Code:
GCLK_10 <BUFIO2_X4Y21>
GCLK_6 <BUFIO2_X4Y21>
I understand that I need to somehow create a LOC constraint.
In the Constraints Guide I found the following example:
Code:
INST “instance_name ” LOC=location;
But I do not know what it means "SP6_BUFIO_INSERT_ML_BUFIO2_1"? I can't find anything with that name in PlanAhead. If it is a primitive, how can I find it?
What location should be in my case - some free BIOB_ from clock region X1Y0, for example BIOB_SINGLE_X13Y0 or BIOB_X15Y0?
I will appreciate the further help.