英特尔Agilex® 7嵌入式存储器用户指南

ID 683241
日期 4/10/2023
Public
文档目录

4.1.3. RAM: 2-PORT Intel® FPGA IP参数

此表列出了RAM: 2-PORT Intel® FPGA IP的参数。
表 25.  RAM: 2-PORT Intel® FPGA IP参数设置
参数 合法值 描述
Parameter Settings: General(参数设置:通用)
How will you be using the dual port RAM?(您将如何使用双端口RAM)

操作模式:

  • With one read port and one write port
  • With two read/write ports
指定如何使用双端口RAM。
How do you want to specify the memory size?(您要如何指定存储器大小)

类型:

  • As a number of words
  • As a number of bits
确定以字为单位还是以比特为单位来指定存储器大小。
Parameter Settings: Widths/Blk Type(参数设置:宽度/块类型)
How many words of memory? 指定字的数量。
Use different data widths on different ports On/Off 指定是否在不同的端口上使用不同的数据宽度。
选择With one read port and one write portWith two read/write ports时,以下选项可用:
  • How wide should the ‘q_a’ output bus be?
  • How wide should the ‘data_a’ input bus be?
  • How wide should the ‘q_b’ output bus be?
指定输入和输出端口的宽度。
Ram block type
  • Auto
  • MLAB
  • M20K
  • LCs
指定存储器模块类型。可选择的存储器模块类型取决于您的目标器件。
Set the maximum block depth to
  • Auto: Auto, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, or 16384
  • MLAB: Auto or 32
  • M20K: Auto, 512, 1024, or 2048
  • LCs: Auto
以字为单位指定模块最大深度。
How should the memory be implemented?
  • Use default logic cell style
指定逻辑单元实现方法。
  • 如果您喜欢更小更快的存储器容量,请选择Use default logic cell style
Parameter Settings: Clks/Rd, Byte En(参数设置:时钟/读取,字节使能)
Which clocking method do you want to use?
  • Single
  • Dual clock: use separate ‘read’ and ‘write’ clocks
  • Dual clock: use separate ‘input’ and ‘output’ clocks
  • Customize clocks for A and B ports
指定要使用的钟控方法。
  • Single—单时钟和一个时钟使能控制存储器块的所有寄存器。
  • Dual clock: use separate ‘read’ and ‘write’ clock—一个写时钟控制data-input、write-address和 write-enable寄存器,而读时钟控制data-output、read-address和read-enable寄存器。
  • Dual Clock: use separate ‘input’ and ‘output’ clocks—输入时钟控制嵌入式存储器块数据输入相关的所有寄存器,包括数据,地址,字节使能,读使能和写使能。输出时钟控制数据输出寄存器。
  • Customize clocks for A and B ports—要使用该选项,还必须使能Emulate TDP dual clock mode选项。
When you select With two read/write ports and Customize clocks for A and B ports clocking method, the following option is available:

Emulate TDP dual clock mode

On/Off 指定是否仿真TDP双时钟模式。到Port A的时钟连接必须是慢时钟,而连接到Port B的时钟必须是快时钟。
When you select With one read port and one write port, the following option is available:

Create a ‘rden’ read enable signal

On/Off 指定是否对端口B创建一个读使能信号。
When you select With two read/write ports, the following option is available:

Create a ‘rden_a’ and ‘rden_b’ read enable signals

指定是否对端口A和B创建一个读使能信号。
Create byte enable for port A On/Off 指定是否对端口A和B创建一个字节使能。如果想通过屏蔽输入数据而只写入数据的特定字节,半字节或比特,则开启此选项。

仅在选择了With two read/write ports选项时,针对端口B创建字节使能的选项可用。

Create byte enable for port B On/Off

What is the width of a byte for byte enables?

  • MLAB: 5 or 10
  • M20K: 8, 9, or 10
指定字节使能的一个字节的宽度。

此选项只有在选择了Create byte enable for port A和/或Create byte enable for port B时才可用。

Enable Error Correction Check (ECC) On/Off 指定是否使能ECC功能,此功能纠正单比特错误(single bit errors),双邻比特错误(double adjacent bit rrors),和存储器输出上的三邻比特错误(triple adjacent bit errors)。
Enable ECC Pipeline Registers On/Off 指定是否在输出解码器之前使能ECC Pipeline Registers以达到与non-ECC模式相同的性能,但要以一个周期的延迟为代价。
Enable ECC Encoder Bypass On/Off 指定是否使能ECC编码器旁路功能,该功能使您能够通过eccencparity端口选择性地将奇偶校验位插入到存储器中。
Enable Coherent Read On/Off 指定是否使能一致性读取(coherent read)功能,此功能使您能够读出当前存储器内容,并对此内容执行操作,并在相同周期内写回到同一位置。
Parameter Settings: Regs/Clkens/Aclrs/Sclrs(参数设置:寄存器/时钟使能/异步清零/同步清零)
Which ports should be registered?

