Absolutely bizarre behavior of Propeller on DE0
escher
Posts: 138
I don't know where else to turn for this...
I have PASM code which pulses a verilog module, with each pulse resulting in an output from the module which the PASM code takes and uses for whatever.
What's happening is, the final pulse is always resulting in the module output going low.
Ok, something must be wrong with the module, right?
Get this: when I add a bunch of nop statements, even in completely unexecuted parts of the file (e.g. after my infinite loop) the final two pulses result in low output. And the more nops I add, the more pulses result in low output. It's almost like the size of the DAT section itself is causing this anomaly.
The only place in the DAT section I can put them without this anomaly occurring is immediately before the fit statement, after my register declarations and res statements.
Does anyone have a shred of a clue?
I have PASM code which pulses a verilog module, with each pulse resulting in an output from the module which the PASM code takes and uses for whatever.
What's happening is, the final pulse is always resulting in the module output going low.
Ok, something must be wrong with the module, right?
Get this: when I add a bunch of nop statements, even in completely unexecuted parts of the file (e.g. after my infinite loop) the final two pulses result in low output. And the more nops I add, the more pulses result in low output. It's almost like the size of the DAT section itself is causing this anomaly.
The only place in the DAT section I can put them without this anomaly occurring is immediately before the fit statement, after my register declarations and res statements.
Does anyone have a shred of a clue?
Comments
The Verilog Propeller.
The DE0 Nano
Your PASM code.
Your Verilog additions
The expected inputs and outputs.
Not enough information to make a judgement on.
I suspect you have a "#" missing in your PASM some place. Or perhaps one where it should not be.