cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dawatson
Observer
Observer
2,144 Views
Registered: ‎05-15-2012

Changing the number of FSL reads during run-time via a control instruction

Jump to solution

Hi all

 

I was wondering if it possible to change the number of reads a FSL peripheral does during run-time. For example, if the computation the peripheral does depends on the amount of data the Microblaze sends it, can you change this through the nr_of_reads variable, or is it hard coded when the peripheral is created.

 

An example operation is:

Peripheral created to take in 4 inputs and output 1.

Microblaze sends peripheral 2 data then a contol signal telling the perihperal there's only 2: peripheral should process these two and return the result.

Microblaze send peripheral 4 data then control signal telling peripheral there's 4 pieces of data: peripherla should proces all 4 and return result.

 

Im trying to make this happen by modifying the nr_of_reads variable but when I do this the peripheral still takes in the maximum number of inputs.

 

Anyone know if this is this possible?

 

Cheers

 

David

0 Kudos
1 Solution

Accepted Solutions
dawatson
Observer
Observer
2,624 Views
Registered: ‎05-15-2012

Sorry guys, it's possible. I was being a bit simple there!

View solution in original post

0 Kudos
1 Reply
dawatson
Observer
Observer
2,625 Views
Registered: ‎05-15-2012

Sorry guys, it's possible. I was being a bit simple there!

View solution in original post

0 Kudos