mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-12 21:03:53 +01:00
nios kernel update takes time, simulating
This commit is contained in:
1 parent
0090c183bf
commit
d9168803ae
2 files changed
+16
-7
No files matched your search
@@ -3528,17 +3528,24 @@ void Module::sendProgram(bool blackfin, std::vector<char> buffer,
|
||||
<< shm()->hostname << ")";
|
||||
|
||||
// simulating erasing and writing to
|
||||
if (functionEnum == F_PROGRAM_FPGA) {
|
||||
if (blackfin) {
|
||||
if (blackfin) {
|
||||
if (functionEnum == F_PROGRAM_FPGA) {
|
||||
simulatingActivityinDetector("Erasing Flash",
|
||||
BLACKFIN_ERASE_FLASH_TIME);
|
||||
simulatingActivityinDetector("Writing to Flash",
|
||||
BLACKFIN_WRITE_TO_FLASH_TIME);
|
||||
} else {
|
||||
}
|
||||
} else {
|
||||
if (functionEnum == F_PROGRAM_FPGA) {
|
||||
simulatingActivityinDetector("Erasing Flash",
|
||||
NIOS_ERASE_FLASH_TIME);
|
||||
NIOS_ERASE_FLASH_TIME_FPGA);
|
||||
simulatingActivityinDetector("Writing to Flash",
|
||||
NIOS_WRITE_TO_FLASH_TIME);
|
||||
NIOS_WRITE_TO_FLASH_TIME_FPGA);
|
||||
} else if (functionEnum == F_UPDATE_KERNEL) {
|
||||
simulatingActivityinDetector("Erasing Flash",
|
||||
NIOS_ERASE_FLASH_TIME_KERNEL);
|
||||
simulatingActivityinDetector("Writing to Flash",
|
||||
NIOS_WRITE_TO_FLASH_TIME_KERNEL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -757,8 +757,10 @@ class Module : public virtual slsDetectorDefs {
|
||||
mutable sls::SharedMemory<sharedModule> shm{0, 0};
|
||||
static const int BLACKFIN_ERASE_FLASH_TIME = 65;
|
||||
static const int BLACKFIN_WRITE_TO_FLASH_TIME = 30;
|
||||
static const int NIOS_ERASE_FLASH_TIME = 10;
|
||||
static const int NIOS_WRITE_TO_FLASH_TIME = 45;
|
||||
static const int NIOS_ERASE_FLASH_TIME_FPGA = 10;
|
||||
static const int NIOS_WRITE_TO_FLASH_TIME_FPGA = 45;
|
||||
static const int NIOS_ERASE_FLASH_TIME_FPGA = 9;
|
||||
static const int NIOS_WRITE_TO_FLASH_TIME_FPGA = 39;
|
||||
};
|
||||
|
||||
} // namespace sls
|
||||
Reference in new issue
Block a user