add write_cmd_spll for designs without PLLs

This commit is contained in:
Miodrag Milanovic 2025-10-22 09:14:51 +02:00
parent 1ab0612d22
commit e5df2fd309
2 changed files with 8 additions and 1 deletions

View File

@ -204,6 +204,9 @@ CMD_SPLL
There are two configuration sets, that could be set for each PLL.
.. warning::
Value 0x00 is special case and it is used for writing to all 4 PLLs, same as 0x0F
CMD_WAIT_PLL
-------------

View File

@ -961,6 +961,10 @@ Bitstream Bitstream::serialise_chip(const Chip &chip, const std::map<std::string
size = Die::PLL_CFG_SIZE + Die::CLKIN_CFG_SIZE;
if (!die.is_glbout_cfg_empty())
size = Die::PLL_CFG_SIZE + Die::CLKIN_CFG_SIZE + Die::GLBOUT_CFG_SIZE;
// Since it is not possible to skip writing to PLL configuration
// we overwrite B configuration of last PLL with all zeros in this case.
// This is needed for reconfigurable bitstreams not to affect PLL of bootloader.
wr.write_cmd_spll(0x80);
wr.write_cmd_pll(0, die_config, size);
}