Skip to content

Commit

Permalink
[patch] Use real intrinsic in example
Browse files Browse the repository at this point in the history
Use a real intrinsic (not a fake, made up one) in the example involving
intrinsic modules.  This is necessary for testing as this will not compile
otherwise.  This is assumed to be better than using a fake intrinsic and
then not checking the code snippet.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Mar 17, 2024
1 parent 1dcc67b commit a6d2024
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions revision-history.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ revisionHistory:
- Add "enablelayer" to grammar.
- Main module must be public.
- Make commas mandatory, not whitespace.
- Update intrinsic module example to use a real intrinsic.
abi:
- Add ABI for public modules and filelist output.
- Changed ABI for group and ref generated files.
Expand Down
13 changes: 6 additions & 7 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,12 @@ FIRRTL version 4.0.0
circuit Foo :
public module Foo :
;; snippetbegin
intmodule MyIntrinsicModule_xhello_y64 :
input foo: UInt
output bar: UInt<4>
output baz: SInt<8>
intrinsic = IntrinsicName
parameter x = "hello"
parameter y = 42
intmodule LTLDelay:
input in: UInt<1>
output out: UInt<1>
intrinsic = circt_ltl_delay
parameter delay = 1
parameter length = 0
;; snippetend
```

Expand Down

0 comments on commit a6d2024

Please sign in to comment.