diff options
author | whitequark <whitequark@whitequark.org> | 2020-05-28 10:25:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 10:25:34 +0000 |
commit | abac0ab28eda2c1b151be4660ff8638a4666156f (patch) | |
tree | 07a73c52aed57e7ea56120850b12e23aee80dc4e /tests | |
parent | 2384a59e2adea59c4240a10fc32a865f89a8e047 (diff) | |
parent | 5896ffd56f8d0653c9f7a71f18570d093fe669e8 (diff) | |
download | yosys-abac0ab28eda2c1b151be4660ff8638a4666156f.tar.gz yosys-abac0ab28eda2c1b151be4660ff8638a4666156f.tar.bz2 yosys-abac0ab28eda2c1b151be4660ff8638a4666156f.zip |
Merge pull request #2091 from boqwxp/printattrs
Add `printattrs` command to print attributes of currently selected objects.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/various/printattr.ys | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/various/printattr.ys b/tests/various/printattr.ys new file mode 100644 index 000000000..afc6d8eb6 --- /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 |