From 66d3ec0498a73319a914eeffcb4e0b1109b5f4c5 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 23 Nov 2016 11:57:02 -0800 Subject: Stringified annotations (#367) Restricts annotations to be string-based (and thus less typesafe) Makes annotations more easily serializable and interact with Chisel--- .../resources/annotations/SampleAnnotations.anno | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/test/resources/annotations/SampleAnnotations.anno (limited to 'src/test/resources/annotations') diff --git a/src/test/resources/annotations/SampleAnnotations.anno b/src/test/resources/annotations/SampleAnnotations.anno new file mode 100644 index 00000000..8fa9f44f --- /dev/null +++ b/src/test/resources/annotations/SampleAnnotations.anno @@ -0,0 +1,30 @@ +- transformClass: firrtl.passes.InlineInstances + targetString: ModC + value: ModC.this params 16 32 +- transformClass: firrtl.passes.InlineInstances + targetString: ModC.io.out + value: ModuleC(16,32) width < 32 +- transformClass: firrtl.passes.InlineInstances + targetString: ModA + value: ModA.this +- transformClass: firrtl.passes.InlineInstances + targetString: ModA.io.out + value: inside ModA.io.out params 64,64 +- transformClass: firrtl.passes.InlineInstances + targetString: ModC_1 + value: ModC.this params 42 77 +- transformClass: firrtl.passes.InlineInstances + targetString: ModC_1.io.out + value: ModuleC(42,77) width < 77 +- transformClass: firrtl.passes.InlineInstances + targetString: ModB.io.out + value: inside ModB.io.out params 32,48 +- transformClass: firrtl.passes.InlineInstances + targetString: TopOfDiamond + value: |- + TopOfDiamond + With + Some new lines +- transformClass: firrtl.passes.InlineInstances + targetString: ModB.io.in + value: TopOfDiamond.moduleB.io.in -- cgit v1.2.3