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.

Help me solve an issue in VHDL code writing

Status
Not open for further replies.

555lin

Junior Member level 3
Joined
Aug 19, 2005
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,638
Guys I can't solve the problem of writing VHDL code, that
implies executing an intialization part that is to be executed only once and
the other part is to be regularly repeated and both parts(init and work) have
the same signals.
How can I solve it?
 

VHDL code question

Hi,
Try ti design the state machine. There is nice materiasl on FSM in edaboard.
Hope it help !
 

Re: VHDL code question

Well pls elaborate. if you are writing a testbench, then you can init a signal while declaring it, for example:
signal mysignal : std_logic := '0';
This will make sure that mysignal gets a value of '0' at start and then you can assign any value to it in your code.
Hope it helps,
Kr,
Avi
http://www.vlsiip.com
 

Re: VHDL code question

If you are not writing a test bench then you could well use a reset or preset signal in case of flip flops in your design else you can use an enable signal for combinational elements....
 

Re: VHDL code question

You can use EN (enable signal) in your design.
 

Re: VHDL code question

you can have an enable signal with an if else statement, that will have the initial part after the if enable and the work part after the else...
or just the "initial" part written then a loop for the "work" part..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top