Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

VHDL code accepted 1 input and gives 2 different outputs

Status
Not open for further replies.

aahmadd

Newbie level 1
Joined
Mar 20, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
UK
Activity points
1,288
Hi,
I'm trying to write a code in VHDL that accepts 1 input ,other that the (clk and rst), and gives 2 different outputs.
e.g.
input is 11

outputs
a/ 0110
b/ 0011
in order. So if the first output was 0110 then second output will be 0011 and keeps going like that, never 2 same successive outputs, as long as the circuit is running.

Please help me.


Thanks in advance.
 

Re: Help With VHDL

What you're describing is a "finite state machine":

A general model of a Finite State Machine (FSM) consists of both the combinational Logic and sequential components such as state registers, which record the states of circuit and are updated synchronously on the rising edge of the clock signal. The output function computes the various outputs according to different states.

It sounds like you need a good VHDL text to reference:

Circuit Design with VHDL - Great book reasonably priced

If you do a search for VHDL state machines you see plenty of tutorials and examples.



That should get you going in the right direction.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top