6.42
IDT71342SA/LA
High-Speed 4K x 8 Dual-Port Static RAM with Semaphore Industrial and Commercial Temperature Ranges
13
SEMAPHORE
REQUEST FLIP FLOP
DQ
SEMAPHORE
REQUEST FLIP FLOP
QD
WRITE
D
0
SEMAPHORE
READ
SEMAPHORE
READ
D
0
WRITE
RPORT
LPORT
2721 drw 14
semaphores on both sides should have a one written into them at
initialization from both sides to assure that they will be free when
needed.
Using Semaphores–Some
examples
Perhaps the simplest application of semaphores is their application
as resource markers for the IDT71342’s Dual-Port RAM. Say the 4K
x 8 RAM was to be divided into two 2K x 8 blocks which were to be
dedicated at any one time to servicing either the left or right port.
Semaphore 0 could be used to indicate the side which would control
the lower section of memory, and Semaphore 1 could be defined as the
indicator for the upper section of the memory.
To take a resource, in this example the lower 2K of Dual-Port RAM,
the processor on the left port could write and then read a zero into
Semaphore 0. If this task were successfully completed (a zero was
read back rather than a one), the left processor would assume control
of the lower 2K. Meanwhile, the right processor would attempt to
perform the same function. Since this processor was attempting to
gain control of the resource after the left processor, it would read back
a one in response to the zero it had attempted to write into Semaphore
0. At this point, the software could choose to try and gain control of the
second 2K section by writing, then reading a zero into Semaphore 1.
If it succeeded in gaining control, it would lock out the left side.
Once the left side was finished with its task, it would write a one to
Semaphore 0 and may then try to gain access to Semaphore 1. If
Semaphore 1 was still occupied by the right side, the left side could
undo its semaphore request and perform other tasks until it was able
to write, then read a zero into Semaphore 1. If the right processor
performs a similar task with Semaphore 0, this protocol would allow the
two processors to swap 2K blocks of Dual-Port RAM with each other.
The blocks do not have to by any particular size and can even be
variable, depending upon the complexity of the software using the
semaphore flags. All eight semaphores could be used to divide the
Dual-Port RAM or other shared resources into eight parts. Semaphores
can even be assigned different meanings on different sides rather than
being given a common meaning as was shown in the example above.
Semaphores are a useful form of arbitration in systems like disk
interfaces where the CPU must be locked out of a section of memory
during a transfer and the I/O device cannot tolerate any wait states.
With the use of semaphores, once the two devices had determined
which memory area was “off limits” to the CPU, both the CPU and the
I/O devices could access their assigned portions of memory continuously
without any wait states.
Semaphores are also useful in applications where no memory
“WAIT” state is available on one or both sides. Once a semaphore
handshake has been performed, both processors can access their
assigned RAM segments at full speed.
Another application is in the area of complex data structures. In this
case, block arbitration is very important. For this application one
processor may be responsible for building and updating a data
structure. The other processor then reads and interprets that data
structure. If the interpreting processor reads an incomplete data
structure, a major error condition may exist. Therefore, some sort of
arbitration must be used between the two different processors. The
building processor arbitrates for the block, locks it and then is able to
go in and update the data structure. When the update is completed, the
data structure block is released. This allows the interpreting processor
to come back and read the complete data structure, thereby
guaranteeing a consistent data structure.
Figure 3. IDT71342 Semaphore Logic
6.42
IDT71342SA/LA
High-Speed 4K x 8 Dual-Port Static RAM with Semaphore Industrial and Commercial Temperature Ranges
14
Ordering Information
The IDT logo is a registered trademark of Integrated Device Technology, Inc.
Datasheet Document History
01/12/99: Initiated datasheet document history
Converted to new format
Cosmetic and typographical corrections
Added additional notes to pin configurations
06/09/99: Changed drawing format
10/01/99: Added Industrial Temperature Ranges and removed corresponding notes
11/10/99: Replaced IDT Logo
12/22/99: Page 1 Made corrections to drawing
06/26/00: Page 3 Increased storage temperature parameters
Clarified TA parameter
Page 4 DC Electrical parameters–changed wording from "open" to "disabled"
Changed ±500mV to 0mV in notes
01/12/00: Pages 1 & 2 Moved "Description" to page 2 and adjusted page layouts
Page 1 Added "(LA only)" to paragraph
Page 2 Fixed J52 package description in notes
Page 8 Replaced bottom table with correct 10b table
01/29/09: Page 14 Removed "IDT" from orderable part number
09/26/12: Page 1 Industrial speed access update for 35 & 55
Page 2 Removed "IDT's" from description text
Page 3 Removed footnote notation from PT in Absolute Maximum Ratings table 01
Page 4, 6 & 8 Replaced "& Ind" with Com'l only for speed grades 35 & 55 in the DC Chars, AC Chars Read & Write tables
06a, 06b, 09a, 09b, 10a & 10b
Page 12 Added the word "system" to How the Semaphore Flags Work paragraph
Page 12 Corrected equation for footnote 1 . Changed symbol "=" to - and
"1"
to not equal ()
Page 14 Added T&R and Green indicators to the ordering information as well as updated the "commercial only"
offering for speed grades 35 & 55
CORPORATE HEADQUARTERS for SALES: for Tech Support:
6024 Silver Creek Valley Road 800-345-7015 or 408-284-8200 408-284-2794
San Jose, CA 95138 fax: 408-284-2775 DualPortHelp@idt.com
www.idt.com
2721 drw 15
XXXX A 999 A A
Device Type Power Speed Package
Process/
Temperature
Range
Blank
I
J
PF
20
25
35
45
55
70
SA
LA
71342
Commercial (0°C to +70°C)
Industrial (-40°C to +85°C)
52-pin PLCC (J52-1)
64-pin TQFP (PN64-1)
Speed in nanoseconds
Standard Power
Low Power
32K (4K x 8-Bit) Dual-Port RAM w/ Semaphore
Commercial Only
Commercial & Industrial
Commercial Only
Commercial Only
Commercial Only
Commercial Only
G
Green
Blank
8
Tube or Tray
Tape and Reel
A
A

71342SA25PF

Mfr. #:
Manufacturer:
IDT
Description:
SRAM 32K (4KX8) CMOS DUAL PORT
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union