UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor chesh
Visitor
4,623 Views
Registered: ‎01-17-2016

Generate random number in HLS

Is there any way to generate a (psuedo) random number in HLS.

It would be an option to create an LFSR in VHDL and stream this to the HLS block as an input but requires some more complexity to the design.

0 Kudos
2 Replies
Scholar austin
Scholar
4,601 Views
Registered: ‎02-27-2008

Re: Generate random number in HLS

pseudo random number generator in c

 

Just search for the above phrase in your favorite search engine.

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Teacher muzaffer
Teacher
4,581 Views
Registered: ‎03-31-2012

Re: Generate random number in HLS

@chesh hls takes C as input so you can use a C prng.

try this: http://random.mat.sbg.ac.at/results/karl/server/ for size ;-)

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
0 Kudos