21 questions
1
vote
0
answers
33
views
I am having trouble generating vhdl code from my matlab script using hdl code generstor in Matlab
I'm trying to generate a vhdl code using the HDL code generator in Matlab.
I have a matlab function and its test bench.
This is the matlab function:
function [received_signal_real, ...
0
votes
1
answer
231
views
How do I implement matlab code on hardware device to make it run?
My question is quite basic to most appropriate levels on consideration. I lack the perception of how can I dump or implement my matlab code on a hardware component like processors or fpga? For eg:
...
0
votes
1
answer
423
views
MATLAB script use in System verilog using SNPS VCS tool
I have coded an algorithm using MATLAB R2019 script and i want it to be called in an System verilog file i.e The output generated by the matlab script is actually to be fed into the testbench ...
0
votes
1
answer
251
views
MATLAB coder error while converting code to hdl for xcorr function
I want to use HDL coder to convert MATLAB xcorr function to VHDL language. My code is given in below, i think i made a mistake when I'm defining the input data types. What should be the input data ...
0
votes
1
answer
963
views
HDLC frame HCS and FCS
I have an HDLC frame like blow and I want to calculate the HCS and FCS algorithm.
Its based on DLMS protocol noted in green book page 128.
Here is an example of this frame:
Ex.1:
Frame=`(...
1
vote
0
answers
262
views
Commands invalid after 'import_board_preset' command
Currently I am trying to follow the MathWorks tutorial 1 to register a TE0720 with a TE0701-6 carrier board in Matlab. I followed the instructions, designed the block design and exported it as advised....
1
vote
0
answers
105
views
Long inputs in Matlab HDL coder
I am trying to program a module in Matlab that will be translated to Verilog. My module has a lot of inputs, so I want to group them into a unique string of bits so the module will have only one input....
1
vote
0
answers
185
views
Failed Cannot connect to 'Mentor Graphics ModelSim' HDL simulator
I am trying to perform cosimulation in HDL Coder using ModelSim 10.2c .But getting below error :
Failed Cannot connect to 'Mentor Graphics ModelSim' HDL simulator
Does any one know what could be ...
-3
votes
1
answer
1k
views
Feedback loop in Simulink/HDL Coder
I have a system in Simulink/HDL coder (see below image please). I have 3 outputs and 3 inputs. I want my system to run 10 times. After each iteration it should select the outputs and use them as ...
0
votes
1
answer
754
views
VHDL Code Generation using Matlab HDL Coder
I am sorry If I say some thing silly.Please forgive me:
I am trying to convert Matlab code(given below) to VHDL code,using HDL coder.It contains a function called sum.But when I try to convert the ...
3
votes
1
answer
90
views
Why is a sum statement so bizarrely synthesized?
I have 4 buttons on an FPGA dev board so I wrote
function [HEX0] = Bar(KEY)
n = uint8(sum(KEY, 'native'));
...
Unfortunately, HDL Coder turned it into the following chunk of VHDL:
y := '0';
FOR ...