P4C
The P4 Compiler
Loading...
Searching...
No Matches
tofino/counter.h
1
17
18#ifndef BACKENDS_TOFINO_BF_ASM_TOFINO_COUNTER_H_
19#define BACKENDS_TOFINO_BF_ASM_TOFINO_COUNTER_H_
20
21#include "backends/tofino/bf-asm/tables.h"
22
23class Target::Tofino::CounterTable : public ::CounterTable {
24 friend class ::CounterTable;
25 CounterTable(int line, const char *n, gress_t gr, Stage *s, int lid)
26 : ::CounterTable(line, n, gr, s, lid) {}
27};
28
29template <>
30void CounterTable::setup_teop_regs(Target::Tofino::mau_regs &, int) {
31 BUG("teop not supported on tofino");
32}
33
34template <>
35void CounterTable::write_alu_vpn_range(Target::Tofino::mau_regs &) {
36 BUG("alu vpn not available on tofino");
37}
38
39#endif /* BACKENDS_TOFINO_BF_ASM_TOFINO_COUNTER_H_ */
Definition stage.h:123