File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ include ${PSS_HOME}/issue/Make.vars
2
+
3
+ gentarget :
4
+ $(PSSGEN ) test.pss -o test.s -root pss_top::root_a || true
5
+
6
+ clean :
7
+ rm -f test.s result.log
Original file line number Diff line number Diff line change
1
+ /*!
2
+ @weakgroup issue
3
+ @{
4
+ @file
5
+ @author Luther Lee
6
+ @data 2024/07/03
7
+ @brief Test issue 22.
8
+
9
+
10
+ ---------------------------------------------------------------------------------------------------
11
+
12
+ ### Test Command
13
+ @code{.unparsed}
14
+ make
15
+ @endcode
16
+
17
+ @cond
18
+ */
19
+ component pss_top {
20
+ action root_a {
21
+ activity {
22
+ do invertSingleBit with { val in [0]; };
23
+ do invertSingleBit with { val in [1]; };
24
+ }
25
+ }
26
+
27
+ action invertSingleBit {
28
+ rand bit val;
29
+ bit val_n;
30
+
31
+ exec post_solve {
32
+ val_n = ~val;
33
+ }
34
+
35
+ exec body ASM = """invertSingleBit: {{val}} -> {{val_n}}""";
36
+ }
37
+ }
38
+
39
+ /**@}*/
Original file line number Diff line number Diff line change
1
+ invertSingleBit: 0 -> 1
2
+ invertSingleBit: 1 -> 0
You can’t perform that action at this time.
0 commit comments