FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-2007, 08:41 AM
Vagant
Guest
 
Posts: n/a
Default Addresses of subsystems

Hello All,

I have a system which consists of many subsystems which will be
connected
to a common bus (this includes 16-bit data and 16-bit address buses).
This system is FPGA-based and I want to control its work through GUI
from PC host.
Hence, a program on PC host has to know addresses of sunsystems in
order to communicate with them. My question is - how my program will
know the addresses of each subsystems of the system and how these
addresses are assigned? So far, my host knows only addresses of it's
external ports, i.e. serial and parallel, but has no idea about what
could be addresses of subsystems on FPGA.

Reply With Quote
  #2 (permalink)  
Old 10-24-2007, 12:04 PM
RCIngham
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

>Hello All,
>
>I have a system which consists of many subsystems which will be
>connected
>to a common bus (this includes 16-bit data and 16-bit address buses).
>This system is FPGA-based and I want to control its work through GUI
>from PC host.
>Hence, a program on PC host has to know addresses of sunsystems in
>order to communicate with them. My question is - how my program will
>know the addresses of each subsystems of the system and how these
>addresses are assigned? So far, my host knows only addresses of it's
>external ports, i.e. serial and parallel, but has no idea about what
>could be addresses of subsystems on FPGA.
>


The driver software in the PC will have to configured to know th
addresses. The method will depend on how the drivers are written, and wha
sort of PC->external bus.

This is a software problem, not an FPGA problem.



Reply With Quote
  #3 (permalink)  
Old 10-24-2007, 12:49 PM
Vagant
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 12:04 pm, "RCIngham" <[email protected]> wrote:
> >Hello All,

>
> >I have a system which consists of many subsystems which will be
> >connected
> >to a common bus (this includes 16-bit data and 16-bit address buses).
> >This system is FPGA-based and I want to control its work through GUI
> >from PC host.
> >Hence, a program on PC host has to know addresses of sunsystems in
> >order to communicate with them. My question is - how my program will
> >know the addresses of each subsystems of the system and how these
> >addresses are assigned? So far, my host knows only addresses of it's
> >external ports, i.e. serial and parallel, but has no idea about what
> >could be addresses of subsystems on FPGA.

>
> The driver software in the PC will have to configured to know the
> addresses. The method will depend on how the drivers are written, and what
> sort of PC->external bus.
>
> This is a software problem, not an FPGA problem.


Well, could you give an advice where to start learning how to write a
driver?
and how to configure a driver?

Reply With Quote
  #4 (permalink)  
Old 10-24-2007, 12:58 PM
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

>> This is a software problem, not an FPGA problem.

>Well, could you give an advice where to start learning how to write a
>driver?
>and how to configure a driver?


You're in the wrong newsgroup.
Reply With Quote
  #5 (permalink)  
Old 10-24-2007, 01:26 PM
Vagant
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 12:58 pm, [email protected] wrote:
> >> This is a software problem, not an FPGA problem.

> >Well, could you give an advice where to start learning how to write a
> >driver?
> >and how to configure a driver?

>
> You're in the wrong newsgroup.


....and this is why the right direction was asked. But never mind!

Reply With Quote
  #6 (permalink)  
Old 10-24-2007, 02:16 PM
Noway2
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

Vagant wrote:
> On Oct 24, 12:58 pm, [email protected] wrote:
>
>>>>This is a software problem, not an FPGA problem.
>>>
>>>Well, could you give an advice where to start learning how to write a
>>>driver?
>>>and how to configure a driver?

>>
>>You're in the wrong newsgroup.

>
>
> ...and this is why the right direction was asked. But never mind!
>

I was once in the a similar position as you are in now, with a similar
system... PC host talking to attached (FPGA) based hardware. I wasn't
able to see how to solve the problem until several years later when I
gained a lot more experience developing embedded systems, so I don't
think a news group is going to give you the answer.

As far as a push in the right direction, I would recommend downloading a
copy of the book on Linux Device Drivers and tryin to work through that.
It should help to give you some idea of how to build the bridge
between your hardware and software.

Reply With Quote
  #7 (permalink)  
Old 10-24-2007, 03:23 PM
John McCaskill
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 7:26 am, Vagant <[email protected]> wrote:
> On Oct 24, 12:58 pm, [email protected] wrote:
>
> > >> This is a software problem, not an FPGA problem.
> > >Well, could you give an advice where to start learning how to write a
> > >driver?
> > >and how to configure a driver?

>
> > You're in the wrong newsgroup.

>
> ...and this is why the right direction was asked. But never mind!



If you are using Linux, get "Linux Device Drivers". You can get a free
pdf of it here:

http://lwn.net/Kernel/LDD3/

Regards,

John McCaskill
www.fastertechnology.com

Reply With Quote
  #8 (permalink)  
Old 10-24-2007, 03:39 PM
Vagant
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 2:16 pm, Noway2 <[email protected]> wrote:
> Vagant wrote:
> > On Oct 24, 12:58 pm, [email protected] wrote:

>
> >>>>This is a software problem, not an FPGA problem.

>
> >>>Well, could you give an advice where to start learning how to write a
> >>>driver?
> >>>and how to configure a driver?

>
> >>You're in the wrong newsgroup.

>
> > ...and this is why the right direction was asked. But never mind!

