Hi David:

It seems to start working now. But I have not finished the compiling. 

I check the mhs file, the function is implemented correctly. Hope all pin 
definition are right.

Wan 

-----Original Message-----
From: David George [mailto:david.geo...@ska.ac.za] 
Sent: Friday, 16 October 2009 6:06 PM
To: Cheng, Wan (ATNF, Marsfield)
Cc: casper@lists.berkeley.edu
Subject: Re: [casper] The Roach GPIO error in casper library


Hi Wan
>  
> When I use ROACH:GPIO in casper library, I was told "undefined routing 
> table for hardware system: ROACH(gpioA)".
>  
This error indicates that the bus you have selected (gpioA) hasn't been 
populated in the BEE2_hw_routes.mat routing table. The routing table 
contains the mapping between the various GPIO busses, e.g zdok/leds, and 
theirs associated pin locations (ucf pin constraints). I recommend that 
you load the file into matlab and fiddle around with it, you'll get the 
idea.

As of the 14th of August 2009 the single-ended IO on ROACH has been 
integrated into the casper toolflow. After updating your svn you should 
see gpioa, gpioa_oe_n, gpio_b and gpio_b_oe_n in the GPIO block. If you 
don't, try reverting to the library gpio block. These should provide you 
with access to the ROACH single-ended GPIO. You should note that you 
need to control the direction buses of the GPIO using the gpioa_oe_n and 
gpiob_oe_n output enables signals. So setting gpioa_oe_n to '0' (active 
low) will set the whole gpioa bus to outputs and '1' to inputs.

Regards,
David

-- 
David George
Digital Design Engineer
Karoo Array Telescope
Tel:     +27 21 531-7282
Fax:     +27 21 531-9761
Email:   david.geo...@ska.ac.za
Web:     www.ska.ac.za




Reply via email to