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.

Need help with transfer function in VHDL

Status
Not open for further replies.

Bustigo

Member level 2
Joined
May 7, 2011
Messages
53
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,588
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.
 

First of all, if your supervisor doesnt want you to use "add ons", then forget about real numbers. Without the floating point IP blocks you'll have to implement the complicated floating point operation blocks, which would be a chore. Think about fixed point and look up tables instead, because fixed point it just integer arithmatic.
 

TrickyDicky,

Have you ever implemented a PID controller in a FPGA?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top