Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
yatcick
Posts: 3
Registered: ‎03-13-2012
0
Accepted Solution

assembler code for PicoBlaze not working.

[ Edited ]

Please, tell me! Why my code output data from register sC instead sA?

 

      LOAD sA, 01
start:

     SLA sA
     OUTPUT sA, 00 
     LOAD sC, ff

delay:
     sub sC, 01
     jump nz, delay
     JUMP start

Expert Contributor
gszakacs
Posts: 5,253
Registered: ‎08-14-2007
0

Re: assembler code for PicoBlaze not working.

How did you come to the conclusion that the data is coming from sC?

 

Is the data always zero?

 

What's the value of sA when this happens?  From what I can see, it should

go to 0 after 8 passes through the loop.

 

-- Gabor

-- Gabor
Visitor
yatcick
Posts: 3
Registered: ‎03-13-2012
0

Re: assembler code for PicoBlaze not working.

I set out_port to leds on spartan 3 and in low frequence on clk I see that data not shifting but subtracting in cycle.

Expert Contributor
gszakacs
Posts: 5,253
Registered: ‎08-14-2007

Re: assembler code for PicoBlaze not working.

So you're saying the LED's are changing even when you are not executing an OUTPUT

command?

 

That sounds like you don't have the required register between the output bus and the LED's.

The out_port (write data) and port_id (address) are only valid on the cycle when the write_strobe

(write enable) is active.  You need a register that only updates from the out_port on cycles

when port_id is zero and write_strobe is one.

 

-- Gabor

-- Gabor
Visitor
yatcick
Posts: 3
Registered: ‎03-13-2012
0

Re: assembler code for PicoBlaze not working.

Thanks!!!