verilog average code

Status
Not open for further replies.

ali kotb

Member level 3
Joined
Feb 11, 2012
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,732
hello all ,
if i have a pulse wave form of ones and zeros , how to take the average DC value from the pulse using verilog ?
can any one give me the code ?
 

In general the solution consists in counting the number of ones N in a sequence of T ones and zeros. The average is (A.N)/T where A is the amplitude of the one.
 

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