Search Engine www.edaboard.com

80 Threads found on edaboard.com: Random Number Generator
Hi All, I want to generate a true random number in Actel ProAsic3 FPGA development board which operates at 48 MHz. I tried to implement it using ring oscillators (RO) and used the system clock i.e. 48 MHz as sampling frequency. As the sampling period is around 48 MHz => 21 ns, the RO period should at least be double the sampling frequency, i.e.
I am trying to generate TRUE random numbers on Kintex-7. I am following the paper published by Xilinx, where a ring oscillator is used for random number generation and LHCA has been used as a scrambler. BUT, whenever I capture 11 Mega bytes of data (True random numbers) and pass them (...)
Hi, look for "Pseudo random number generator" using shift registers with feedback. I´ve used it with AVRs and assembler, but not on PICs. Klaus
Hi All I have a problem to NOISE Analysis in HSPICE 2013. I am working on True random number generator based on Metastability. I have to simulate a circuit in HSPICE and I have to analysis the Noise. Can any one to help me?
how can I .... generate random bits? If this is what you want, then the best way is to use a pseudo-random sequence generator, PRSQ. Is this for BER testing? If so what bit rate and length of pattern ? There are many different lengths using prime number of shift registers for Maximal length PRSG designs using shift (...)
Hi Guys. Recently, I'm getting interested in the PRN generator Using Linear Feedback Shifting Register(LFSR). If Low Power Performance is desired, which Logic Type and clock strategy are preferred.
I am using a Bernoulii Binary generator to generate my data signal for a Direct sequence spread spectrum model I am designing on SIMULINK. The specifications of the generator block is as follows : Probability of zero : 0.5 Initial seed : 61 ( random number ) sample time : 0.6 Frame based outputs Samples per frame : (...)
@Trickedeasy Whether the seed are initialised to a particular number or left uninitialised, for both cases, same sequence of random number are generated I think this is not true for a LFSR generator. probably you could not load your LFSR correctly or mot simulating enough time. I need random seed values (...)
Hi all, Can any body plz give me code to generate 4 digit random number which should not be repeated if appear once until all 9998 combinations. Code should run in KEIL for ARM. I wrote one with 'randomize ()' and random function which is giving an error in KEIL. Plz guide.
The Monte Carlo process isn't truly random. It uses a pseudo random number generator based on a seed value. If you don't change the seed you will get identical results from two groups of Monte Carlo runs. I have never experimented with netlist order but it seems reasonable that changing that will change the results. The (...)
randn('state',0); initiate the random number generator
I am trying to build a simple transmitter and receiver in simulink. Output of random number generator multiplied with PN generator. Then, after bpsk modulation and raised cosine pulse shaping it is fed to awgn channel. I need to know the parameters for this design and ways to reduce BER.
To clarify, the upper two bits as the feedback taps only works for a few lengths. Simply try a 3b lfsr, 4b lfsr, and 5b lfsr. The 3b/4b will work, but the 5b lfsr will have cycles of different length based on the initial value of the state register. If you want to use two taps, try the 15b lfsr as the two msb's are correct for a sequence of leng
random number (RAND), which is a frequently changing 128-bit random or pseudo-random number that is made by the Bluetooth device software itself. Common input for key generation. All Bluetooth devices have this random number generator. Bluetooth (...)
I made a true random number generator from a 74HC595 shift register and a 74HC04 hex inverter. With the addition of a 4538 precision monostable and a few passive components, I had a randomly twirling laser cat
Possibly, but the number may be cyclic because the timer will update at a regular rate and will always have the same start value. In other words, you may get something which looks random but gives the same pattern sequence after each processor reset. If you are finding a truly random sequence I would suspect it is because 'i' and 'start' (...)
You've done everything and asking for how to do it !!! you need to generate 8-bit pseudo random generator and want to show that combination through 8 LEDs , Right ? Now you've already done with 8 bit pseudo random number generator and need an assemble code to display as well as to store on flash !!! Here (...)
Im trying to make 2 random number simultaneously, using timer 0. but im not sure how to. i also heard that timer 2 can be used as well. can any 1 help me with a sample code. this is my code: #include #include void ISR (void); char i,start,end; #pragma code L_vector=0x18 void L_vector(void){ _asm goto I
I have a problem with the random number generator function with MPLAB c programming. We use rand() to generate 2 numbers, but the 1st number is generated randomly in odd sequence and the other number is generated randomly in even sequence. The (...)
Hi write an LFST code generator(u can find on the net) then treat its output as a floating point number between 0 and 1 then multiply it by a number that you want to have jitter for example you want to have 0 to 10 percent jitter so multply by 10 then you will have a random number between 0 and ten. then (...)
Is this procedure declarations allowed? process ( gtx0_txusrclk2_i) VARIABLE seed1, seed2: positive := 3 ; -- Seed values for random generator VARIABLE rand: real; -- random real-number value in range 0 to 1.0 VARIABLE int_rand: integer; (...)
but If I want to display exact percentage how should I do?? Using a random number generator will produce a similar accuracy of "exact percentage". Forget about it. Quantitative air content measurements requires: - a selective sensor principle - a stable sensor - calibration SnO2 sensors like MQ-6 can't provide selectivity or
To use as a mobile jammer, you want to create a circuit with a strong signal power and feed input data from long pseudo-random number generator. the random number creates the "noise" and the signal power and frequency the jamming.
See the following IP core from, LFSR-random number generator :: Overview :: OpenCores
366, If you rotate motor and higher speed the frequency won't be 50Hz. You can not run the generator at random to get 50Hz, as the shaft speed and number of pole are directly proportional to frequency. See here the example for more Motor Speed Controller Getting more voltage and
Help me please .............. I want to try the MT8888 as a tone generator, but I'm still confused registers control setting .... under the program is intended to issue a regular tone tone numbers 1,2,3 ... 0 but in fact the release is not the case, even a random number (9,1,3,5,7,9, etc.) .. every single issue rate tone (...)
Hi friends, I need to convert the following C++ code to c. The commented lines are C++ original and else is what I have done. /*#include */ /*#include */ /*using namespace std;*/ #include #include /*class BasicLCG {*/ /* */ /* private:*/ /* unsigned long iCurrent;*/ /* public:*/ /*
Hi zuzu, If you rand() generator gives random numbers in 16 bits, and you need numbers ranging from 0 to 2047 (i.e. 11 bits) you can call rand() function and take the 11 least significant bits of the value it returns. This does not give a cycle of 2048 values, but longer (with pseudo-random repetitions). (...)
1- First pocket LWT in fifth resolution level with Haar filter is performed on discrete samples and integer coefficients are resulted in this way. 2- Absolute threshold is calculated using these Temporal Signal coefficients. 3- The order of binary string is disordered by employing a random number generator and a secret key. 4- Considering (...)
Check out this project: LFSR-random number generator :: Overview :: OpenCores The possible inputs can be: 1)a generic parameter which decides the period of the sequence generated. 2)seed of the lfsr. 3)(may be, not always required) an output enable. 4)a clock. output of lfsr is the random sequence.
I have found the following in the Internet a long time ago, it is a random number generator function, I usually pass a value from a timer to it random number generator #define M 0x7FFFFFFF // 2^31-1, the modulus used by the psuedo-random long int
Hi, For pseudo-random code generation, check these links: PIC Microcontoller Math Methods - Quick little 8 bit random number generators PIC Microcontoller Math Method - random number generator for the 16F876 using timer 0
I have code for Linear feedback shift register. It is not a random number generator in the strict sense. But must be useful in some cases.Download it from opencore.org: LFSR-random number generator :: Overview :: OpenCores
I searched for some VHDL codes, there are not many on the web btw for PN sequence generation, check this: for Scrambling there was a relevant post on this forum: www.edaboar
Anyone has experience about trng in this photo. I think this design is relatively easy to implement, but i need more information and advice.
Using $random() you can do it. But you need to write a small code to it. In the below link Search for "generate random numbers without repetition"
Hi, Yes . Its a kind of random pattern generator function with seed . When you simulate , the address starts with some random number (32bits ) and runs till some point where the same address will be generated again. Try with a large seed value , you will get different pattern and of course run length. Javi
I'm curious if anyone has a fibonacci rnd number generator or even a linear congruential generator in verilog.
Hi, I'm a old Italian student. For my thesis I have to generate a random number generator....... I'm using cadence IC 5.1.41. The problem is that i have to create a PDF (probability density function) by the simulation result. My question is ..... How can I save a sampled value of simulation result (i.e. in waveform... ) in a txt file. (...)
Hi Its simple. Use the following blocks. 1) Insert Uniform random number and change the minimum and maximum to 25 and 30. 2) Connect the Rounding Function and change function to round. You are done!
Hi, I want to design 128 bit RAM based Pseudo random number generator in FPGA (as in XAPP052)? Can somebody help me with its implementation in VHDL? Thanks. Faraz
Check out verilog testbench tutorial section at There are lot of examples demonstrating the behaviour of $random().
Hi , I need to design a random number generator for my project. Please anybody share the any code regarding this 10bit LFSR. Thanks, PSS
Hello Fellow Members...... I am in need of some help/guidance. Could somebody help me out on how to go about designing a Reaction timer. As far as I know, I need a random number generator which I am able to design..... Thanks
Hi, try with "rand" function in C. Example: #include unsigned int result; ..... result = rand(0x1111); here it is from Keil help: The rand function returns a random number in the range 0 to +32767. The random number generator is reinitialized each time a non-zero value (...)
just design an LFSR, and use 2 bits of it. Of course it depends on that how random your result should be. If you need more unpredictable design, then you should find some better generator.
how we will interface random number generator using 8051 microcontroller with spartan 3E fpga???
do you want to simulate the thermal noise in transient simulation? this is a difficulty thing. in cadence you can use verilog-A model to model white noise in which it uses random number generator(RNG), so you can try to look for RNG in hspice for white noise model.
Hi, I want to design a truly random number generator, I want to simulate it in verilog-A. So I want to get a white-noise source as the random number input. But I write the verilog-A code as follow, but it can not work. module noise (out); output out; electrical out; parameter real r = 100K; (...)
Have you ever designed HDCP? Can you give me some advice on how to generate Pseudorandom value An. HDCP standard doesnt describe in detail. thank you