Download Handel-C Language Reference Manual

Transcript
Handel-C Language Reference Manual
The timing diagram shows the complete cycle.
The HCLK rising edge at t0 initiates the write cycle, causing the ADDRESS and DATAIN
signals to change. Three cycles of RAMCLK are needed to clock the new data into the
RAM at the specified address: the first to sample the address and the third to sample the
data. Since you will not read from the RAM on a write strobe, you can sample the data as
late as possible to give the circuit maximum time to set up the data. In this case, the
three rising edges of RAMCLK occur at t0+1.5, t0+2.5 and t0+3.5.
The write enable signal must be low during the rising edge of RAMCLK that samples the
address, but not during the one that samples the data. This can be done by setting
westart and welength as shown. The entire cycle completes within a single Handel-C
clock cycle.
10.3.3 Targeting Stratix and Cyclone memory blocks
Altera Stratix, Stratix GX and Stratix II devices have 3 types of embedded memory:
M512, M4K and M-RAM. Cyclone and Cyclone II devices only have M4K. You can specify
what type of memory you want to build by using the block specification.
Type of
memory
block specification
M512
with {block = "M512"}
M4K
with {block = "M4K"}
M-RAM
with {block = "M-RAM"}
www.celoxica.com
Page 216