c-code function into VHDL?

Guest #2477070
Rate this post
useful
not useful
i have to calculates lots of constants, dependant only of 1 generic 
value. I can do that in C or in Octave (Matlab-like language).

I don know how to load those constants, i've been doing it "by hand" in 
the VHDL header, first calculating them, and them putting them into 
matrixes in an array type. Can i implement the c-code (or matlab code) 
into the vhdl code like some kind of function? Have in mind that i'm not 
asking for sinthetizing this secuential code for calculation, i'm just 
looking for the ability to know the number of components and length of 
signals by every "layer" in my design.

Thanks a lot
Guest #2482346
Rate this post
useful
not useful
Maybe myHDL (http://www.myhdl.org/doku.php) could solve your problem, 
but it might be quite a change.
For simulation, some people have done interesting stuff with the GHDL 
simulator by interfacing it with C routines 
(http://www.fpgarelated.com/showarticle/20.php). But not sure if that 
helps, as you're speaking of constants. I'm just using those extensions 
to pull configuration values out of .INI files.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now