martes, 14 de junio de 2011

ROTARY MACHINE


DESCRIPTION

Want to project the government of a rotary switch that allows a full cycle when the drum has made a full turn.

The disc carries a drum solidarity to act on the outbound contact (a). Switch (b) (pulse button) begins the cycle





1) Initial state (rest) a = 1, b = 0, M = 0.

2) (b) is triggered and then stone frog must stop quickly (pulse) -> M = 1.

3) When the disk has been around, (a) is driven by the outgoing and the disc stops.

ANALYSIS

The machine was developed through a flow diagram of synchronous Mealy machine will be transformed into a graphic symbol and it will be used in graphic design major.

TABLE OF STATES

At this point it lists all the possible stable states that will hold the machine. These statements should not be confused with internal states that are going to need to record the entire process sequence.



CREATING NEW PROJECT

From 'File-> New Project'set the first parameters of the project as the name 'rotate ' and type 'Schematic'. We click on 'Next '.




Configure Family, Device, Housing, Speed​​, synthesizer, simulator and simulation language



ADD NEW SOURCE
We will add a source to our project, with the name 'ROTARY', using a formal language graphic presentatio

DRAW THE OUTLINE OF THE ROBOT

It opens a graphics program state machines called 'Statec. "
.
ADD PORT INPUT / OUTPUT OF THE MACHINE

Add ports of entry and exit of the machine. To do this we enter 'Options-> Variable'



In the window that opens, we see that by default there reloj.Los other input ports are added by putting the name in the 'Name ', setting the type, the active and whether it will be a pin or an internal node . Later we click the 'Add / Modify'.
 Click on 'OK' and start the controller design.

ADD STATES
States added by selecting "Add State" in the toolbar and put in the road design with a mouse click.

ADD TRANSITIONS

Draw transitions as the diagram indicates flow defined at the beginning of the year, selecting the 'Add Transition'in the toolbar and moving your mouse from one state to another.

Add a 'reset' the design by selecting 'Add Reset' on the toolbar and move into the 'State 0'. A state machine must have a 'reset'so that starting in the correct state. The 'reset ' can work in high or active low and be asynchronous or synchronous (in our case is asynchronous and works in active high).
We value the equations of inputs and outputs. Placing the cursor over transitions and clicking with the left mouse button.

Leaving at the end something like this:

VERIFICATION

Verify the correct operation of automatically creating a 'test bench'. We click on the button
'State Bench. "
If we where marked with several red dots contenctricos conduct the program itself step by step the state machine and us know if there is an error saving us some time.

When you close the simulator that we we would directly generate a VHDL code through a screen that comes out and we will CLOSE to close it, then keep the "pot" and close the file.

The code that we created it:

Add the file 'MROTA.bin' to the project and generate the symbol
1 .- Execute 'Add Source' and select the file 'MROTA.vhd'.

2 .- Select the font 'VHDL Design File.
3 .- Generate the command controller.

ADDING COMPONENTS

Add clock buffer, GSR and PLC.


CREATING THE BENCH TEST WAVEFORM FILE

Functional simulation has been done with the program StateBench, however, if you want you can re-create a file test bench as we have been doing in previous years.

Moreover, the 'StateBench' generated a test file 'MROTA_TB.vhd', which can be simulated directly with 'ModelSim' after having been previously added to the project such as font type 'VHDL Test Bench. "


Next, open the process 'Simulate Behavioral Model' associated with 'MROTA_TB.vhd'.

 SUMMARY OF THE ROTATING MACHINE

Double click on the process "Synthesize" XST 'situated in the process window and we performed the synthesis of the PLC.

BUILDING RESTRICTIONS (*. UCF)

Restrictions will create a file for the location of pins.

From 'Project-> New Source' add a new font type "Implementation Constraints File 'with the name' rotate 'and associate it with the font' ROTARY '.



PLACEMENT (Translate)

Make all necessary steps to convert the input netlist file in a proprietary format NGD using an internal representation of the technology being used.

To run the utility we get up 'Translate' and double click.

CONNECTIONS (Fit)

Fit maps the logic defined by the NGD file into the CPLD resources, such as logic cells, I / OB 's and other components. The process output is a file that is physically VM6 connection of the components in the CPLD.

To run the utility we get up 'Fit' and double click.

We found that everything was properly inspecting the report 'fitter report.




In conclusion there is only program the device.
https://sites.google.com/site/franbc0100/ROTATIVA.jed?attredirects=0&d=1

No hay comentarios:

Publicar un comentario