Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif()

# Define project
project(ReadoutCard
VERSION 0.45.6
VERSION 0.45.7
DESCRIPTION "O2 ReadoutCard library"
LANGUAGES C CXX
)
Expand Down
3 changes: 3 additions & 0 deletions doc/releaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ This file describes the main feature changes for released versions of ReadoutCar

## v0.45.6 - 07/02/2025
- Updated list of firmwares.

## v0.45.7 - 13/03/2025
- o2-roc-config: added (temporary) option --test-mode-ORC501 to enable testing of new firmware as described in [ORC-501](https://its.cern.ch/jira/browse/ORC-501).
11 changes: 11 additions & 0 deletions src/CommandLineUtilities/ProgramConfig.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ namespace po = boost::program_options;

std::string cmd; // program command invoked

namespace o2
{
namespace roc
{
extern bool testModeORC501; // testMode flag used for some FW dev, cf JIRA ORC-501
}
}

/// Get a status report of given card
std::string getStatusReport(Parameters::CardIdType cardId)
{
Expand Down Expand Up @@ -322,6 +330,9 @@ class ProgramConfig : public Program
options.add_options()("drop-bad-rdh",
po::bool_switch(&mOptions.dropBadRdhEnabled),
"Flag to enable dropping of packets with bad RDH");
options.add_options()("test-mode-ORC501",
po::bool_switch(&o2::roc::testModeORC501),
"Flag to enable test mode as described in JIRA ORC-501");
Options::addOptionCardId(options);
}

Expand Down
9 changes: 8 additions & 1 deletion src/Cru/CruBar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ namespace o2
namespace roc
{

bool testModeORC501 = false; // testMode flag used for some FW dev, cf JIRA ORC-501

using Link = Cru::Link;

CruBar::CruBar(const Parameters& parameters, std::unique_ptr<RocPciDevice> rocPciDevice)
Expand Down Expand Up @@ -776,9 +778,14 @@ void CruBar::configure(bool force)
}

if (mGbtEnabled /*|| !checkClockConsistent(reportInfo.linkMap)*/) {
if (testModeORC501) {
log("GBT : using test mode, cf JIRA ORC-501", LogInfoDevel_(4601));
}
Gbt gbt = Gbt(mPdaBar, mLinkMap, mWrapperCount, mEndpoint);
gbt.calibrateGbt(mLinkMap);
Cru::fpllref(mLinkMap, mPdaBar, 2);
if (!testModeORC501) { // testMode flag used for some FW dev, cf JIRA ORC-501
Cru::fpllref(mLinkMap, mPdaBar, 2);
}
Cru::fpllcal(mLinkMap, mPdaBar);
gbt.resetFifo();
}
Expand Down
5 changes: 4 additions & 1 deletion src/Cru/Gbt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ void Gbt::calibrateGbt(std::map<int, Link> linkMap)
{
//Cru::fpllref(linkMap, mPdaBar, 2); //Has been bound with clock configuration
//Cru::fpllcal(linkMap, mPdaBar); //same
cdrref(linkMap, 2);
extern bool testModeORC501; // testMode flag used for some FW dev, cf JIRA ORC-501
if (!testModeORC501) { // testMode flag used for some FW dev, cf JIRA ORC-501
cdrref(linkMap, 2);
}
txcal(linkMap);
rxcal(linkMap);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ReadoutCardVersion.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "ReadoutCard/Version.h"

#define O2_READOUTCARD_VERSION "0.45.6"
#define O2_READOUTCARD_VERSION "0.45.7"

namespace o2
{
Expand Down
Loading