- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
TEST instructio n
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-06-2012 08:58 PM
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.
Solved! Go to Solution.
Re: TEST instructio n
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2012 04:09 AM
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_doc
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.
Principal Engineer, Xilinx UK
Re: TEST instructio n
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2012 08:43 AM
Thank you for replying so much. The PDF i have about picoblaze doesn't detailed like this. I answered my question with this guide.
Re: TEST instructio n
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-08-2012 05:26 PM - edited 04-08-2012 05:29 PM
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
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.











