Eugene,
There are three tasks of interest that might be enumerated as follows:
1) Setting up the TS7300 environment for fpga development
2) Custom fpga development
3) Using the arm-based linux system to communicate with the
fpga-implemented device(s)
Your first objective: "implementing the AND gate" only requires items
1 and 2. Understanding the wishbone bridge only applies to item 3. So,
initially, you may ignore the wishbone bridge scheme.
After you implement the AND gate, you may use various pins on the
dio1/dio2 header as inputs (some pins will be at 3.3V and some at
ground). You will connect these pins to the gate inputs and observe
the gate outputs with a meter or logic probe (you might need a pull-up
resistor to observe a high state - I don't remember).
Note that you must choose to create a .rbf output file from the altera
fpga tools. This file is copied via scp to the TS7300 and loaded into
the fpga using a TS supplied utility.
See message 12664 for details regarding item 1 above and for
information about loading the fpga.
--------------------------
When you want to affect the fpga from the arm cpu (like writing into
fpga-implemented registers and such) you need to understand the
function of the wishbone bridge.
The wishbone bridge is implemented as fpga code itself and produces a
slave-access environment from the perspective of fpga-implemented
devices that you might create. That is, it produces various bus
signals that other fpga code may monitor and to which it may respond
as different actions (like read and write) are initiated by the arm
cpu. The wishbone specification (available as a pdf document on the
opencore website) describes these signals as they relate to read and
write cycles from a bus master (i.e. the arm cpu) and defines
precisely how the slave (i.e. the fpga-implemented registers) must
respond. In addition, the fpga may initiate an interrupt which also
requires adherence to the wishbone-specified interrupt bus cycle protocol.
Hope this helps,
John Sinclair
--- In "pointdexter67" <> wrote:
>
>
> Hello Dave ,
> I finally purchased a 7300 board as you advice me. I will go for
> implementing my first AND gate in this FPGA .Let's hope this won't be
> a big problem. But there is an aspect I cannot understand. FPGA is
> told to be mapped between physical address 72A0.0000 to 72FF.FFFC ;
> from a simple calculus we can see that addressing of that address
> space cannot be done unless we use at least 22 distinct address
> lines. However as I saw from the schematics that number is much
> smaller. Can you please lighten me up a little by telling me which
> address lines must be used. For example if I want to build a block of
> registers into the FPGA how will I be able to map them. I'm not so
> clear which address lines to use . There are some ISA_ADD and also
> ADD lines. The lines that come directly from the CPU (9302) are the
> ADD lines but their number is small. I don't understand to well how
> the mapping is done.
> Thank you very much.
> Eugen
>
>
> Hello Dave ,
>
> I fina
>
> --- In David Hawkins <dwh@> wrote:
> >
> > Hi Eugen,
> >
> > > Can you please tell me which is the machanism of writing new code
> in
> > > the FPGA (I'm talking about the Lattice XP2 from the 7390 TPC ).
> As
> > > far as i know this chip contains the code for VGA , SD and a
> couple
> > > of serial ports.
> > >
> > > 1. Can i copy the actual contents of the chip for future
> restauration?
> > >
> > > 2. If i make a new code , for using the new functionality i think
> i
> > > have to write a device driver that will communicate with the new
> > > function of the Lattice.??
> > >
> > > 3. Please explan me a bit how this interaction between linux and
> > > Lattice is done from your point of view.
> > >
> > > My intention is to take an example from opencores and use it for
> > > learning.
> >
> > I haven't used/looked at the 7390 ... so I'll take a look on
> > EmbeddedArm and give you general comments.
> >
> > The FPGA is a Lattice XP2, so you'd write your HDL code using
> > Lattice's tool (ispLevel).
> >
> > From the FPGA datasheet:
> >
> > http://www.latticesemi.com/documents/HB1004.pdf
> >
> > LatticeXP2 devices combine a Look-up Table (LUT) based FPGA
> > fabric with non-volatile Flash cells in an architecture
> > referred to as flexiFLASH.
> >
> > So the FPGA is an SRAM-based FPGA that configures at power-on
> > from an on-chip/in-package Flash. Altera's MAX II devices
> > are similar.
> >
> > Since the Flash is on-chip, its likely the device has a
> > security feature where you can not copy the current image,
> > so you would need to get that directly from TS if you
> > wanted to recover your FPGA.
> >
> > The data sheet comments about 'dual-boot technologies', indicating
> > two images could be in the on-chip Flash, so you might be able
> > to exploit that feature if the FPGA has been wired to support it.
> >
> > However, without direct customization help from TS, there is a high
> > probability that you would *brick* the TS-7390. I would not
> > recommend you heading this route.
> >
> > The OpenCores example is for the TS-7300 and its Altera Cyclone
> > FPGA. Though the TS-7390 design is similar, and the TS internal
> > HDL code for the FPGAs is probably almost identical, it will be
> > a lot harder for you to customize the TS-7390.
> >
> > Why not stick with using the TS-7300?
> >
> > Cheers,
> > Dave
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|