Software trigger

Applications, development tools, FPGA, C, WEB
Post Reply
Kev' Ttn
Posts: 55
Joined: Tue Jun 24, 2014 3:06 pm
Location: Dourdan (France)

Software trigger

Post by Kev' Ttn » Mon Dec 01, 2014 4:02 pm

Hi everyone,

Today, I wanted to implement a new functionality on my RP, I wanted to save into memory the value of a timer with the FPGA when a trigger happens.

Unfortunately, I don't know how the FPGA part knows when a trigger happens. I saw into the scope part (in the vivado project) a value adc_trig. Is it the one I have to use to check if a trigger happens ?

Thank you in advance.

Regards.

Kevin.

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Software trigger

Post by Nils Roos » Mon Dec 01, 2014 7:43 pm

Hi Kevin,

The adc_trig register is indeed the one that is set when the trigger condition is met. It will remain 1 for one adc_clk_i cycle.

Cheers, Nils

Kev' Ttn
Posts: 55
Joined: Tue Jun 24, 2014 3:06 pm
Location: Dourdan (France)

Re: Software trigger

Post by Kev' Ttn » Tue Dec 02, 2014 9:36 am

Hi Nils,

Thank you very much for your quick answer ! You're the best ;)

Regards.

Kevin

Kev' Ttn
Posts: 55
Joined: Tue Jun 24, 2014 3:06 pm
Location: Dourdan (France)

Re: Software trigger

Post by Kev' Ttn » Tue Dec 02, 2014 3:36 pm

I have another question ... Can I light on the LEDs from a different module that housekeeping ?

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Software trigger

Post by Nils Roos » Tue Dec 02, 2014 4:04 pm

Sure, you just need to make sure that the led_o[x] line in question is only connected to one module at a time.
(Or introduce some logic to arbitrate mutliple driving modules^^)

Kev' Ttn
Posts: 55
Joined: Tue Jun 24, 2014 3:06 pm
Location: Dourdan (France)

Re: Software trigger

Post by Kev' Ttn » Wed Dec 03, 2014 9:31 am

OK, I'll try to apply your advices.

Thank you very much.

Kev' Ttn
Posts: 55
Joined: Tue Jun 24, 2014 3:06 pm
Location: Dourdan (France)

Re: Software trigger

Post by Kev' Ttn » Thu Dec 04, 2014 3:48 pm

Hi Nils,

I just want to thank you again ! After I have applied your advices, it works great and I learnt a lot in Verilog and in FPGA :)

Regards

Kevin.

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Software trigger

Post by Nils Roos » Thu Dec 04, 2014 8:52 pm

You are very welcome.
If you build something that might be useful or interesting for others, don't hesitate to share 8-)

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 41 guests