P4C
The P4 Compiler
Loading...
Searching...
No Matches
bf-asm/tofino/meter.h
1
17
18#ifndef BACKENDS_TOFINO_BF_ASM_TOFINO_METER_H_
19#define BACKENDS_TOFINO_BF_ASM_TOFINO_METER_H_
20
21#include "backends/tofino/bf-asm/tables.h"
22
23class Target::Tofino::MeterTable : public ::MeterTable {
24 friend class ::MeterTable;
25 MeterTable(int line, const char *n, gress_t gr, Stage *s, int lid)
26 : ::MeterTable(line, n, gr, s, lid) {}
27};
28
29template <>
30void MeterTable::setup_teop_regs(Target::Tofino::mau_regs &, int) {
31 BUG("teop not supported on tofino");
32}
33
34template <>
35void MeterTable::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_METER_H_ */
Definition stage.h:123