[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: PC emulator and HDL
>> John Griessen
>> [jg]That may a good way to do it. Sounds reasonable to me...
>> I think maybe I understand your goal, but did not get a clear answer yet --
>> You want to run a HDL simulator on a qemu
HDL Simulator and qemu will be 2 different unix processes.
>> virtual machine to drive simulated parallel port data going out and in so as to
>> interact with your custom hardware attached to physical parallel port.
>> Where I say "drive" means "code to connect data coming out of the HDL simulator
>> to the parallel.c code in the qemu", and also coming in.
Yes, I think you get the idea correctly.
and here is the complete scenario.
My approach in my current prototype that I have a Java Class as i use jHDL called Paralle.java the testbench of the the circuit connect the Parallel.java Data, Status and Control the HDL circuit and i run the testbench then i start the qemu with operating system installed, the current circuit i test is ordinary 8-bit adder I connect the Data to first input control to the second input and the output of the adder to the status of the parallel port all this connection done in the 8-bit full adder testbench,
At the emulator side, which has a Linux preinstalled i wrote the C code, this code use unmodified outp and inp function to send/recieve data to the parallel port the parallel.c redirect the data to the named pipe which is read by the Parallel.java code and stimulate the full adder jHDL circuit, the JHDL full adder calcluate the the sum of the data and control register and put the data on the status port of the parallel port, the C code read the status port which contains the result.
From user point of view
All this details should be seamless, all he needs to do is to connect his circuit to Parallel port component in his HDL simulator testbench and write an ordinary device driver or user space code for his OS on the emulator.
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user