diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-22 14:37:14 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-22 14:37:14 +0200 |
commit | ba83a7bdc641c68344b41f407323c76b8c62c674 (patch) | |
tree | 377d62224e1a5713f89f52c6b1f28cd61011aa75 | |
parent | e218f0eacf7cbcfa0736cb2d66bba0010e8e6799 (diff) | |
download | yosys-ba83a7bdc641c68344b41f407323c76b8c62c674.tar.gz yosys-ba83a7bdc641c68344b41f407323c76b8c62c674.tar.bz2 yosys-ba83a7bdc641c68344b41f407323c76b8c62c674.zip |
Added DPI-C documentation to README file
-rw-r--r-- | README | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -317,6 +317,18 @@ Verilog Attributes and non-standard features ... endmodule +- A limited subset of DPI-C functions is supported. The plugin mechanism + (see "help plugin") can be used load .so files with implementations of + DPI-C routines. As a non-standard extension it is possible to specify + a plugin alias using the "<alias>:" syntax. for example: + + module dpitest; + import "DPI-C" function foo:round = real my_round (real); + parameter real r = my_round(12.345); + endmodule + + $ yosys -p 'plugin -a foo -i /lib/libm.so; read_verilog dpitest.v' + - Sized constants (the syntax <size>'s?[bodh]<value>) support constant expressions as <size>. If the expresion is not a simple identifier, it must be put in parentheses. Examples: WIDTH'd42, (4+2)'b101010 |