Risc-V input output use - riscv

I m triying to do a bigger number printer with risc-v. But i cannot implement that. What is not going in my code?

Here you can find some exemple for risc-v input and output exemple for beginner.

Related

linux kernel output in a file

I am using a program by using the linux kernel (in this case a predictor for protein localization). The output/results are printed in the linux kernel, one after each other. However, if I want to copy it to a simple textfile, the "length" of the kernel is not long enough for all the results.
instead of using smaller seperate files, I would like to print the output of the kernel to a file. I tried to google this, but it doesn't really help me futher.
1. dmesg seems to be for system-output stuff?
2. the /var/log/syslog.txt doesn't show the stuff I need, but other technical kernel stuff.
3. i saw something with printf(), but didn't quite understand the mechanics and if it was useable for my problem.
could someone explain how to do this or where to look for the right info?
I think i found out how to do it, by using > fileToBeNamed.txt at the end of the command, Sorry :(

How to translate Kernel space VA to PA in Linux, inside a driver code?

Is it possible to do a simple page-walk translation to a Kernel-space VA, from a driver code that I write? I'm trying to use virt_to_phys(), but the translation doesn't look correct to me. Is there any other API that can do that?
virt_to_phys() is the correct path. Why it doesn't seem correct to you?
Take a look at this documentation that explain all the three view of a memory address and how to convert among them.

Why DCM doesn't work in Modelsim 10.3?

I tried to use Digital Clock Manager (DCM) and double the input clock. iSim (Xilinx simulation tool) gives the correct result, but in Modelsim the output clock is always zero.
I always compile the unisims folder (that consist of IBUFG, DCM and BUFG modules in xilinx software) in the library of my project in modelsim.
According to the Russel Answer I used Xilinx Core Generator. I want the frequency of CLKFX to be double of CLKIN. As you see in the following pictures, the results of iSim (Xilinx simulator) is correct, but in Modelsim CLKFX is always zero :
iSim results (Xilinx Simulator) :
Modelsim results :
If you think you're not setting up the DCM correctly, you need to read the documentation about DCMs and how they work. If you search for Xilinx Library Guide (+FPGA Name) you'll find all of the Primitives that are available in your device. Or you can look at the full list here:
Xilinx Library Guides
If you're still having trouble after looking at all of your parameters, you can try using CoreGen to generate your DCM for you. CoreGen will ensure that you do not make any mistakes or instantiate something in an invalid configuration. The output of CoreGen is a .vhd file that you can drop into your modelsim project and simulate with that.

DWT in Verilog(FPGA Implementation) [duplicate]

Can anyone tell me how to write a verilog code for DWT of an image and download in to fpga.
Actually my project is to write a verilog code to perform discrete wavelet transform of a medical image, can anyone frame the logic or if have the code can you send me, please
I am using xilinx virtex 2 pro..
This one is in VHDL instead of Verilog, but might still provide at least some inspiration.
Generally FPGA's come with software for programming them. Depending on manufacturer those packages are different. But most of FPGA manufacturers(Xilinx, Altera, etc) ship tools to program their chips.
Besides that there are few 3rd party tools:
http://www.synopsys.com/Solutions/EndSolutions/FPGASolution/Pages/default.aspx
http://www.aldec.com/Products/default.aspx

Analysing a Digital/Analog signal via Microphone

I just need to be pointed in the right direction as I may be in over my head here.
If I wanted to write a program to analyze a sound wave how would I go about this?
I have an idea that it will involve a mixture of a maths package (like mathematica or matlab) and C or C++ but not sure where to start.
I'm only wondering at the moment but any pointers would be greatly appreciated.
I'm new but not inept and a good challenge is always the best way to learn.
Mathematica and Matlab can both take .wav files as inputs.

Resources