I'm trying to interface an XS1-L2 to the local bus on a processor. And I'm running into a couple of issues that I can't quite get my head around.
1) I'm using the standard XS1-L2A-QF124 xn configuration file. I'm guessing that this will run the chip at 400MHz but I'd actually like to run it 500MHz, and how do I tell what speed the core is running at anyway?
2) I have a select statement in my code which attempts to drive an LED to mimic one of my input signals:
Code: Select all
while (1)
{
select
{
case pin_CS when pinsneq(cs) :> cs :
if ((cs == 0))
{
pin_XLED1 <: 0;
}
if ((cs == 1))
{
pin_XLED1 <: 1;
}
break;
}
}
The CS pin goes low for 200ns and then goes back high.
The LED goes low 250ns after the falling edge of CS.
The LED goes high 620ns after the rising edge of CS.
What can I do to improve this performance? I have pulses a lot narrower than CS to deal with, and I must react on BOTH the rising and falling edges of them.
Thanks for any advice,
A