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

Reply

VHDL - simulating 8255

 
Thread Tools Search this Thread
Old 03-02-2008, 05:56 PM   #1
Default simulating 8255


hi,
i want to simulate 8255 using vhdl.
is there any way to configure a port as an I/P or an O/P based on
certain conditions in d architecture? how do i go abt it?


Shalini Keshavamurthy
  Reply With Quote
Old 03-02-2008, 06:16 PM   #2
neha.k.ee@gmail.com
 
Posts: n/a
Default Re: simulating 8255
On Mar 2, 10:56 pm, Shalini Keshavamurthy <shal233s...@gmail.com>
wrote:
> hi,
> i want to simulate 8255 using vhdl.
> is there any way to configure a port as an I/P or an O/P based on
> certain conditions in d architecture? how do i go abt it?



You'd have to do it using inout ports


neha.k.ee@gmail.com
  Reply With Quote
Old 03-02-2008, 11:40 PM   #3
Mark McDougall
 
Posts: n/a
Default Re: simulating 8255
wrote:

>> i want to simulate 8255 using vhdl.


FYI been done (a few times) before...

>> is there any way to configure a port as an I/P or an O/P based on
>> certain conditions in d architecture? how do i go abt it?

> You'd have to do it using inout ports


I'd strongly suggest you don't use inout ports in your 8255 model, but
rather use input, output and output-enable ports for each 8255 IO port and
then connect them to bidir (inout) pins on the FPGA in the top level.

so:

entity 8255 is
(
...
8255_port_i : in std_logic;
8255_port_o : out std_logic;
8255_port_oe : out std_logic;
...
);

8255_port_i <= fpga_birdir_port;
fpga_bidir_port <= 8255_port_o when 8255_port_oe = '1' else 'Z';

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266


Mark McDougall
  Reply With Quote
Old 03-03-2008, 04:48 PM   #4
Shalini
 
Posts: n/a
Default Re: simulating 8255
On Mar 3, 4:40*am, Mark McDougall <ma...@vl.com.au> wrote:
> neha.k...@gmail.com wrote:
> >> i want to simulate 8255 using vhdl.

>
> FYI been done (a few times) before...
>
> >> is there any way to configure a port as an I/P or an O/P based on
> >> certain conditions in d architecture? how do i go abt it?

> > You'd have to do it using inout ports

>
> I'd strongly suggest you don't use inout ports in your 8255 model, but
> rather use input, output and output-enable ports for each 8255 IO port and
> then connect them to bidir (inout) pins on the FPGA in the top level.
>
> so:
>
> entity 8255 is
> (
> * ...
> * 8255_port_i * *: in std_logic;
> * 8255_port_o * *: out std_logic;
> * 8255_port_oe * : out std_logic;
> * ...
> );
>
> 8255_port_i <= fpga_birdir_port;
> fpga_bidir_port <= 8255_port_o when 8255_port_oe = '1' else 'Z';
>
> Regards,
>
> --
> Mark McDougall, Engineer
> Virtual Logic Pty Ltd, <http://www.vl.com.au>
> 21-25 King St, Rockdale, 2216
> Ph: +612-9599-3255 Fax: +612-9599-3266


thanks Mark
thanks neha


Shalini
  Reply With Quote
Old 05-01-2009, 10:59 AM   #5
priyvrat5
Junior Member
 
Join Date: Apr 2009
Posts: 1
Default 8255 Mode_1 VHDL/ Verilog Code.
Hello!

Can any body provide me 8255 Mode_1 & Mode_0 VHDL/ Verilog Code.


Regards


priyvrat5
priyvrat5 is offline   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




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