Schematic Designs With Finite State Machine (FSM) Macros
This section explains how to create state machine macros and instantiate them in schematic designs.
Creating FSM Macros
After a macro is created, it is available from the SC Symbols window in Schematic Capture. These are the steps you follow to create State Machine macros.
- Open the Finite State Machine (FSM) editor by clicking the FSM Editor icon in the Design Entry box on the Project Manager's Flow tab.
- When the State Editor window appears, you may select an existing FSM macro or create a new one. The following steps describe creating a new FSM macro with the Design Wizard.
- Select Use HDL Design Wizard. Click OK.
- From the Design Wizard window, select Next.
- From the Design Wizard - Language window, choose VHDL, Verilog, or ABEL. Click Next. (You must have Base Express or Foundation Express to select VHDL or Verilog.)
- Enter a name for your macro in the Design Wizard - Name window. Select Next.
- Define your ports in the Design Wizard-Ports window. Select Next.
- In the Design Wizards - Machines window, select the number of state machines that you want. Click Finish. The Wizard creates the ports and gives you a template in which you can enter your state machine design.
- Create the design for your state machine in the State Editor.
- When you are finished creating your state machine, create a macro symbol by selecting Project Create Macro.
The synthesizer will not insert top level input and output pads for this macro. Instead the top level schematic, which contains the macro, includes all top level input and output pads required for implementation.
For more information about state machines, select Help Foundation Help Contents State Editor.
Creating the Schematic and Generating a Netlist
- Open Schematic Capture.
- Select Mode Symbols to add components to your new schematic.
Any macros that you have created display in the SC Symbols toolbox under the project working library's heading.
- Select the state machine macro from the toolbox by clicking its name.
- Move your cursor to the schematic sheet and place the macro symbol by clicking.
- Complete your schematic by placing additional components from the SC Symbols toolbox including I/O ports, nets, buses, labels, and attributes.
- Save your schematic by selecting File Save.
For more information about schematic designs, see the Schematic Design Entry chapter or, in the Schematic Capture window, select Help Schematic Editor Help Contents.
To complete the design, read the following sections in the order listed: