Need a VHDL code for 16 bit counter with up range and low range

Status
Not open for further replies.

seemagoyal44

Member level 1
Joined
Oct 20, 2007
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,535
//want a vhdl code for 16 bit counter with uprange and low rangei.e input are reset,count enable,considering with up range and low range. //


SAME DESIGN IS MODIFIED ------
with same inputs but one more input is added mode[1:0]

IF mode[00] then ....increment order by 1
if mode[01].....increment by2
if mode[10]......increment by3
if mode[11].....random value....(random value should not cross up and low range)
 

vhdl code

sounds like an assignment question.i cant write whole code,but i can give some hints
use case statrement for 4 modes.inside each case u simply count the counter.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…