Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Port Mapping

 
Thread Tools Search this Thread
Old 01-18-2005, 08:21 PM   #1
Default Port Mapping


Hello,

I am trying to do write the data into the RAm using CPLD..
CPLD is interfaced to a USB chip wjich is producing new
data at each falling edge of the clock. Now, My question
is that I am directing equating the USB bus( 8 bit port )
to the data bus . Is it right way to do it?
Thanks
John



Entity DPR is

port (

Data_Bus : out unsigned (13 downto 0);

USB_Data :in unsigned ( 7 downto 0);


);

End DPR;

Process( State2 )

Begin

Case State2 is


When G0=>
inc <='1';
Data_Bus ( 13 downto <= USB_Data ( 5 downto 0 );
UBL <='0'; --1 old value
LBL <='1'; --0 0ld value
nextstate2 <=G1;

When G1 =>
inc <='0';
Data_Bus ( 7 downto 0) <= USB_Data ( 7 downto 0 );
UBL <='1'; --0 old value
LBL <='0'; --1 old value
nextstate2 <=G0;

When others =>

nextstate2 <=G0;

End case;

End Process;


Process (USB_CLK )
Begin

If( USB_CLK 'Event And USB_CLK ='0' ) Then

State2 <= nextstate2;
State <= nextstate;
End If;

End Process;

End DPR_ARCH;



john
  Reply With Quote
Old 01-19-2005, 10:55 AM   #2
zingafriend@yahoo.com
 
Posts: n/a
Default Re: Port Mapping
I would say, that you first register the data coming from the USB and
then put it on the data bus.

-Neo



zingafriend@yahoo.com
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not access console port of Cisco 7200 vxr mansurbd Hardware 1 01-12-2009 06:53 PM
How to check current event and port status for Aliwei FXO gateway Robin wang Hardware 0 04-11-2008 09:54 AM
Port 445: Effective/Safe Blocking Samwise General Help Related Topics 0 01-06-2008 09:19 PM
Long, regarding a "lost" COM port smackedass A+ Certification 4 02-05-2007 04:55 PM
non plug and play device on com port? David K A+ Certification 1 07-18-2003 08:38 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46