| AI Engine-ML v2 Intrinsics User Guide v2025.2

Loading...
Searching...
No Matches
Stream access

These functions setup stream accesses in native mode. More...

## Open and close
These functions are not intrinsics and exist to facilitate the creation of "testbench" code for native mode.
void | open_ss (std::string const &filename, int width)
void | open_ms (std::string const &filename, int width)
void | open_scd (std::string const &filename, int width)
void | open_mcd (std::string const &filename, int width)
void | close_ss ()
void | close_ms ()
void | close_scd ()
void | close_mcd ()

## Detailed Description

These functions setup stream accesses in native mode.

Streams are connected to some source/destination outside of the core. In the mesimulator setup they are connected to a file. In native there exists only the kernel code. These functions therefore connect a stream to a file under the hood. "open_ss0" for example allocates a file object. Further calls to "get_ss" will read from this internally.

Read and write to streams as normal. See Streams.

## Function Documentation

## ◆ close_mcd()

void close_mcd | ( |  | ) |

## ◆ close_ms()

void close_ms | ( |  | ) |

## ◆ close_scd()

void close_scd | ( |  | ) |

## ◆ close_ss()

void close_ss | ( |  | ) |

## ◆ open_mcd()

void open_mcd | ( | std::string const & | filename,
|  | int | width )

## ◆ open_ms()

void open_ms | ( | std::string const & | filename,
|  | int | width )

## ◆ open_scd()

void open_scd | ( | std::string const & | filename,
|  | int | width )

## ◆ open_ss()

void open_ss | ( | std::string const & | filename,
|  | int | width )