Vivado HLS_C code [closed] - http-live-streaming

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am trying to write and execute the C code program for data communication. Please can anyone help me in writing the Program for HLS?
Tried in normal C code program like using PRINTF and SCANF statements but it's showing a compilation error.

When you use HLS you are going to "translate" your C code in HLD (VHDL or Verilog for example). Because of this, there are some restrictions: you cannot use "printf", "scanf", malloc and so on. For instance: how can you implement a printf in HLD upon an FPGA?
I recommend reading this tutorial and this user guide.
However, you can use "printf" ONLY in HLS simulation: at the end, you will not synthesize it. Here you can find the link to the discussion about this on Xilinx's forum.
You can update your question and add some more details in order to understand where the errors occur.

Related

How do I avoid stack overflow at compile time? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
General performance advice for Rust is to try to avoid placing things on the heap if possible.
An issue I am having is that I do not know where/when the size limit of a function stack will be reached, until my program panics unpredictably at runtime.
Two examples are:
Parsing deeply nested structs from JSON using Serde.
Creating many futures inside a function.
Questions:
Can I avoid this by detecting it at compile time?
How can I know what the limit of the stack is whilst I am writing code? Do others just know the exact size of their variables?
Why do people advise to try to avoid the heap?

How can I make a program to operate another program? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So what I'm wanting to do is pretty lame. Anyway, what I'm wanting to do is basically make a bot that will do some specified tasks for me.
I have an emulator on my laptop that when open, operates like an Android phone, and I'm using Snapchat on it. What I have been trying to do is make it send my 'streaks' on Snapchat a picture everyday at specified times. I have tried using a Macro Recorder to do this, but the loading time varies.
My questions are:
1) What programming language should I use for this?
2) What would be the best application to use? (Like Notepad, or some other application)
Any help is appreciated :)
Have you heard of autohotkey (AHK)? It's a macro app, but also a very powerful programming language. Entire apps have been written in it.
You can also use it to control other programs.
reference:
http://ahkscript.org/

Extract messages from Alloy Analyzer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
When you execute your Alloy-code in Analyzer you get some message like "No counterexample was found". And I want extract this message. I want, for example, get .txt file with this message. Can somebody help me?
The cleanest and easiest way to do this would be to write a small java program that makes calls to the Alloy API to analyze given models and write the result in a text file (example here).
Now if you want to choose the hard and dirty way, that is: to extract such information from the guenuine Alloy analyzer GUI (not from a program of your own that calls the Alloy API),I guess a solution could be to use image recognition scripting tools like sikuli.

Using your computer as a signal generator [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm not quite sure where to post this question, but I think Stack Overflow has a lot of smart people who could help.
I'm wondering if there is a way I can combine programming and electrical circuits. Can I somehow turn my computer into a signal generator to create AC waveforms which I could apply to an external circuit that I've created? Could I then program my computer with say C++ code to change the amplitude/frequency of the waveform (hopefully this if possible doesn't require assembly language which I know nothing about expect that its code that operates more directly with the CPU or something). Basically, I'm looking for a way to combine coding with electrical circuits. Anything will do. I just want to get better at both because they both interest me.
Yes, you can use your audio channel.
You have to consider its frequency response: (theoretical Maximum of 20kHz?)
You also have to buffer the audio output. Use an opamp as a buffer for that. You do not want to overload your audio jack.
You will run into challenges of how "Fast" you can send data to your audio channel. But I think it is possible.
Another way is to use a good old parallel port, IF you have one :). Those are nice to command some electronics.

Which is language is best for MCU to PC Communication applications? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am looking forward to learn a language mainly for my electronic projects. My projects may include PC to MCU communications, TCP/IP (like catching new facebook comments and sending it to MCU) etc. I have seen a lot of similar projects using python and perl. So which one will be better and easier to learn as well as to implement?
At the risk of suggesting something "weird" -- you might want to take a look at Processing and its microcontroller counterpart Wiring. They are designed for exactly this sort of use case.

Resources