package p4spectec

  1. Overview
  2. Docs
P4-SpecTec: A mechanization toolchain for the P4 Programming Language

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.2.tar.gz
md5=1a3bc0a385fe1ecf403c019f49aa6de6
sha512=5d20b5821f33e2a3a5419b208606f27c01511994c2b3b1e1cdf4c077056dfd0aa81682af0720e1060ee2bfb0341918fcc4c53159820205a2bc32b725e5c1a714

doc/p4spectec.backend_sim/Backend_sim/Spec_impl/Unpack/index.html

Module Spec_impl.Unpack

module Num = Lang.Xl.Num
module Value = Runtime.Value
val assoc_args : Value.t -> Value.t -> (string * Value.t) list
val first : ('a -> 'b option) list -> 'a -> 'b option
val unpack_p4_bool : Value.t -> bool
val unpack_p4_string : Value.t -> string
val unpack_p4_fixedBit : Value.t -> Bigint.t * Bigint.t
val unpack_p4_fixedInt : Value.t -> Bigint.t * Bigint.t
val unpack_p4_variableBit : Value.t -> Bigint.t * Bigint.t * Bigint.t
val unpack_p4_precision_numberValue : Value.t -> Bigint.t * Bigint.t
val unpack_p4_tuple : Value.t -> Value.t list
val unpack_p4_enum : Value.t -> string * string
val unpack_p4_sequence : Value.t -> Value.t list