Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| std:start [2022/07/16 20:22] – created rajit | std:start [2025/09/16 14:33] (current) – [Runtime Functions] rajit | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Namespace std ====== | ====== Namespace std ====== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ====== Functions ====== | ||
| + | |||
| + | ===== Parameter-type functions ===== | ||
| + | |||
| + | <code act> | ||
| + | export function max(pint a, b) : pint; | ||
| + | </ | ||
| + | Returns the larger of the two '' | ||
| + | |||
| + | <code act> | ||
| + | export function min(pint a, b) : pint; | ||
| + | </ | ||
| + | Returns the smaller of the two '' | ||
| + | |||
| + | <code act> | ||
| + | export function ceil_log2 (pint a) : pint; | ||
| + | </ | ||
| + | Computes the smallest power of two that is at least as large as '' | ||
| + | |||
| + | <code act> | ||
| + | export function pow(pint n, m) : pint; | ||
| + | </ | ||
| + | Computes the quantity '' | ||
| + | |||
| + | ===== Runtime Functions ===== | ||
| + | |||
| + | <code act> | ||
| + | export template< | ||
| + | </ | ||
| + | Given the current '' | ||
| + | |||
| + | <code act> | ||
| + | export template< | ||
| + | </ | ||
| + | Given the current '' | ||
| + | |||
| + | |||
| + | |||
| + | ====== Definitions ====== | ||
| + | |||
| + | <code act> | ||
| + | export template< | ||
| + | defproc rom (chan? | ||
| + | </ | ||
| + | (This can be used after '' | ||
| + | |||
| + | <code act> | ||
| + | export template< | ||
| + | defproc ram (chan? | ||
| + | | ||
| + | </ | ||
| + | |||
| + | <code act> | ||
| + | export defcell buf_arbiter(bool? | ||
| + | </ | ||
| + | |||
| + | <code act> | ||
| + | export defcell ideal_arbiter(bool? | ||
| + | </ | ||
| + | |||
| + | <code act> | ||
| + | export template< | ||
| + | defproc arbiter(chan? | ||
| + | </ | ||
| + | |||
| + | ====== Nested namespaces ====== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | * [[data|data]]: | ||
| + | * [[channels|channels]]: | ||
| + | * [[gates|gates]]: | ||
| + | * [[cells|cells]]: | ||
| + | * [[io|io]]: Standard I/O primitives | ||
| + | * [[bit|bit]]: | ||
| + | |||