Write a program to generate 100,000 random values and compute the squares of these values. Do the

Question:

Write a program to generate 100,000 random values and compute the squares of these values. Do the math using each of the following data types: short, int, unsigned, long, sc_int<8>, sc_uint<19>, sc_bigint<8>, sc_bigint<100>, sc_fixed<12,12>. Be certain to generate numbers distributed over the entire range of possibilities. Compare the run times of each data type.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Systemc From The Ground Up

ISBN: 978-0387292403

1st Edition

Authors: David C Black ,Jack Donovan

Question Posted: