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 15:30
Which of the following examples has four beats in each measure?
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e.g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words.size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words.size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
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
Mathematics, 07.12.2020 23:50
question
Mathematics, 07.12.2020 23:50
question
English, 07.12.2020 23:50