RAM 4.5 BUX II Series Bedienungsanleitung Seite 14

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 14
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 13
Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 14 of 14
5 Tutorial #4: Making a ROM device with a hex file
5.1 Objective: to create a ROM device that is initialized by reading a text file.
5.2 Create a plain text file
ROM content can be stored in a plain text file as hexadecimal numbers. One easy way to do it is
to have one line for each memory location. Here is an example of 4x92 ROM with two address
lines and 92 bits at each address. Every line in the text file must have exact the same number of hex
numbers as the bit length. LogicWorks reads each line with left alignment. If the number of bits is not 92
on a line, the highest bits will not be initialized.
436F6B65202020202020050
4469657420436F6B6520050
436865727279436F6B65350
4C6970746F6E20546561400
The first ten byes in each line are ASCII characters and the last three hex numbers are binary numbers.
They represent the following text.
Coke $0.50
Diet Code $0.50
CherryCoke $3.50
Lipton Tea $4.00
There may be spaces in between the characters and the three digit number if a name has less than ten
characters.
5.3 Create a Rom that is initialized from a file
Choose Simulation-PROM/RAM/PLA Wizard. Select PROM and click next. In the PROM Symthesizer window,
select Read data from a raw hex file and click next. Choose Select Raw Hex File and choose the file to be read from.
If there is no error opening the file, it will be read and the ROM will be initialized with content from the file. You
can now save the ROM as a component.
Seitenansicht 13
1 2 ... 9 10 11 12 13 14

Kommentare zu diesen Handbüchern

Keine Kommentare