subject

coe files are used by xilinx to initialize a bram. the syntax for a coe file is as shown -

; sample memory initialization file for dual port block memory, ; v3.0 or later. ; this .coe file specifies the contents for

consider a system in which 1024 random sample values need to be populated in coe file. the values must be in the radix 16 and range from to .

follow the following steps, in your program i. e use c functions in your program to do the following steps-

1. create and open a new file called "samples. coe".open it an appropriate mode so a new file is created for the first time and it is opened in write as well as read mode.

2. write two lines of comments at the top (through the program) - starting with semi-colons.

; these are 1024 sample values in range to ,

; random vector 0

3. write the next two statements to coe file (through the program) -

memory_initialization_radix = 16;

memory_initialization_vector =

4. generate 1024 random sample values and write them into the file, each line ending with a comma except the last one ending with a semi-colon

5. read all the sample values from the file one by one (you will either need to close the file and reopen it to start from beginning -or - rewind) and find and print the minimum and maximum values among all samples in hexadecimal format (on terminal). using the same loop, also calculate and print on terminal the mean/average value of all the samples.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 18:10
Most information security incidents will occur because of select one: a. users who do not follow secure computing practices and procedures b. increases in hacker skills and capabilities c. poorly designed network protection software d. increasing sophistication of computer viruses and worms
Answers: 1
question
Computers and Technology, 24.06.2019 22:10
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
The word window is an example of a /an
Answers: 1
You know the right answer?
coe files are used by xilinx to initialize a bram. the syntax for a coe file is as shown -
Questions
question
Social Studies, 02.11.2020 17:00
Questions on the website: 13722360