package hardcaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Read and write access for memories. They have much the same API as Nodes. and Regs except for an extra address argument.

type t
val width_in_bits : t -> Base.int
val size_in_words : t -> Base.int
val memory_size : t -> Base.int
val create_from_bits_mutable_array : Bits.Mutable.t Base.array -> t
val create_from_read_only_bits_array : Bits.t Base.array -> t
val create_from_signal : byte_address:Base.int -> data:Base.Bytes.t -> Signal.t -> t
val unsafe_set64 : t -> address:Base.int -> Base.int -> Base.Int64.t -> Base.unit
val unsafe_get64 : t -> address:Base.int -> Base.int -> Base.Int64.t
val set64 : t -> address:Base.int -> Base.int -> Base.Int64.t -> Base.unit
val get64 : t -> address:Base.int -> Base.int -> Base.Int64.t
val of_bits_mutable : t -> address:Base.int -> Bits.Mutable.t -> Base.unit
val to_bits_mutable : t -> address:Base.int -> Bits.Mutable.t -> Base.unit
val of_bits : t -> address:Base.int -> Bits.t -> Base.unit
val to_bits : t -> address:Base.int -> Bits.t
val to_int : t -> address:Base.int -> Base.int
val of_int : t -> address:Base.int -> Base.int -> Base.unit
val read_all : t -> Bits.t Base.array
OCaml

Innovation. Community. Security.