read, write in c

V

vick

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
 
J

jacob navia

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
 
J

Joe Smith

jacob navia said:
vick a écrit :

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
 
C

CBFalconer

Joe said:
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/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,183
Messages
2,570,965
Members
47,511
Latest member
svareza

Latest Threads

Top