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.

initialise the counter with desired value verilog/vhdl

Status
Not open for further replies.

mosfets.bjt

Junior Member level 3
Joined
Sep 25, 2007
Messages
27
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,605
i want to design a counter in verilog or vhdl that should start from the desired value, can anyone help?
 

If your synthesizer allows you to initialize a reg on power on, then you can do that. Best practice is to have a "reset" state where all regs, including your counter, are initialized to desired values.
 

my synthesizer's name is quartus, for altera
can u \write any eaxmple like what if i want to initialise a 3 bit counter at the value of 3 instead of zero??

Added after 22 minutes:

ok i have found the way
thanks
 

reset is the best option bcoz it suits all situations......
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top