MATLAB Answers

0

Single data type as std_logic_vector after HDL Coder.

Asked by Aitor Ichaso on 12 Feb 2019
Latest activity Answered by Aitor Ichaso on 12 Feb 2019
Hi,
As the title says, i have a variable with single data type as real after generating HDL code with HDL coder, but I need for it to become std_logic_vector after generating the code.
How can I do it?
I have already configured for the inputs to become std_logic_vectors:
configuration.JPG
What I need:
bueno.JPG
What I get:
malo.JPG
I tryed to convert it first to binary and then generate the code, but didn't work. I am doing other trials but without success.
Thank you in advance.

  0 Comments

Sign in to comment.

1 Answer

Answer by Aitor Ichaso on 12 Feb 2019
 Accepted Answer

The problem was with the native floating point. It was resolved following this video:

  0 Comments

Sign in to comment.