>
> I was once in the a similar position as you are in now, with a similar
> system... PC host talking to attached (FPGA) based hardware. I wasn't
> able to see how to solve the problem until several years later when I
> gained a lot more experience developing embedded systems, so I don't
> think a news group is going to give you the answer.
>
> As far as a push in the right direction, I would recommend downloading a
> copy of the book on Linux Device Drivers and tryin to work through that.
> It should help to give you some idea of how to build the bridge
> between your hardware and software.


Many thanks for advice.

Reply With Quote
  #9 (permalink)  
Old 10-24-2007, 03:59 PM
Vagant
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 3:23 pm, John McCaskill <[email protected]> wrote:
> On Oct 24, 7:26 am, Vagant <[email protected]> wrote:
>
> > On Oct 24, 12:58 pm, [email protected] wrote:

>
> > > >> This is a software problem, not an FPGA problem.
> > > >Well, could you give an advice where to start learning how to write a
> > > >driver?
> > > >and how to configure a driver?

>
> > > You're in the wrong newsgroup.

>
> > ...and this is why the right direction was asked. But never mind!

>
> If you are using Linux, get "Linux Device Drivers". You can get a free
> pdf of it here:
>
> http://lwn.net/Kernel/LDD3/
>
> Regards,
>
> John McCaskillwww.fastertechnology.com


Thank you for the link. I want to use Linux as an OS running on host.
However, I wonder whether
a system designed using ISE WebPack under Windows will be working with
Linux.

Reply With Quote
  #10 (permalink)  
Old 10-24-2007, 06:12 PM
John McCaskill
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 9:59 am, Vagant <[email protected]> wrote:
> On Oct 24, 3:23 pm, John McCaskill <[email protected]> wrote:
>
>
>
> > On Oct 24, 7:26 am, Vagant <[email protected]> wrote:

>
> > > On Oct 24, 12:58 pm, [email protected] wrote:

>
> > > > >> This is a software problem, not an FPGA problem.
> > > > >Well, could you give an advice where to start learning how to write a
> > > > >driver?
> > > > >and how to configure a driver?

>
> > > > You're in the wrong newsgroup.

>
> > > ...and this is why the right direction was asked. But never mind!

>
> > If you are using Linux, get "Linux Device Drivers". You can get a free
> > pdf of it here:

>
> >http://lwn.net/Kernel/LDD3/

>
> > Regards,

>
> > John McCaskillwww.fastertechnology.com

>
> Thank you for the link. I want to use Linux as an OS running on host.
> However, I wonder whether
> a system designed using ISE WebPack under Windows will be working with
> Linux.


The OS that you are running the FPGA tools under does not lock your
design to having to be hosted by the same OS.

We produce PCI cards with Virtex-4 FX FPGAs on them. See www.fastertechnology.com
for more info on them. We run EDK, ISE, ModelSim, and ImpulseC on
Windows computers. We only support Linux for the PCI cards host and
embedded OS. The fact that we use Windows to compile the FPGA bit
streams does cause problems with using those bit streams in a Linux
environment.

Regards,

John McCaskill
www.fastertechnology.com

Reply With Quote
  #11 (permalink)  
Old 10-24-2007, 08:33 PM
Noway2
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

Vagant wrote:
> On Oct 24, 3:23 pm, John McCaskill <[email protected]> wrote:
>
>>On Oct 24, 7:26 am, Vagant <[email protected]> wrote:
>>
>>
>>>On Oct 24, 12:58 pm, [email protected] wrote:

>>
>>>>>>This is a software problem, not an FPGA problem.
>>>>>
>>>>>Well, could you give an advice where to start learning how to write a
>>>>>driver?
>>>>>and how to configure a driver?

>>
>>>>You're in the wrong newsgroup.

>>
>>>...and this is why the right direction was asked. But never mind!

>>
>>If you are using Linux, get "Linux Device Drivers". You can get a free
>>pdf of it here:
>>
>>http://lwn.net/Kernel/LDD3/
>>
>>Regards,
>>
>>John McCaskillwww.fastertechnology.com

>
>
> Thank you for the link. I want to use Linux as an OS running on host.
> However, I wonder whether
> a system designed using ISE WebPack under Windows will be working with
> Linux.
>

What the Linux book will do is show you how to control custom hardware
via the FILE concept that the OS uses. Basically, it will show you how
to map the read, write, open, and ioctrl commands to functions to be
performed by your hardware.

You will still need to get your hardware tied into the PC's bus. This
will require a lot of effort and can be done in multiple ways, such as
using a PCI bridge device or embedding a PCI interface in your FPGA.

Reply With Quote
  #12 (permalink)  
Old 10-24-2007, 08:56 PM
John McCaskill
Guest
 
Posts: n/a
Default Re: Addresses of subsystems

On Oct 24, 12:12 pm, John McCaskill <[email protected]> wrote:
> On Oct 24, 9:59 am, Vagant <[email protected]> wrote:
>


<snip>

> embedded OS. The fact that we use Windows to compile the FPGA bit
> streams does cause problems with using those bit streams in a Linux
> environment.
>


That should have read:

The fact that we use Windows to compile the FPGA bit
streams does NOT cause problems with using those bit streams in a
Linux
environment.

Regards,

John McCaskill
www.fastertechnology.com

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Impact with non-standard LPT base addresses Antti Lukats FPGA 3 12-26-2006 07:10 PM


All times are GMT +1. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved