Inc. Portable Generator User Manual

102 Xilinx Development System
Xilinx System Generator v2.1 Reference Guide
Memory
This section contains Xilinx blocks that use Xilinx memory LogiCOREs.
Dual Port RAM
The Xilinx Dual Port RAM block implements a random access
memory (RAM).
Block Interface
The block has two independent sets of ports for simultaneous reading and writing.
Each port set has one output port and three input ports for address, input data, and
write enable (WE). The Dual Port RAM block supports various Form Factors,
FF = W
B
/ W
A
where W
B
is data width of Port B and W
A
is Data Width of Port A.
The Dual port RAM block allows FF of 1, 2,4, 8, 16 for Virtex and1, 2,4, 8,16 or 32 for
Virtex-II device families, provided that:
Mod [ ( D
A
x W
A
) , W
B
] = 0 for a given FF
where
D
A
: Depth specified for Port A
The Depth of port B (D
B
) is inferred from the specified form factor as follows: D
B
=
D
A
/ FF.
The data input ports on Port A and B can have different arithmetic type and binary
point position for a form factor of 1. For form factors greater than 1, the data input
ports on PortA and Port Bshould havean unsignedarithmetic typewith binarypoint
at 0. The output ports, labeled A and B, have the same types as the corresponding
input data ports.
The locationin the memory blockcan be accessed for reading or writingby providing
the valid address on each individual address port. A valid address is an unsigned
integer from 0to d-1, where ddenotes the RAMdepth (number ofwords in the RAM)
for the particular port. An attempt to read past the end of the memory is caught as an
error in simulation. The initial RAM contents can be specified through a block
parameter. Eachwriteenable portmustbe a1-bit unsignedinteger. WhentheWE port
is 1, the value on thedata input is written tothe location indicated by the address line.
The output during a write operation depends on the write mode. When the WE is 0,
the output port has the value at the location specified by the address line. Write
contention results in data being not written to the memory location and the
correspondingoutputsareflagged asinvalid. Duringa writeoperation(WE asserted),
the data presented on the input data port is stored in memory at the location selected