From 0ba99fcf6a5fc8e71de5d464df6b34f4fba3f7a3 Mon Sep 17 00:00:00 2001 From: Manuel Serrano Date: Sat, 30 Dec 2023 07:35:39 +0100 Subject: [PATCH] signal documentation --- doc/lang/signal.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lang/signal.md b/doc/lang/signal.md index 543dad19..b58ccac3 100644 --- a/doc/lang/signal.md +++ b/doc/lang/signal.md @@ -29,6 +29,7 @@ via an [interface declaration](./module.md##hiphop-interfaces) or inside an HipHop statement, with the [signal](./syntax/hiphop.bnf#HHSignal) construct. ### signal [direction] ident [= value] [combine function] ... ### +### signal implements [mirror] intf ... ### ☆ [Formal syntax](./syntax/syntax.bnf#HHSignal) @@ -64,6 +65,12 @@ The `.nowval` will contain all the values emitted during the reaction. ★ Example: [toggle.hh.js](../../test/toggle.hh.js) +The form `signal implements [mirror] intf` declares locally the +signals declared in the interface `intf`. The optional keyword +`mirror` swaps the input and output signals. + +★ Example: [imirror.hh.js](../../test/imirror.hh.js) + Variable Declarations ---------------------