ΣSigmaStudio Ask AI Русский Log in

This text contains non-empty top-level expressions. It appears to be a script

Processors & DSP Sonali Sep 19, 2019 00:00 1 replies Original on forum ↗
Subscribe
Sonali Question
Sep 19, 2019 00:00

After running the below code i am getting an error "This text contains non-empty top-level expressions. It appears to be a script."

x=real(signal);

l=length(x);

xin2(1)=1;

eqin(1)=x(1);

for i=1:(l-1)

eqin(i+1)=x(i+1)-xin2(i)+eqin(i);

xin2(i+1)=sign(eqin(i+1));

end

can anyone tell me what to change in the code so as to convert this code to verilog ....

ADIApproved Reply
Sep 30, 2019 00:00

Hello,

What is the software tool and processor you are using? What is the code you are referring to?

Regards,
Anand Selvaraj.