NAME
Docs::Site_SVD::Data_SecsPack - pack and unpack numbers in accordance with SEMI E5-94
Title Page
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
1.0 SCOPE
This paragraph identifies and provides an overview of the released files.
1.1 Identification
This release, identified in 3.2, is a collection of Perl modules that extend the capabilities of the Perl language.
1.2 System overview
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.
The 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.
1.3 Document overview.
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.
3.0 VERSION DESCRIPTION
All file specifications in this SVD use the Unix operating system file specification.
3.1 Inventory of materials released.
This document releases the file
Data-SecsPack-0.06.tar.gz
found at the following repository(s):
http://www.softwarediamonds/packages/
http://www.perl.com/CPAN/authors/id/S/SO/SOFTDIA/
Restrictions regarding duplication and license provisions are as follows:
- Copyright.
-
copyright © 2003 Software Diamonds
- Copyright holder contact.
-
603 882-0846 E<lt>support@SoftwareDiamonds.comE<gt>
- License.
-
Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:
Redistributions of source code, modified or unmodified must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Commercial installation of the binary or source must visually present to the installer the above copyright notice, this list of conditions intact, that the original source is available at http://softwarediamonds.com and provide means for the installer to actively accept the list of conditions; otherwise, a license fee must be paid to Softwareware Diamonds.
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.
3.2 Inventory of software contents
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
3.3 Changes
Changes are as follows:
- Data::SecsPack 0.01
-
Originated
- Data::SecsPack 0.02
-
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.
- Data::SecsPack 0.03
-
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: nothingmuch@woobling.org perl5: (revision 5.0 version 8 subversion 3) configuration: Platform: osname=darwin, osvers=7.2.0, archname=ppc-darwin-thread-multi From: "Thurn, Martin" <martin.thurn@ngc.com> 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
inSecsPackStress.t
. Correctedpass_fail_tolerance
by detecting non-numeric data and returning a failure. Failure of UUTunpack_float
caused aundef
passed tobinary2hex
. Correctedbinary2hex
by detecting and changingundef
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 theData::BigInt
hash were correct just in a different format. For example,t/Data/SecsPackStress....# Test 2 got: 'U1[1] 80 L[4] A[0] A[5] ARRAY L[6] A[12] Math::BigInt A[4] HASH A[4] sign A[1] + A[5] value U1[1] 128 L[6] A[12] Math::BigInt A[4] HASH A[4] sign A[1] + A[5] value U1[1] 0 ' (t/Data/SecsPackStress.t at line 184) # Expected: 'U1[1] 80 U1[2] 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 withNot 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. ActiveStateMath::BigInt
was 0.01 while CPAN was 1.70. The difference between the two is night and day. InstallMath::BigInt
1.70. Tests fails the same as above.Corrected all
Data::SecsPack
subroutines to use new features and intefaces ofMath::BigInt
1.70 including a loaddie
if theMath::BitInt
version is not 1.70 or greaterReplaced 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 asrsft
do not not work completely in 1.0 but do in 1.70. Theunpack_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. - Data::SecsPack 0.04
-
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.Added the
ascii_float
option to thestr2float
subroutine. This is a new feature.Switch to
Data::Startup
for handling options. - Data::SecsPack 0.05
-
The
str2float
subroutine did not recognize 0 as a number. Added 0 to tests forstr2float
. - Data::SecsPack 0.06
-
Changed the required version for
Math::BigFloat
from 1.40 to 1.39. Somehow the perquisites have some mysterious behaviors.Failure:
From: mhoyt@houston.rr.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.
Moved the
str2int
andstr2float
subroutines to theData::Str2Num
package. This allows the used of these subroutines without include all of the E5 SEMI packing and unpacking of theData::SecsPack
package. This isolate the problems of getting the required versions ofMath::BigFloat
andMath::BigInt
support packages greatly reduced number of situations.
3.4 Adaptation data.
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.
3.5 Related documents.
There are no related documents needed for the installation and test of this release.
3.6 Installation instructions.
Instructions for installation, installation tests and installation support are as follows:
- Installation Instructions.
-
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:
http://packages.SoftwareDiamonds.com
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:
http://www.softwarediamonds/packages/ http://www.perl.com/CPAN/authors/id/S/SO/SOFTDIA/
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
http://packages.softwarediamonds.com
- Prerequistes.
-
'Math::BigInt' => '1.50', 'Math::BigFloat' => '1.39', 'Data::Startup' => '0.02', 'Data::Str2Num' => '0.05'
- Security, privacy, or safety precautions.
-
None.
- Installation Tests.
-
Most Perl installation software will run the following test script(s) as part of the installation:
t/Data/SecsPack.t t/Data/SecsPackStress.t
- Installation support.
-
If there are installation problems or questions with the installation contact
603 882-0846 E<lt>support@SoftwareDiamonds.comE<gt>
3.7 Possible problems and known errors
There is still much work needed to ensure the quality of this module as follows:
Increase the accuracy of packing floats with large exponents and unpacking floats.
State the functional requirements for each method including not only the GO paths but also what to expect for the NOGO paths
Most of the tests are GO path tests. Should add some more NOGO tests and review the test to see if they test each and every execution path.
Add requirements and trace between requirements and the test that verifies the requirement.
4.0 NOTES
The following are useful acronyms:
- .d
-
extension for a Perl demo script file
- .pm
-
extension for a Perl Library Module
- .t
-
extension for a Perl test script file
2.0 SEE ALSO
- SEMI, http://www.semi.org
- Data::Startup
- Data::SecsPack
- Docs::US_DOD::SVD
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 75:
Non-ASCII character seen before =encoding in '©'. Assuming CP1252