src/xilinx: zynqXX: load only (#268)

This commit is contained in:
Gwenhael Goavec-Merou 2022-11-20 17:08:49 +01:00
parent 2df7606300
commit 13fa66bc22
1 changed files with 4 additions and 0 deletions

View File

@ -62,7 +62,11 @@ Xilinx::Xilinx(Jtag *jtag, const std::string &filename,
_fpga_family = SPARTAN7_FAMILY;
} else if (family == "zynq") {
_fpga_family = ZYNQ_FAMILY;
if (_mode != Device::MEM_MODE)
throw std::runtime_error("Error: can't flash Zynq7000");
} else if (family.substr(0, 6) == "zynqmp") {
if (_mode != Device::MEM_MODE)
throw std::runtime_error("Error: can't flash ZynqMP");
if (!zynqmp_init(family))
throw std::runtime_error("Error with ZynqMP init");
_fpga_family = ZYNQMP_FAMILY;