Docs::Site_SVD::Data_SecsPack - pack and unpack numbers in accordance with SEMI E5-94
Software Version Description for Docs::Site_SVD::Data_SecsPack - pack and unpack numbers in accordance with SEMI E5-94 Revision: E Version: 0.06 Date: 2004/05/21 Prepared for: General Public Prepared by: SoftwareDiamonds.com E<lt>support@SoftwareDiamonds.comE<gt> Copyright: copyright © 2003 Software Diamonds Classification: NONE
This paragraph identifies and provides an overview of the released files.
This release, identified in 3.2, is a collection of Perl modules that extend the capabilities of the Perl language.
The "Data::SecsPack" module extends the Perl language (the system).
The subroutines in the
Data::SecsPack module packs and unpacks numbers in accordance with SEMI E5-94. The E5-94 establishes the standard for communication between the equipment used to fabricate semiconductors and the host computer that controls the fabrication. The equipment in a semiconductor factory (fab) or any other fab contains every conceivable known microprocessor and operating system known to man. And there are a lot of specialize real-time embedded processors and speciallize real-time embedded operating systems in addition to the those in the PC world.
The communcication between host and equipment used packed nested list data structures that include arrays of characters, integers and floats. The standard has been in place and widely used in China, Germany, Korea, Japan, France, Italy and the most remote places on this planent for decades. The SEMI E5 standard was first finalized in 1985 and has not changed much over the decades. The basic data structure and packed data formats have not changed for decades. This stands in direct contradiction to common conceptions of many in the Perl snail-time community that there is no standard for transferring such things as binary floats between machines little less sending nested list data as small compact binary.
Data::Str2int module translates an scalar string to a scalar integer. Perl itself has a documented function, '0+$x', that converts a scalar to so that its internal storage is an integer (See p.351, 3rd Edition of Programming Perl). If it cannot perform the conversion, it leaves the integer 0. Surprising not all Perls, some Microsoft Perls in particular, may leave the internal storage as a scalar string.
The <str2int> function is basically the same except if it cannot perform the conversion to an integer, it returns an "undef" instead of a 0. Also, if the string is a decimal or floating point, it will return an undef. This makes it not only useful for forcing an integer conversion but also for testing a scalar to see if it is in fact an integer scalar.
This document releases Data::SecsPack version 0.06 providing a description of the inventory, installation instructions and other information necessary to utilize and track this release.
All file specifications in this SVD use the Unix operating system file specification.
This document releases the file
found at the following repository(s):
Restrictions regarding duplication and license provisions are as follows:
copyright © 2003 Software Diamonds
603 882-0846 E<lt>support@SoftwareDiamonds.comE<gt>
Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:
SOFTWARE DIAMONDS, http://www.SoftwareDiamonds.com, PROVIDES THIS SOFTWARE 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTWARE DIAMONDS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING USE OF THIS SOFTWARE, EVEN IF ADVISED OF NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE POSSIBILITY OF SUCH DAMAGE.
The content of the released, compressed, archieve file, consists of the following files:
file version date comment ------------------------------------------------------------ ------- ---------- ------------------------ lib/Docs/Site_SVD/Data_SecsPack.pm 0.06 2004/05/21 revised 0.05 MANIFEST 0.06 2004/05/21 generated, replaces 0.05 Makefile.PL 0.06 2004/05/21 generated, replaces 0.05 README 0.06 2004/05/21 generated, replaces 0.05 lib/Data/SecsPack.pm 0.08 2004/05/21 revised 0.06 t/Data/SecsPack.d 0.04 2004/05/10 unchanged t/Data/SecsPack.pm 0.04 2004/05/10 unchanged t/Data/SecsPack.t 0.04 2004/05/10 unchanged t/Data/SecsPackStress.d 0.02 2004/05/01 unchanged t/Data/SecsPackStress.pm 0.02 2004/05/01 unchanged t/Data/SecsPackStress.t 0.02 2004/05/01 unchanged t/Data/File/Package.pm 1.17 2004/05/21 unchanged t/Data/Test/Tech.pm 1.26 2004/05/21 revised 1.23 t/Data/Data/Secs2.pm 1.26 2004/05/21 revised 1.21 t/Data/Data/Startup.pm 0.07 2004/05/21 revised 0.05 t/Data/Data/Str2Num.pm 0.07 2004/05/21 new
Changes are as follows:
Adding support for packing and unpacking floats and flushing out to provide full support for packing and unpacking all SEMI E5-94 SECSII numeric formats.
There were the same test software failures and Unit Under Test (UUT) failures for the following platforms:
Subject: FAIL Data-SecsPack-0.02 ppc-darwin-thread-multi 7.2.0 From: email@example.com perl5: (revision 5.0 version 8 subversion 3) configuration: Platform: osname=darwin, osvers=7.2.0, archname=ppc-darwin-thread-multi From: "Thurn, Martin" <firstname.lastname@example.org> Subject: FAIL Data-SecsPack-0.02 sun4-solaris-thread-multi 2.8 perl5: (revision 5.0 version 9 subversion 0) Platform: osname=solaris, osvers=2.8, archname=sun4-solaris-thread-multi
The test software failures were caused by invalid data from the UUT failure. The UUT failures caused non-numeric data for
pass_fail_tolerance by detecting non-numeric data and returning a failure. Failure of UUT
unpack_float caused a
undef passed to
binary2hex by detecting and changing
undef to to
There were two groups of UUT failures.
In the first group the test results were as the test results was two member array of
Math::BigInt number hash while the test was expecting just two simple Perl numbers. The numbers in the
Data::BigInt hash were correct just in a different format. For example,
t/Data/SecsPackStress....# Test 2 got: 'U1 80 L A A ARRAY L A Math::BigInt A HASH A sign A + A value U1 128 L A Math::BigInt A HASH A sign A + A value U1 0 ' (t/Data/SecsPackStress.t at line 184) # Expected: 'U1 80 U1 128 0 '
The second group of failures the UUT
unpack_float subroutine is always returning a NaN. This subroutine heavily uses the native floating point for calcuations and it appears to be limiting out with
Not a Number type error.
# Test 27 got: '0' (t/Data/SecsPackStress.t at line 396 fail #2) # Expected: '1' (got: NaN, expected: -10.5 # actual tolerance: NaN, expected tolerance: 0.0001)
Check version of
Math::BigInt in the ActiveState Perl 5.06 distribution to those on CPAN. ActiveState
Math::BigInt was 0.01 while CPAN was 1.70. The difference between the two is night and day. Install
Math::BigInt 1.70. Tests fails the same as above.
Data::SecsPack subroutines to use new features and intefaces of
Math::BigInt 1.70 including a load
die if the
Math::BitInt version is not 1.70 or greater
Replaced as many native float operations as possible with many new
Math::BigInt subroutines in Version 1.70 as possible. Removed work arounds for subroutines such as
rsft do not not work completely in 1.0 but do in 1.70. The
unpack_float subroutine does not depend heavily on native float which comes in a different flavor for each and every site. There may be exceptions to this statement but if they are, they a few and far between.
The anticipation was that there would be minor differences in floating point numbers due to different native floating point implementations. This concern did not materialize. In addition,
Data::BigFloat replaced all native floating points. Since floating point differences are no longer anticipation, removed all tolerance criteria from the test scripts. To pass the tests, the results will now have to be exactly as expected.
Added the formats U8 and S8 to allowable formats for
unpack_int. This was an oversight, a mistake.
ascii_float option to the
str2float subroutine. This is a new feature.
Data::Startup for handling options.
str2float subroutine did not recognize 0 as a number. Added 0 to tests for
Changed the required version for
Math::BigFloat from 1.40 to 1.39. Somehow the perquisites have some mysterious behaviors.
From: email@example.com Subject: FAIL Tie-Layers-0.04 darwin-thread-multi-2level 7.0
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/Tie/Layers.t t/Tie/Layers....Math::BigFloat version 1.4 required--this is only version 1.39
Documentation woes. The SEMI link does not work on. Changed to SEMI, http://www.semi.org.
str2float subroutines to the
Data::Str2Num package. This allows the used of these subroutines without include all of the E5 SEMI packing and unpacking of the
Data::SecsPack package. This isolate the problems of getting the required versions of
Math::BigInt support packages greatly reduced number of situations.
This installation requires that the installation site has the Perl programming language installed. There are no other additional requirements or tailoring needed of configurations files, adaptation data or other software needed for this installation particular to any installation site.
There are no related documents needed for the installation and test of this release.
Instructions for installation, installation tests and installation support are as follows:
To installed the release file, use the CPAN module pr PPM module in the Perl release or the INSTALL.PL script at the following web site:
Follow the instructions for the the chosen installation software.
If all else fails, the file may be manually installed. Enter one of the following repositories in a web browser:
Right click on 'Data-SecsPack-0.06.tar.gz' and download to a temporary installation directory. Enter the following where $make is 'nmake' for microsoft windows; otherwise 'make'.
gunzip Data-SecsPack-0.06.tar.gz tar -xf Data-SecsPack-0.06.tar perl Makefile.PL $make test $make install
On Microsoft operating system, nmake, tar, and gunzip must be in the exeuction path. If tar and gunzip are not install, download and install unxutils from
'Math::BigInt' => '1.50', 'Math::BigFloat' => '1.39', 'Data::Startup' => '0.02', 'Data::Str2Num' => '0.05'
Most Perl installation software will run the following test script(s) as part of the installation:
If there are installation problems or questions with the installation contact
603 882-0846 E<lt>support@SoftwareDiamonds.comE<gt>
There is still much work needed to ensure the quality of this module as follows:
The following are useful acronyms:
extension for a Perl demo script file
extension for a Perl Library Module
extension for a Perl test script file