Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with transfer function in VHDL

Status
Not open for further replies.

razzboss

Programmer
Apr 8, 2009
1
CA
Hi,

I am implementing a control system in VHDL. Now I am facing a couple of problems. For the controller itself, I used two inputs - error and change of error. Now I have to pass the controller output to a plant which has the transfer function of 1/(ks^2+s), where k is a real number.

I don't know how to implement this s-domain transfer function in VHDL. And my supervisor doesn't want me to use any kind of add-ons, I have to implement everything by myself. I thought of converting this s-domain function to z-domain, but then again, I don't know how to code z-domain TF in VHDL either.

And for the second input to the controller, how do I calculate derivative? Is it (e(t)-e(t-1))/T, where T is the sampling period?

I currently have no clue whatsoever. Any help would be greatly appreciated. Thanks in advance.

Cheers
Ali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top