When you select With one read port and one write port, the following options are available:

  • All write input ports
  • raddress port
  • q_b port

When you select With two read/write ports, the following options are available:

  • All write input ports
  • raddress port
  • q_a port
  • q_b port
On/Off 指定是否寄存读或写输入和输出端口。

Clock Enables

When you select With one read port and one write port, the following option is available:

  • Use different clock enables for registers
  • Use clock enable for write input registers
  • Use clock enable for read input registers
  • Use clock enable for output registers

When you select With two read /write ports, the following options are available:

  • Use different clock enables for registers
  • Use clock enable for port A input registers
  • Use clock enable for port A output registers
  • Use clock enable for port B input registers
  • Use clock enable for port B output registers
On/Off 指定是否为读和写寄存器创建时钟使能。

Addressstalls

When you select With one read port and one write port, the following option is available:

  • Create a ‘wr_addressstall’ input port.
  • Create a ‘rd_addressstall’ input port.

When you select With two read /write ports, the following option is available:

  • Create an addressstall_a input port
  • Create an addressstall_b input port
On/Off 指定是否对地址寄存器创建时钟使能。您可以创建这些端口以用作地址寄存器的额外的低电平有效使能输入。

Aclr Options

When you select With one read port and one write port, the following option is available:

  • rdaddress port
  • q_b port

When you select With two read /write ports, the following options are available:

  • q_a port
  • q_b port
On/Off

指定是否为已寄存的端口创建异步清零端口。指定aclr端口是否清零‘rdaddress‘, ‘q_a’和‘q_b’ 端口。

Sclr Options

When you select With one read port and one write port, the following option is available:

  • rdaddress port
  • q_b port

When you select With two read/write ports, the following options are available:

  • q_a port
  • q_b port
On/Off 指定是否对寄存的端口创建一个同步清零端口。指定‘rdaddress’、‘q_a’和‘q_b’端口是否被sclr端口清零。
Parameter Settings: Mixed Port Read-During-Write(仅当您选择With one read port and one write ports时,该选项卡才可用)

How should the q_a and q_b outputs behave when reading a memory location that is being written from the other port?

  • New Data
  • Old Data
  • Don't Care

指定read-during-write发生时的输出行为。

  • New Data—在写入新数据的周期中,上升沿上是可用的新数据。
  • Old Data— RAM输出反映了进行写操作前此地址上的旧数据。
  • Don't Care—此选项的作用会根据您选择的存储器模块不同类型而有所不同:
    • 存储器模块类型设置为:Auto, M20K或任何其他模块RAM时,RAM在没有分析时序路径的情况下,对read-during-write操作输出‘don't care’或者“unknown”值。
    • 当存储器模块类型设置成MLAB (针对LUTRAM)时,RAM对read-during-write操作输出‘don't care’或者‘unknown’值,但会分析时序路径以防止亚稳态。
Parameter Settings: Same Port Read-During-Write (仅当您选择With two read/write ports时,该选项卡才可用)
What should the ‘q_a’ output be when reading from a memory location being written to?
  • New Data
  • Old Data

指定read-during-write发生时的输出行为。

  • New Data—在写入新数据的周期中,上升沿上是可用的新数据。
  • Old Data—RAM输出反映了进行写操作前此地址上的旧数据。
What should the ‘q_b’ output be when reading from a memory location being written to?
Get x’s for write masked bytes instead of old data when byte enable is used On/Off 开启此选项以在屏蔽字节上获得‘X’。
Parameter Settings: Mem Init(参数设置:存储器初始化)
Do you want to specify the initial content of the memory?
  • No, leave it blank
  • Yes, use this file for the memory content data

指定存储器的初始化内容。

将存储器初始化到零,选择No, leave it blank.

如要使用存储器初始化文件(.mif)或者十六进制 (Intel-format)文件(.hex),则选择Yes, use this file for the memory content data

Initialize memory content data to XX..X on power-up in simulation On/Off
The initial content file should conform to which port's dimensions?
  • PORT_A
  • PORT_B
如果您选择对存储器内容数据使用初始化内容文件,那么选择此文件应该符合的端口。
Implement clock-enable circuitry for use in a partial reconfiguration region On/Off

指定是否实现时钟使能电路以用于部分重配置区域。实现时钟使能电路以用于部分重配置区域

Parameter Settings: Performance Optimization(参数设置:性能优化)
Enable Force to Zero On/Off 指定在解除置位读使能信号时是否将输出设置成零。

当所选的存储器深度大于一个存储器模块时,使能此功能将有助于提高胶合逻辑性能。

Which timing/power optimization option do you want to use?
  • Auto
  • High Speed
  • Low Power
指定要使用的时序或功耗优化选项。仅当您在 英特尔Agilex® 7器件上选择M20K存储器类型时,该选项才可用。