projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50e4ee
)
printattrs: Add test.
author
Alberto Gonzalez
<boqwxp@airmail.cc>
Wed, 27 May 2020 07:58:10 +0000
(07:58 +0000)
committer
Alberto Gonzalez
<boqwxp@airmail.cc>
Wed, 27 May 2020 08:00:00 +0000
(08:00 +0000)
tests/various/printattr.ys
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/various/printattr.ys
b/tests/various/printattr.ys
new file mode 100644
(file)
index 0000000..
afc6d8e
--- /dev/null
+++ b/
tests/various/printattr.ys
@@ -0,0
+1,14
@@
+logger -expect log ".*cells_not_processed=[01]* .*" 1
+logger -expect log ".*src=.<<EOT:1\.1-9\.10. .*" 1
+read_verilog <<EOT
+module mux2(a, b, s, y);
+ input a, b, s;
+ output y;
+
+ wire s_n = ~s;
+ wire t0 = s & a;
+ wire t1 = s_n & b;
+ assign y = t0 | t1;
+endmodule
+EOT
+printattrs