Skip to content

Commit

Permalink
fpga/ips: add invalidate method to AxisCache and whitelist the IP in …
Browse files Browse the repository at this point in the history
…hwdef-parse.py

Signed-off-by: Niklas Eiling <[email protected]>
  • Loading branch information
n-eiling committed Oct 31, 2024
1 parent f8401cf commit 5876bb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fpga/lib/ips/axis_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ using namespace villas::fpga::ip;

AxisCache::AxisCache() : Node() {}

bool AxisCache::init() { return true; }
bool AxisCache::init() {
invalidate();
return true;
}

bool AxisCache::check() {

Expand Down Expand Up @@ -47,6 +50,11 @@ bool AxisCache::check() {
return true;
}

void AxisCache::invalidate() {
setRegister(0, 1U << 31);
logger->info("invalidated AXIS cache.");
}

void AxisCache::setRegister(size_t reg, uint32_t value) {
if (reg >= registerNum) {
logger->error("Register index out of range: {}/{}", reg, registerNum);
Expand Down
2 changes: 2 additions & 0 deletions tools/hwdef-parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
["xilinx.com", "module_ref", "dinoif_dac"],
["xilinx.com", "module_ref", "axi_pcie_intc"],
["xilinx.com", "module_ref", "registerif"],
["xilinx.com", "module_ref", "axi_read_cache"],
["xilinx.com", "hls", "rtds2gpu"],
["xilinx.com", "hls", "mem"],
["acs.eonerc.rwth-aachen.de", "user", "axi_pcie_intc"],
Expand All @@ -69,6 +70,7 @@
["xilinx.com", "ip", "axis_register_slice"],
["xilinx.com", "ip", "axis_data_fifo"],
["xilinx.com", "ip", "floating_point"],
["xilinx.com", "module_ref", "prepend_seqnum"],
]

opponent = {
Expand Down

0 comments on commit 5876bb1

Please sign in to comment.