Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Storing values to D0/D1 register in Datapath

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Storing values to D0/D1 register in Datapath
Moderator:
RKRM

Post Reply
Follow this topic



Storing values to D0/D1 register in Datapath

HappyHour posted on 31 Oct 2012 4:10 AM PST
Member
10 Forum Posts

HI fellow programmers,

I am doing some datapath and verilog programming and I needed help with the transferring of data. As you all know, all computation are stored inside the A0/A1 register. However, I am interested in pushing this data to D0/D1 register so that I can carry on with more computation on the A0/A1 registers. I have already used up the 4 bytes in FIFO. So is there anyway I can transfer the data from A0/A1 to D0/D1?




Re: Storing values to D0/D1 register in Datapath

PSoC Rocks posted on 31 Oct 2012 07:12 AM PST
Top Contributor
128 Forum Posts

 As shown in the attached picture "Datapath.png", ALU output can be written directly into FIFO0 or FIFO1 or Accumulator0 or Accumulator1 only. It is not possible to directly write the ALU output into Data registers.

 

So the simplest option is to move the ALU output into any of the FIFOs and then move it Data registers using another state of Datapath. But you are already using FIFOs for some other purpose and data is there in FIFOs as well. So you can trigger a DMA to move the data from Accumulator register to put into Data register externally. In the Verilog code, wait for DMA transaction complete signal to make sure that data has been copied onto Data register.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20