CY7C056V
CY7C057V
Document #: 38-06055 Rev. ** Page 16 of 23
Notes:
42. t
HA
depends on which enable pin (CE
0L
/CE
1L
or R/W
L
) is deasserted first.
43. t
INS
or t
INR
depends on which enable pin (CE
0L
/CE
1L
or R/W
L
) is asserted last.
Switching Waveforms (continued)
Interrupt Timing Diagrams
WRITE 3FFF (7FFF for CY7C057V)
t
WC
SideClears INT
R
:
t
HA
READ 3FFF
t
RC
t
INR
WRITE 3FFE (7FFE for CY7C057V)
t
WC
Right SideSets INT
L
:
Left Side Sets INT
R
:
Left Side Clears INT
L
:
READ 3FFE
t
INR
t
RC
ADDRESS
L
R/W
L
INT
L
OE
L
ADDRESS
R
R/W
R
INT
L
ADDRESS
R
R/W
R
INT
R
OE
R
ADDRESS
L
R/W
L
INT
R
t
INS
t
HA
t
INS
(7FFF for CY7C057V)
(7FFF for CY7C057V)
[42]
[43]
[43]
[43]
[42]
[43]
CE
0L
, CE
1L
CE
0R
, CE
1R
CE
0R
, CE
1R
CE
0L
,CE
1L
CHIP SELECT VALID
CHIP SELECT VALID
CHIP SELECT VALID
CHIP SELECT VALID
Right
CY7C056V
CY7C057V
Document #: 38-06055 Rev. ** Page 17 of 23
Architecture
The CY7C056V and CY7C057V consist of an array of 16K and
32K words of 36 bits each of dual-port RAM cells, I/O and
address lines, and control signals (CE
0
/CE
1
, OE, R/W). These
control pins permit independent access for reads or writes to any lo-
cation in memory. To handle simultaneous writes/reads to the same
location, a BUSY
pin is provided on each port. Two Interrupt (INT)
pins can be utilized for port-to-port communication. Two
Semaphore (SEM
) control pins are used for allocating shared
resources. With the M/S
pin, the devices can function as a
master (BUSY pins are outputs) or as a slave (BUSY pins are
inputs). The devices also have an automatic power-down fea-
ture controlled by CE
0
/CE
1
. Each port is provided with its own
Output Enable control (OE), which allows data to be read from
the device.
Functional Description
Write Operation
Data must be set up for a duration of t
SD
before the rising edge
of R/W
in order to guarantee a valid write. A write operation is con-
trolled by either the R/W
pin (see Write Cycle No. 1 waveform) or the
CE
0
and CE
1
pins (see Write Cycle No. 2 waveform). Required inputs
for non-contention operations are summarized in Table 1.
If a location is being written to by one port and the opposite
port attempts to read that location, a port-to-port flowthrough
delay must occur before the data is read on the output; other-
wise the data read is not deterministic. Data will be valid on the
port t
DDD
after the data is presented on the other port.
Read Operation
When reading the device, the user must assert both the OE
and CE
[3]
pins. Data will be available t
ACE
after CE or t
DOE
after OE
is asserted. If the user wishes to access a semaphore flag, then the
SEM
pin must be asserted instead of the CE
[3]
pin, and OE must also
be asserted.
Interrupts
The upper two memory locations may be used for message
passing. The highest memory location (3FFF for the
CY7C056V, 7FFF for the CY7C057V) is the mailbox for the
right port and the second-highest memory location (3FFE for
the CY7C056V, 7FFE for the CY7C057V) is the mailbox for the
left port. When one port writes to the other ports mailbox, an
interrupt is generated to the owner. The interrupt is reset when
the owner reads the contents of the mailbox. The message is
user defined.
Each port can read the other ports mailbox without resetting
the interrupt. The active state of the busy signal (to a port)
prevents the port from setting the interrupt to the winning port.
Also, an active busy to a port prevents that port from reading
its own mailbox and, thus, resetting the interrupt to it.
If an application does not require message passing, do not
connect the interrupt pin to the processors interrupt request
input pin.
The operation of the interrupts and their interaction with Busy
are summarized in Table 2.
Busy
The CY7C056V and CY7C057V provide on-chip arbitration to
resolve simultaneous memory location access (contention). If
both ports Chip Enables
[3]
are asserted and an address match
occurs within t
PS
of each other, the busy logic will determine which
port has access. If t
PS
is violated, one port will definitely gain permis-
sion to the location, but it is not predictable which port will get that
permission. BUSY
will be asserted t
BLA
after an address match or
t
BLC
after CE is taken LOW.
Master/Slave
A M/S
pin is provided in order to expand the word width by configuring
the device as either a master or a slave. The BUSY
output of the
master is connected to the BUSY
input of the slave. This will allow the
device to interface to a master device with no external components.
Writing to slave devices must be delayed until after the BUSY
input
has settled (t
BLC
or t
BLA
), otherwise, the slave chip may begin a write
cycle during a contention situation. When tied HIGH, the M/S pin al-
lows the device to be used as a master and, therefore, the BUSY
line
is an output. BUSY
can then be used to send the arbitration outcome
to a slave.
Semaphore Operation
The CY7C056V and CY7C057V provide eight semaphore
latches, which are separate from the dual-port memory loca-
tions. Semaphores are used to reserve resources that are
shared between the two ports. The state of the semaphore
indicates that a resource is in use. For example, if the left port
wants to request a given resource, it sets a latch by writing a
zero to a semaphore location. The left port then verifies its
success in setting the latch by reading it. After writing to the
semaphore, SEM
or OE must be deasserted for t
SOP
before at-
tempting to read the semaphore. The semaphore value will be avail-
able t
SWRD
+ t
DOE
after the rising edge of the semaphore write. If the
left port was successful (reads a 0), it assumes control of the shared
resource, otherwise (reads a 1) it assumes the right port has control
and continues to poll the semaphore. When the right side has relin-
quished control of the semaphore (by writing a 1), the left side will
succeed in gaining control of the semaphore. If the left side no longer
requires the semaphore, a one is written to cancel its request.
Semaphores are accessed by asserting SEM
LOW. The SEM
pin functions as a chip select for the semaphore latches. For normal
semaphore access, CE
[3]
must remain HIGH during SEM LOW. A
CE
active semaphore access is also available. The semaphore may
be accessed through the right port with CE
0R
/CE
1R
active by assert-
ing the Bus Match Select (BM) pin LOW and asserting the Bus Size
Select (SIZE) pin HIGH. The semaphore may be accessed through
the left port with CE
0L
/CE
1L
active by asserting all B
03
Byte Select
pins HIGH. A
02
represents the semaphore address. OE and R/W
are used in the same manner as a normal memory access. When
writing or reading a semaphore, the other address pins have no ef-
fect.
When writing to the semaphore, only I/O
0
is used. If a zero is
written to the left port of an available semaphore, a 1 will appear at the
same semaphore address on the right port. That semaphore can
now only be modified by the port showing 0 (the left port in this case).
If the left port now relinquishes control by writing a 1 to the sema-
phore, the semaphore will be set to 1 for both ports. However, if the
right port had requested the semaphore (written a 0) while the left port
had control, the right port would immediately own the semaphore as
soon as the left port released it. Table 3 shows sample semaphore
operations.
CY7C056V
CY7C057V
Document #: 38-06055 Rev. ** Page 18 of 23
Table 1. Non-Contending Read/Write
[3]
Inputs Outputs
CE R/W OE B
0
, B
1
, B
2
, B
3
SEM I/O
0
I/O
35
Operation
H X X X H High Z Deselected: Power-Down
X X X All H H High Z Deselected: Power-Down
L L X H/L H Data In and High Z Write to Selected Bytes Only
L L X All L H Data In Write to All Bytes
L H L H/L H Data Out and High Z Read Selected Bytes Only
L H L All L H Data Out Read All Bytes
X X H X X High Z Outputs Disabled
H H L X L Data Out Read Data in Semaphore Flag
X H L All H L Data Out Read Data in Semaphore Flag
H X X L Data In Write D
IN0
into Semaphore Flag
X X All H L Data In Write D
IN0
into Semaphore Flag
L X X Any L L Not Allowed
Table 2. Interrupt Operation Example (assumes BUSY
L
= BUSY
R
= HIGH)
[3, 44]
Left Port Right Port
Function R/W
L
CE
L
OE
L
A
0L13L
INT
L
R/W
R
CE
R
OE
R
A
0R13R
INT
R
Set Right INT
R
Flag L L X 3FFF X X X X X L
[46]
Reset Right INT
R
Flag X X X X X X L L 3FFF H
[45]
Set Left INT
L
Flag X X X X L
[45]
L L X 3FFE X
Reset Left INT
L
Flag X L L 3FFE H
[46]
X X X X X
Table 3. Semaphore Operation Example
Function I/O
0
I/O
8
Left I/O
0
I/O
8
Right Status
No Action 1 1 Semaphore Free
Left Port Writes 0 to Semaphore 0 1 Left Port Has Semaphore Token
Right Port Writes 0 to
Semaphore
0 1 No Change. Right Side Has No Write Access to
Semaphore
Left Port Writes 1 to Semaphore 1 0 Right Port Obtains Semaphore Token
Left Port Writes 0 to Semaphore 1 0 No Change. Left Port Has No Write Access to Semaphore
Right Port Writes 1 to
Semaphore
0 1 Left Port Obtains Semaphore Token
Left Port Writes 1 to Semaphore 1 1 Semaphore Free
Right Port Writes 0 to
Semaphore
1 0 Right Port Has Semaphore Token
Right Port Writes 1 to
Semaphore
1 1 Semaphore Free
Left Port Writes 0 to Semaphore 0 1 Left Port Has Semaphore Token
Left Port Writes 1 to Semaphore 1 1 Semaphore Free
Notes:
44. A
0L14L
and A
0R14R
, 7FFF/7FFE for the CY7C057V.
45. If BUSY
R
=L, then no change.
46. If BUSY
L
=L, then no change.

CY7C057V-15AC

Mfr. #:
Manufacturer:
Cypress Semiconductor
Description:
IC SRAM 1.152M PARALLEL 144TQFP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet