Chapter 3: Design Rules and Procedures
3–17
Timing Semantics Between Simulink and HDL Simulation
Startup & Initial Conditions
The testbench includes a global reset for each clock domain. All blocks (except the HDL
Import and MegaCore function blocks) automatically connect any reset on the
hardware to the global asynchronous reset for the clock domain.
When a block explicitly declares an asynchronous reset, this reset is OR ed with the
global reset.
A Global Reset block ( SCLR) , which corresponds to this hardware signal is in the
Altera DSP Builder Blockset IO & Bus library.
The global reset signal is reset before meaningful simulation. When converting from
the Simulink domain to the hardware domain, the reset period is before the Simulink
simulation begins. Therefore, in Simulink simulation, the Global Reset block outputs
only a constant zero and has no simulation behavior. Connect the hardware to reset,
and thus reset at the start of a ModelSim testbench simulation.
1
DSP blocks or MegaCore functions may have additional initial conditions or startup
states that are not automatically reset by the global reset signal.
Initial Reset of HDL Import Blocks and MegaCore Functions in Simulink
Simulations
The ModelSim testbenches have an initial reset cycle, which ModelSim performs,
before simulation. The first 200 cycles are reset, then the testbench puts the test vectors
through. The reset sets the intial state of registers, which may otherwise have 'X'
(unknown) outputs. In Simulink simulations, there is no explicit reset signal—the
Simulink simulation models for DSP Builder blocks assume there is a reset. HDL
import blocks and MegaCore functions do not provide explicit models, but use a
generic HDL simulator. Simulink does not have a way to represent 'X' in its numeric
types— it writes an unknown 'X' as a 0. The HDL import block or MegaCore function
may have registers that require a reset to avoid unknown outputs. Unknown states
may be initially propagating through your imported HDL import block or MegaCore
function. For some imported HDL import blocks or MegaCore functions, these initial
unknown outputs may result in outputs that are different to the ModelSim simulation
(which is reset).
Altera recommends that you must first explicitly reset HDL import blocks and
MegaCore functions in Simulink simulation. If you have any such registers with
unknown outputs in a feedback loop, the Simulink simulation always gives 'X' (zero
in Simulink's numeric types) until reset and the unknown states continue to
propagate.
1
If a block in one clock domain drives a block in another clock domain with an
asynchronous clear port, Simulink may not model the system. An asynchronous clear
only takes full effect if you assert it at the end of a sample; if it is asserted then cleared,
DSP Builder ignores it.
DSP Builder Global Reset Circuitry
By default, Simulink does not graphically display the clock enable and reset input
pins on DSP Builder registered blocks. When DSP Builder converts a design to HDL, it
automatically connects the implied clock enable and reset pins.
November 2013
Altera Corporation
DSP Builder Handbook
Volume 2: DSP Builder Standard Blockset
相关PDF资料
IR11662SPBF IC CNTROL SMART RECTIFIER 8-SOIC
IR1166STRPBF IC MOSFET DRIVER N-CH 200V 8SOIC
IR11672ASPBF IC MOSFET DRIVER 200V 8-SOIC
IR1167ASTRPBF IC SMART SECONDARY DRIVER 8-SOIC
IR11682STRPBF IC MOSFET DRIVER DUAL 200V 8SOIC
IR1168SPBF IC MOSFET DRIVER DUAL 200V 8SOIC
IR1176STR IC DRIVER RECT SYNC 5V 4A 20SSOP
IR2010SPBF IC DRIVER HIGH/LOW SIDE 16SOIC
相关代理商/技术参数
IP-TRIETHERNET 功能描述:开发软件 Triple Spd Ethernet MegaCore RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
IP-TRIETHERNETF 功能描述:开发软件 3x Spd Ethernet MAC MegaCore RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
IPTV-OPTION-INS970 制造商:3M Electronic Products Division 功能描述:IPTV OPTION FOR INS970
IPU039N03L G 功能描述:MOSFET N-CH 30V 50A 3.9mOhms RoHS:否 制造商:STMicroelectronics 晶体管极性:N-Channel 汲极/源极击穿电压:650 V 闸/源击穿电压:25 V 漏极连续电流:130 A 电阻汲极/源极 RDS(导通):0.014 Ohms 配置:Single 最大工作温度: 安装风格:Through Hole 封装 / 箱体:Max247 封装:Tube
IPU039N03LG 制造商:INFINEON 制造商全称:Infineon Technologies AG 功能描述:OptiMOS?3 Power-Transistor Features Fast switching MOSFET for SMPS
IPU039N03LGXK 制造商:Infineon Technologies AG 功能描述:Trans MOSFET N-CH 30V 50A 3-Pin(3+Tab) TO-251
IPU04N03LA 功能描述:MOSFET N-CH 25V 50A IPAK RoHS:否 类别:分离式半导体产品 >> FET - 单 系列:OptiMOS™ 标准包装:1,000 系列:MESH OVERLAY™ FET 型:MOSFET N 通道,金属氧化物 FET 特点:逻辑电平门 漏极至源极电压(Vdss):200V 电流 - 连续漏极(Id) @ 25° C:18A 开态Rds(最大)@ Id, Vgs @ 25° C:180 毫欧 @ 9A,10V Id 时的 Vgs(th)(最大):4V @ 250µA 闸电荷(Qg) @ Vgs:72nC @ 10V 输入电容 (Ciss) @ Vds:1560pF @ 25V 功率 - 最大:40W 安装类型:通孔 封装/外壳:TO-220-3 整包 供应商设备封装:TO-220FP 包装:管件
IPU04N03LA G 功能描述:MOSFET N-CH 25V 50A IPAK RoHS:是 类别:分离式半导体产品 >> FET - 单 系列:OptiMOS™ 标准包装:1,000 系列:MESH OVERLAY™ FET 型:MOSFET N 通道,金属氧化物 FET 特点:逻辑电平门 漏极至源极电压(Vdss):200V 电流 - 连续漏极(Id) @ 25° C:18A 开态Rds(最大)@ Id, Vgs @ 25° C:180 毫欧 @ 9A,10V Id 时的 Vgs(th)(最大):4V @ 250µA 闸电荷(Qg) @ Vgs:72nC @ 10V 输入电容 (Ciss) @ Vds:1560pF @ 25V 功率 - 最大:40W 安装类型:通孔 封装/外壳:TO-220-3 整包 供应商设备封装:TO-220FP 包装:管件