Using datapath as 'latch' possible?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

Hi,

   

 

   

I'm currently evaluating the datapath parallel in/out capabilities. So, I decided to make a latch (like D-FF). This latch has one 8-bit input, two 8-bit outputs, one clock (strobe) input and one SEL input for selecting the 8-bit output.

   

I configured the datapath with PI_SEL = PIN to force the SRCA to be always parallel input. There are two configurations where the A0WRSRC/A1WRSRC is the ALU. This means that the parallel in goes in either A0 or A1.

   

The parallel output is always enabled and depends on SRCA selection (A0 or A1). For my understanding this works even if the SRCA is forced to be the PI, right? So, for the two configurations also A0/A1 are chosen as the SRCA input.

   

Now, I wonder if this will work when the UDB gets a single clock strobe. I'm not sure if I understand the datapath correctly:

   

on the rising edge of the strobe input, the parallel input will be written to either A0 or A1 depending on the SEL input. Will this value also immediately be seen on the parallel output or does this need two clock strobes?

   

 

   

Regards,

   

 

   

Ralf

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When you look into the Datapath Cheat Sheet you see that there is no latch between the A0/A1 accumulators and the output PO, so a single clock cycle will work.

   

 

   

Bob

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

 Can you, please, post you project. Will be helpful for studying datapath programming - there are not many examples out there.

   

odissey1

0 Likes
RaAl_264636
Level 6
Level 6
50 sign-ins 25 sign-ins 10 solutions authored

@Bob,

   

 

   

thank you, I'll try it by combining two PSoC4 Prototyping kits to check it accordingly.

   

 

   

@Odissey:

   

I'll post the project as soon as I can declare it as working 🙂

   

 

   

Regards,

   

 

   

Ralf

0 Likes