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.

piecewise linear function

Status
Not open for further replies.

mohammadyou

Member level 4
Joined
Oct 2, 2007
Messages
76
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,785
hi
i want to implement this function
Y=1./(1+exp(-x));
in FPGA
i can convert this nonlinear function to linear
like the picture show

but i want to know
is any program or matlab command
that do it for me
(for example i give the number of piece and program estimate the best linear function for me)

thank you :roll:
 

Attachments

  • Linear.jpg
    Linear.jpg
    54 KB · Views: 54

A complex function can best be implemented using a look-up table. If you don't need high resolution, try to linearize.

There might exist a function for that in matlab, but it's just basic math.
 

thank you for your reply
but I need to save my register because of that i think its better linearized the function and just input line equation in FPGA !!!

another question is
can i use block ram and split it to n bank
i want to know its possible to read more data in the same clock from block ram
if it is possible i can use look-up table and store in block ram

best wishes
 

Today it's still not possible to split block RAM in banks. However, you can assign a range of addresses to your lookup table and another range for storage. This will take two clock cycles. Remember that the RAM will lose it's contents when power switches off.

If you can linearize, it should be possible to make use of the DSP blocks in FPGA's. Depending on the input range a different parameter set (a, b) is loaded (y = a.x + b).

helpful?
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top