Search Engine www.edaboard.com

41 Threads found on edaboard.com: Generate Random Numbers
Hi, I would like to generate random numbers between two decimal numbers in Ocean Script eg: 2.5 to 3.5 i need to use this to vary lengths and widths of transistors from ocean script.(RAND_MAX is not known like in C) Please help me doing this Thanks, Sita
AWGN - Add White Gausian Noise. to generate white gaussian noise u need function that generates random numbers with gaussian distribution (example randn in matlab) If your enviroment doesnt have gaussian distributed random generator you have to make one using standard random generator ( (...)
random number system function has a argument called seed. The seed parameter controls the numbers that $random returns such that different seeds generate different random streams. The seed parameter shall be either a reg, an integer, or a time variable. The seed value should be assigned to this variable (...)
Take a look at you are using systemverilog you should download the free LRM while it's still free. ht
it's true. from keil documentation The rand function generates a pseudo-random number between 0 and 32767 it's mean every time you restart your program it's generate the same sequence of numbers. You can use srand() function for each value it generate different sequence. Show this link
Do a for loop to generate N times 32-bit random numbers, and concatenate it to get your 10000 random bits. And obviously $random only works in simulation, not in real hardware.
You could use an LFSR to generate your random numbers. Keep in mind that as usual this is pseudo random, but for an application like this that should be sufficient. All you need t
Use Rand() function to generate random numbers convert the value to string and send the string to USART.
simulate a uniform quantizer that takes as an input a vector of numbers and returns as an output the quantized vector. 1-generate a random input vector of 10000 samples randomly in the range from . 2-Simulate your quantizer three times with number of levels that are equal to 2 , 4 and 8. 3-The m-file output should (...)
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 number is from 0-7. This is (...)
hi i am working on a vhdl project where i need to initialise 2d array which is 10*10 matrix actually of real values can ypu plz tell me how to do it? also i need to generate a 10*10 array of random numbers which are 100 in number.... i thought of 3D arrays but output of lfsr is not being taken due to size mismatch plz respond asap since i (...)
i wanted to use normrnd(mu,sigma,m,n) in order to generate random numbers from normal distribution with mean mu =0 and some standard deviation say sigma. this sigma will be used to study the effect of Kt/C noise but my matlab doesnt support statistical toolbox. Another possibilty i look is to use randn(m,n) which has mean =0 and standard (...)
A counter justs counts, for it to stop at a random number, you have to stop the counter, but randomly. Can you do this without setting or clearing its count?. What you have to do is to generate a random number of pulses in a block that the counter counts. So a revesed biassed diode feeding an opamp (or two) with open loop (...)
Hi, thanks for the reply I am using the (rand(1,noNodes)>=0.8) formula that generates 0 and 1 with the prob I have chosen. I want if zero to generate randomly specific abnormal values if 1 random normal values then another case if fire detection happens generate other set of data my prob how to (...)
uxmanz, If I understood correctly, what you posted don´t work. Note that the built-in uC timer is colcked by same source than core. It is necessary an external assincronous event to feed input of random funcion. I performed something like what you said and generated everytime the same value. +++
I am generating normally distributed random numbers using Box-Muller Algorithm.Now I want to generate noise using the random numbers obtained from this worry is how do you map noise( something that is measurable in say volts) from the random number generated.
u can generate Captbl from encounter by using generateCapTbl command in Encounter..
any help so far?:D it is very simple: just *generate random numbers *use one of the digital modulation types (QAM , PSK, .....) *IFFT *parallel to serial *and channel (now do the reverse as a receiver) this is a very basic type :) regards
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 yurchec, I understand that you want to flash the leds in random manner... However, in vhdl there is no ready-to-use random function that generate random numbers.. You may write a function that functions random alike. Or you can find a library that has random (...)
I'm interesting in generating some random numbers for one of my projects. I have stumbled across the following code snippet: It appears to use feedback shift registers to generate a pseudo random sequence. Does anyone have any thoughts / comments / better examples? Many thanks in adva
Hi, How do i generate random numbers between given limits in simulink. For ex: between 25 - 30. At every sample time one of the value between 25 to 30 should be given out. (could be25, 26 , 30, 28, 25, 29, etc.,) Thanks, Ashwini
OK. Take into account that the above code generates uniformly distributed numbers in the range (14 bits). Regards Z
function int unsigned $random ; function int unsigned $urandom ; The seed is an optional argument. Use the same seed to generate the same sequence of random numbers every time. A common practice is to use a plusarg at the command line and read it in the testbench ($value$plusargs) and use it as a (...)
I am currently modeling jitter in verilogA. For this i need to generate random numbers. This model is to be run with finesim as the simulator. Can anyone suggest any way to do this as finesim does not support $random function unlike spectre?
Any one help me how to generate a random Process, with using any MATLAB functions. I want to know that what logic behind it if I want to generate 1000 points random numbers, Pdf is also given with mean and Variance. But question is same How to generate the random (...)
Hello! I`m need to create clock stimulus with jitter. I think that need to generate random numbers in desired range and add/substract from constant for period. What you think about this? Can anyone share examples of VHDL code? -- Regards, Jack
I need some help on a little project, and the objective is to design a sequencial machine simulating a lottery machine or lotto (I don't really know the exact word in english). the point is that I need to generate 4 numbers (4-bits each(hex)) and register them on four 8_digit_segments. I don't really know how can I generate (...)
i want to generate random number from 0,1,2,3.but all this numbers are in binary.that is ,00,01,10,11.i want the vhdl code for this task.pleae help on this.
Hi guys, Can anybody tell me about PRF64 function. I know that we are using this to generate psuedo random numbers. Please put more information regrding this....... Regards, PPPPPP
I WANT TO generate randomLY OCCURRING PRIME numbers FOR MY PROJECT WHICH IS BASED ON RSA ALGORITHM. PLZ GIVE ME HINTS OR SOME LINKS ABOUT THE SAME. THANX IN ADVANCE !!!!!!
can anybody plz tell me how to generate pesudo random sequence others then LFSR:?:
hi guys i am trying to implement RSA encryption algo on FPGA. my idea is to first generate random numbers and then check them for being prime numbers or not... i am using linear feedback shift registers for random number generation. but now i am stuck in primality testing.....can anyone help me on this!!!please
I have generated Pseudo Noise using a PIC 12c672 .Basically is having arrays . You can tap the array and exor it with a value. The sequence will repeat atfer some time, but looking it into an spectrum analizer it was enough for my purposes (apply this noise to a laser) .
Some random number generates are sensitive to seed value, but an LFSR repeats the exact same sequence no matter what seed value you use (excluding that one lock-up value). The seed simply changes the sequence starting point. However, an LFSR is still very useful because it is easy to build one with an extremely long sequence. It's true that you
Here is what i use to generate a random numder within a given range #include #include using namespace std; int main(){ int rannum; // define variables bool found = 1; long sec; time( &sec); // use time function to get number of seconds from 1/1/1970 srand((unsigned)s
1. sin((1:1000)/10) is axample code to generate a fixed frequency wave. 2. First generate random serial numbers, then filter it using the filter desiganted by yoursefl.
typically, the scrambler is a LFSR, just as what people use to generate pseudo-random numbers. for a specific startand, like 802.11g, you should read the spec.
Does anybody know where to get a Matlab file that generates very close to independent random samples? If you look at the higher order statistics of rand or randn, they are not as independent as I would like them to be. Any suggestions? hi, inorder for u to generate random numbers, u could use the PN (...)
Hi. Anyone knows how to generate random number in PIC? I am thinking of using timer to increase a counter and from the counter value, I do few operations to scramble up the value in counter. Does it cause the number to be random? Or someone got better ways or ideas to do it? Thanks.
Could anybody send me any idea to have a sequence of 8bit random numbers? My idea was to start from a SEED and every fix period (timer interrupt routine) update this number obtaing a pseudo random sequence. I found some example about "how to generate a stream of bits" or "how to generate a single number", (...)