Hi,
I want a design in vhdl, but i wan to test it in c. I want to have some code
for 2 registers, REG1, REG2, 8-bits each.
First REG1 is written with all bits set to 1 i.e. value FF, then after few
seconds, all bits are reset to 0. During the transition
from FF to 0 in REG1, a value '4' is written in REG2.
I am very thankful to the help.
Regards,
vick 3 1477
vick a écrit : Hi,
I want a design in vhdl, but i wan to test it in c. I want to have some code for 2 registers, REG1, REG2, 8-bits each. First REG1 is written with all bits set to 1 i.e. value FF, then after few seconds, all bits are reset to 0. During the transition from FF to 0 in REG1, a value '4' is written in REG2.
I am very thankful to the help.
Regards, vick
I have no idea by reading your message what your question is. You
assume that everyone here knows VHDL?
char REG1,REG2;
int a_few_seconds=5;
extern int doSleep(int seconds);
int main(void)
{
REG1=0xff;
doSleep(a_few_seconds);
REG1=0;
REG2=4;
}
And so what? Is that what you want???
Please try to convey enough information in your message so that other
people that are NOT vhdl experts can understand what you want.
jacob
"jacob navia" <ja***@jacob.remcomp.fr> wrote in message
news:44**********************@news.wanadoo.fr... vick a écrit : Hi,
I want a design in vhdl, but i wan to test it in c. I want to have some code for 2 registers, REG1, REG2, 8-bits each. First REG1 is written with all bits set to 1 i.e. value FF, then after few seconds, all bits are reset to 0. During the transition from FF to 0 in REG1, a value '4' is written in REG2.
I am very thankful to the help.
Regards, vick
I have no idea by reading your message what your question is. You assume that everyone here knows VHDL?
char REG1,REG2; int a_few_seconds=5;
extern int doSleep(int seconds);
int main(void) { REG1=0xff; doSleep(a_few_seconds); REG1=0; REG2=4; }
And so what? Is that what you want???
Please try to convey enough information in your message so that other people that are NOT vhdl experts can understand what you want.
jacob
No, jacob, everyone needs to be an expert on his own vhdl. The one register
is too high and the other too low, but it's nothing that a little healthy
living can't address. Joe
Joe Smith wrote: "jacob navia" <ja***@jacob.remcomp.fr> wrote in message vick a écrit : I want a design in vhdl, but i wan to test it in c. I want to have some code for 2 registers, REG1, REG2, 8-bits each. First REG1 is written with all bits set to 1 i.e. value FF, then after few seconds, all bits are reset to 0. During the transition from FF to 0 in REG1, a value '4' is written in REG2.
I have no idea by reading your message what your question is. You assume that everyone here knows VHDL?
.... snip ... Please try to convey enough information in your message so that other people that are NOT vhdl experts can understand what you want. No, jacob, everyone needs to be an expert on his own vhdl. The one register is too high and the other too low, but it's nothing that a little healthy living can't address. Joe
No, as usual Jacob is off-topic, and wasting everybodies time and
energy by encouraging off-topic questions. The correct answer
would have been to go where vhdl (or whatever) is on-topic. We
can't blame the OP for lack of knowledge, and these answers to
nothing to improve him.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jas |
last post by:
Hi,
I would like to start a new process and be able to read/write from/to
it. I have tried things like...
import subprocess as sp
p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
|
by: BBM |
last post by:
I have an object that has a fairly complex construction sequence, so I have
written a dedicated "factory" class that invokes the constructor of my object
class (which does nothing but instantiate...
|
by: Juan Manuel Ramollino |
last post by:
Greetings everyone!
I am creating a webcontrol that reads one or more directorie's content and
displays all the filenames (tipically PDFs or PPTs) so that the user can
select the desired one and...
|
by: Just Me |
last post by:
Using streams how do I write and then read a set of variables?
For example, suppose I want to write into a text file:
string1,string2,string3
Then read them later.
Suppose I want to write...
|
by: a |
last post by:
I have a struct to write to a file
struct _structA{
long x;
int y;
float z;
}
struct _structA A;
//file open
write(fd,A,sizeof(_structA));
//file close
| |
by: Arpan |
last post by:
The contents of a text file are as follows:
The Quick Brown
Fox Jumped Over
The Lazy Dog.
Note that there isn't any space at the end of each of the 3 lines.
Now when I do this:
|
by: dosworldguy |
last post by:
I have been having a very peculiar issue from a long time.
I have an application where multiple clients read from a shared set of
files. When a record is changed, sometimes the win9x clients...
|
by: vinothg |
last post by:
I have a binary file,which contains strings of 30 bytes each.I need to open the file,read the strings one by one and if the string is not found i need to write it.But unfortunately both read and...
|
by: asit dhal |
last post by:
hello friends,
can anyone explain me how to use read() write() function in C.
and also how to read a file from disk and show it on the monitor using
onlu read(), write() function ??????
|
by: vineeth |
last post by:
Hello all,
I have come across a weird problem, I need to determine the amount
of bytes read from a file, but couldn't figure it out ,
My program does this :
__
file = open("somefile")
data =...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| | |