Hi, I would like to request that the specification clarify how strings are returned in some PLI functions. The tf_getcstringp() clearly states: a) Eliminating leading zeros b) Converting each group of 8 bits to an ASCII character c) Adding a \0 string termination character to the end However, acc_fetch_tfarg_str(), acc_fetch_value() and vpi_get_value() say nothing about how strings should be returned. Here is the results from a major commercial simulator for the test case attached. display(), s: test display(), t: .txt display(), r: test .txt tf_getcstringp(): arg1 = test.txt tf_getcstringp(): arg1 = test.txt acc_fetch_tfarg_str(): arg1 = test .txt acc_fetch_tfarg_str(): arg1 = test .txt acc_fetch_value(): arg1 = test .txt acc_fetch_value(): arg1 = test .txt vpi_get_value(): test .txt vpi_get_value(): test .txt In this simulator these functions don't follow the same rules as tf_getcstringp() but they are consistent with $display. Regards, Jason Campbell WinterLogic Inc -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
This archive was generated by hypermail 2.1.8 : Wed Sep 23 2009 - 13:17:57 PDT