13.07.2015 Views

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Memory PartsRegister File (regfile)Functionregfile is a table of internal locations. The number of locations is given by the parameterregfile_size:regfile(waddr) = din if wena = 1 & waddr < regfile_sizedout0= regfile(raddr0) if rena0 = 1 & waddr0 < regfile_size= ZZ…otherwisedout1= regfile(raddr1)= ZZ...raddr0_error = 0= 1raddr1_error = 0= 1waddr_error = 0= 1Parametersif rena1 = 1 & waddr1 < regfile_sizeotherwiseif raddr0 < regfile_sizeotherwiseif raddr1 < regfile_sizeotherwiseif waddr < regfile_sizeotherwiseTable 9-6. Register File ParametersParameter Values Defaultdin, dout0, dout1raddr0raddr1waddrraddr0_error_typeraddr1_error_typewaddr_error_typeregfile_sizePort widths (must be > 0)Port width (must be > 0)Port width (must be > 0)Port width (must be > 0)Enabled,DisabledEnabled,DisabledEnabled,DisabledNumber of memory locations in the register fileAutomaticAutomaticAutomaticAutomaticEnabledEnabledEnabled8Design Rule Checks• An error is issued if the width of any port cannot be determined or if ports wena, rena,rena1, raddr0_error, raddr1_error and waddr_error do not have a fixed width of 1.• A warning is issued and HDL generation fails for this part if any of ports rena0, rena1,raddr0, raddr1, waddr, rena, dout0 or dout1 are not connected.<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 215September 18, 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!