Home

UM0423 User manual

image

Contents

1. NG UM0423 User manual numonyx Verilog HDL model for M25Pxxx serial Flash memories This user manual describes the Verilog behavioral model for the three serial Flash memory families M25PX M25PE and M25P M25Pxxx is used in this document to indicate all three different families Organization of the VHDL model delivery package The Verilog model delivery package is organized into a main directory named NU M25Pxxx VGxx zip containing six subdirectories with their related files Figure 1 B code subdirectory contains model source files include subdirectory contains parameters and constants definitions files sim subdirectory simulation initialization files stim subdirectory stimuli files used for simulation top subdirectory others file used for simulation doc subdirectory contains model documentation Figure 1 Package architecture NU M25Pxxx VGxx readme txt run ncsim run modelsim code stim M25Pxxx v various stimuli files written include in Verilog language t Decoders h DevParam h doc TimingData h top Testbench v M25Pxxx_UserManual pdf StimTasks v R ClockGenerator v sim StimGen interface h mem xxxx vmf Ai12558b Note See the readme txt file for the complete list of files contained in each folder July 2008 Rev 4 1 11 www Numonyx com Contents UM0423 Contents 1 Verilog behavioral model ccc eee eee eee eee 3 1 1 Verilog modules isa heck pex dud p Rad Seas
2. defparam Testbench DUT memory file memory file name If the user does not provide the initialization file memory file all the memory bits are set to 1 6 11 fM numonyx UM0423 Simulation guidelines 2 3 2 4 N4 numonyx Simulation messages When running a simulation the M25Pxxx Verilog HDL model sends messages through the simulator console to prompt the status of the model The following kinds of messages are provided e INFO is normal information about the device status e WARNING informs the user that the result of a command sent to the memory may not be what the user expects For example a warning message is provided when a program operation is aborted because the page to be programmed is locked e ERROR informs the user that the M25PXxx Verilog HDL model is not properly driven that is the provided stimuli sequence does not comply with M25PXxx specifications e TIMING ERROR this message is displayed when one of the input signals of the memory driven by the stimuli file does not respect the AC timing constraints of the memory device Simulation timings To reduce simulation time the values of certain latency times can be redefined These values can be defined by setting variables in the TimingData h file Table 1 lists the variables that can be redefined by the user Table 1 User customizable simulation timings Timing Notes program delay erase delay erase ss
3. N4 numonyx 11 11
4. delay erase subsector M25PE and M25PX families only erase bulk delay write SR delay Write Status Register write access power up delay tpyw read access power up delay tys deep power down delay M25PE and M25PX families only release power down delay M25PE and M25PX families only page write delay M25P family only page erase delay M25P family only For instance to change the program delay to 100 ns the program delay constant can be redefined as follows parameter program delay 100 7 11 Model ports UM0423 3 Caution 8 11 Model ports The ports of M25Pxxx module connect the models to external devices Table 2 Table 3 and Table 4 list these ports and related types Table 2 Model ports for M25PX devices Port Type Description s Input wire Chip Select signal C Input wire Clock signal HOLD Input wire Hold signal DQO Input output wire 7 Serial data input DQ1 Input output wire Serial data output Voc 31 0 Input wire 2 Supply voltage Vpp w 31 0 Input wire 2 Write Protect Enhanced program supply voltage 1 These ports are of type input output because DQO is used also as output during the dual output fast read operation DQ1 is used also as input during the dual input fast program operation 2 The voltage signal is represented with a 32 bit binary array whose decimal value corresponds to voltage value
5. eye abe eRe n Rd 3 1 2 Header files 1a Eee Ra n EORR le Ede Rea RR KR eae deg BAS 4 13 Testbench and Stimuli files llli 4 2 Simulation guidelines 4 eee 6 2 1 Launching a simulation 2 xs RR REOR RR X e x RR KARL RR Res 6 2 2 Memory NG iios ues RR Rr RR aa mea oh xa oH RR REA RAS racks 6 2 3 Simulation messages aceshrewhocebedee e Re metier gels 7 2 4 Simulation timings ren 7 3 Model DONS iae ka ku Ea hn oats GA o a 8 4 REVISION NISIOLY is snds asks ur as RURERCAUORCR BAGBAG eis Ks 10 2 11 fM numonyx UM0423 Verilog behavioral model 1 Verilog behavioral model The M25Pxxx v file of the code subdirectory contains the M25Pxxx behavioral model It includes a set of modules that implement all the device functions listed in the datasheet These modules use a set of parameters defined in specific header files contained in the include subdirectory Section 1 1 and Section 1 2 describe the model s Verilog modules and the header files Note The model has been validated using a Cadence NC SIM 5 7 simulator The use with other simulators is not guaranteed Please refer to the readme txt file for the reference datasheet used during model development and validation Check the Numonyx web site or contact your local Numonyx sales office for the most recent version of the device datasheet 1 1 Verilog modules This section describes the M25Pxxx Verilog modules M25Pxxx This is the
6. in millivolts Correct model behavior is guaranteed only if the following rule is respected The driver of the model must have two output ports connected to signals DQO and DQ1 of the Flash memory and must initialize these two signals at Z high impedance value After the initial simulation time the values of DQ0 and DQ1 can be changed but these signals must be Z at the simulation start time In the testbench provided with the model delivery package signals DQO and DQ1 are already initialized to Z This is done by the StimTasks module Table 3 Model ports for M25PE devices Port Type Description S Input wire Chip Select signal C Input wire Clock signal D Input wire Serial data output Q Output wire Serial data input Ww Input Write Protect signal RESET Input Reset signal Vec Input wire Supply voltage fM numonyx UM0423 Model ports Table 4 Model ports for M25P devices Port Type Description s Input wire Chip Select signal C Input wire Clock signal HOLD Input wire Hold signal D Input wire Serial data input Q Output wire Serial data output Voc Input wire Supply voltage Vpp W Input wire Write Protect Enhanced Program supply voltage fM numonyx 9 11 Revision history UM0423 4 10 11 Revision history Table 5 Document revision history Date 26 Apr 2007 Revision 1 Changes Initial release 9 Jul 07 M
7. core of the model which is used to e latchinterface signals data addresses and commands execute read operations e organize and control the operations of all other modules UtilFunctions This module contains utility functions used in various parts of the model CUldecoder This module decodes the command sequences of the Flash memory Memory This module defines e the data structure used for representing the memory array e the tasks that operate on this data structure to read write or erase elements of the array OTP Memory This module defines the data structure and the tasks for modeling OTP memory area Program This module implements the algorithms that control program and erase operations 1 These modules are only in the M25PX devices not in M25PE and M25P devices fM numonyx 3 11 Verilog behavioral model UM0423 1 2 1 3 4 11 Read This module implements certain algorithms used in read operations LockManager This module implements the algorithms used to protect the device against program and erase operations locking features StatusRegister This module models the status register of the Flash memory TimingCheck During the simulation this module controls the timing of the input signals to check if the related constraints are respected Dual Ops This file runs the algorithms controlling the Dual Output Fast Read and Dual Input Fast program operations Header fi
8. for use in medical life saving life sustaining critical control or safety systems or in nuclear facility applications Numonyx may make changes to specifications and product descriptions at any time without notice Numonyx B V may have patents or pending patent applications trademarks copyrights or other intellectual property rights that relate to the presented subject matter The furnishing of documents and other materials and information does not provide any license express or implied by estoppel or otherwise to any such patents trademarks copyrights or other intellectual property rights Designers must not rely on the absence or characteristics of any features or instructions marked reserved or undefined Numonyx reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them Contact your local Numonyx sales office or your distributor to obtain the latest specifications and before placing your product order Copies of documents which have an order number and are referenced in this document or other Numonyx literature may be obtained by visiting Numonyx s website at http www numonyx com Numonyx StrataFlash is a trademark or registered trademark of Numonyx or its subsidiaries in the United States and other countries Other names and brands may be claimed as the property of others Copyright 2008 Numonyx B V All Rights Reserved
9. les This section describes the header files used in the model Decoders h This file is used in M25Pxxx module It contains all the instances of the CUI decoder module each instance recognizes a specific command sequence of the Flash memory DevParam h This file contains the definitions of constants related with memory characteristics These constants are used in various parts of the model TimingData h This file contains the definitions of memory s AC timing parameters Testbench and Stimuli files To provide an example of a complete Verilog HDL project that the user can simulate other Verilog HDL files are offered in addition to the Flash memory model The top subdirectory of the delivery package contains a testbench file as well as other additional files that can be used to simulate the model with various stimuli files Stimuli files written in Verilog language are available in the stim subdirectory These stimuli files cover many operational conditions of the device and in particular the CUI command user interface commands 2 These modules are only in the M25PX devices not in M25PE and M25P devices fM numonyx UM0423 Verilog behavioral model The following modules are instantiated in the Testbench v file of the top directory e The StimTasks module described in top StimTasks v contains specific Verilog tasks invoked by stimuli generator module e TheStimuli module generates stimuli for the Flash me
10. mory by using the tasks provided by the StimTasks module This module is implemented in various versions each of which provide stimuli to simulate a specific device operation The various versions of stimuli such as read v and program v are contained in the stim directory The port interface of all stimuli files is defined in the header file top StimGen interface h The user can choose the operation to simulate by compiling a specific version of the stimuli file For example if the stim read v file is compiled then the read operations are simulated e The ClockGenerator module generates clock signals that are connected as inputs to the Flash memory Clock generation is controlled by the clock active signal driven to ClockGenerator by the StimTasks procedures These procedures are activated by the Stimuli module e The M25Pxxx module is the model of the serial Flash memory device under test Figure 2 illustrates the connections between the different modules described above Figure 2 Testbench simulator Testbench Voc 31 0 Vee 31 0 s s HOLD HOLD Vpp w 31 0 Vpp w 31 01 D clock activd clock active StimTasks clock active clock active ClockGenerator stim Stimuli Testbench Ai14414 The testbench illustrated here only provides an example for driving the M25Pxxx memory model However users can simulate the model using his own drivers and providing specific sti
11. muli In this case they must define a new Testbench v file to link the new user s drivers to the M25Pxxx memory model fM numonyx 5 11 Simulation guidelines UM0423 2 Simulation guidelines 2 1 Launching a simulation The run ncsim file located in the main directory is an example of script used to launch a simulation using a Cadence NC SIM simulator This script compiles and elaborates e the Verilog M25Pxxx model the include files also are considered e the StimTasks and ClockGenerator e oneofthe stimuli files contained in the stim directory The user can change the operations to simulate by compiling one of the stimuli files of the stim directory Moreover the run modelsim script file is provided for launching a simulation using a Mentor Modelsim simulator 2 2 Memory file To simplify the testing of the model functions the memory array can been loaded with specific data at power up The format of the memory file must be as follows hex address hex data hex data 1 hex data is memorized at location hex address hex data 1 atthe location hex address 1 and so on As an example 07F 4B 9A Moreover comments are allowed in the memory file lines using the notation comment The model is delivered with a template memory file called mem vmf in the sim subdirectory The name of memory file is defined as a parameter of the M25Pxxx module It can be specified in the stimuli file using the following syntax
12. odified the document throughout to indicate that M25Pxxx represents the three serial Flash memory families M25PX M25PE and M25P Added Dual Ops in Section 1 2 Header files Updated the files list in Figure 1 Added the notes column to Table 1 Added the timing error message in Section 2 3 Modified Table 2 for model ports specific to the M25PX family and added Table 3 and Table 4 for the M25PE and M25P families 21 Aug 07 Updates made in accordance with updates in the M25PX32 datasheet Moved the section on the dual ops header file to Section 1 1 Replaced Figure 2 Testbench Removed Vpp from Table 2 Model ports for M25PX devices and added the Vpp w values 31 Jul 08 Applied Numonyx branding fM numonyx UM0423 Please Read Carefully INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH NUMONYX PRODUCTS NO LICENSE EXPRESS OR IMPLIED BY ESTOPPEL OR OTHERWISE TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT EXCEPT AS PROVIDED IN NUMONYX S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS NUMONYX ASSUMES NO LIABILITY WHATSOEVER AND NUMONYX DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY RELATING TO SALE AND OR USE OF NUMONYX PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE MERCHANTABILITY OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT Numonyx products are not intended

Download Pdf Manuals

image

Related Search

Related Contents

Welcome to a whole new level of interactive home security  Philips Hair clipper QC5135  Giada I58B-B3000 barebone  Pelco PMCD750 Projector Accessories User Manual  Cables Direct ERT-601-5B networking cable    CSM Catherine Brioche extra moelleuse  modèles: 10185/10185j • 10300/10300j français mode d`emploi  Agnitio iDocs 1.10 User Manual  SOLIS MASTER 5000 Mode d`emploi 16 16 1 2 3  

Copyright © All rights reserved.
Failed to retrieve file