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, 22.06.2019 22:30
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 24.06.2019 08:00
How can smart devices benefit businesses, organizations, and social communities in the global marketplace?
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
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
English, 19.08.2019 21:10
question
Mathematics, 19.08.2019 21:10
Questions on the website: 13722359