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
trafo
Posts: 2
Registered: ‎04-06-2012
0
Accepted Solution

TEST instruction

Hi,

I'm new to PicoBlaze and i'm trying to understand basic things.

 

My questions is; What is the "05" in second line stands for? Is it of 5th bit of s0?

 

INPUT s0, input_port
TEST s0, 05

 

And again in this line, is "80" value of this constant?

 

CONSTANT LED7, 80    

 

Sorry for these questions but i dont have person around me to learn that basic stuffs. Also internet resources are too high-level and cosidering me as knowing them.

 

Thank you.

Xilinx Employee
chapman
Posts: 413
Registered: ‎09-05-2007
0

Re: TEST instruction

I suggest that you read the PicoBlaze documentation. You did not state if you are using KCPSM3 or KCPSM6 but both describe these fundamental items.

 

For example, for KCPSM3 then see....

 

http://www.xilinx.com/support/documentation/ip_documentation/ug129.pdf

 

Page 28 and page 29 dscribes the TEST instruction and even shows an example using values '04' and '05'.

 

Page 72 describes the CONSTANT directive.

 

If you can't understand the documentation provided with KCPSM3 and/or KCPSM6 then please return forum and ask more questions referencing the exact parts of of the documentation you need help with.  

Ken Chapman
Principal Engineer, Xilinx UK
Visitor
trafo
Posts: 2
Registered: ‎04-06-2012
0

Re: TEST instruction

Thank you for replying so much. The PDF i have about picoblaze doesn't detailed like this. I answered my question with this guide.

Expert Contributor
eteam00
Posts: 7,505
Registered: ‎07-21-2009
0

Re: TEST instruction

[ Edited ]

My questions is; What is the "05" in second line stands for? Is it of 5th bit of s0?

 

INPUT s0, input_port
TEST s0, 05

 

See UG129 version 2.0, Table 3-1, page 18.  Then see section starting on page 28.

 

 

 

And again in this line, is "80" value of this constant?

 

CONSTANT LED7, 80   

 

See UG129 version 2.0, page 72: Defining Constants


 

The PDF i have about picoblaze doesn't detailed like this. I answered my question with this guide.

 

For the latest versions of documents, download and install Document Navigator.

 

-- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.