DOC PREVIEW
MIT 6 111 - EXPRESS

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

EXPRESS(1) EXPRESS(1) NAME express, exprin, exprout, expression, expressdat - create and convert data for use in PROM lookup tables SYNOPSIS exprin > xxx.exp exprout < xxx.exp > xxx.dat expression xxx expressdat xxx DESCRIPTION The two programs exprin and exprout together form a "friendly" system for generating PROM data for an expression of a single input variable. Applications might include: 1) A table lookup for trigonometric values. This would be useful in games which need to transfer from polar to Cartesian coordinates. 2) A table lookup for logarithmic values. This would be useful for logarithmic multiplication. To create xxx.ntl which is ready to be sent to the PROM programmer use the shell script expression: expression xxx To create xxx.dat use the shell script expressdat: expressdat xxx This is helpful when you want to concatenate several expressions into a single PROM. Use cat a.dat b.dat > final.dat and then edit final.dat to insert the appropriate # SET_ADDRESS command. On line help is available for expression and expressdat. The shell script expression consists of the three programs exprin, exprout, and dat2ntl piped together. The script expressdat omits the dat2ntl program. Exprin and exprout are described below; dat2ntl is described in another document. The first program, exprin, is simply an interactive guide for creating a file to be used by exprout. The file which is created has the form shown below. It may be created and edited using an editor instead of using exprin. NUMBER_OF_STEPS = 314; START_ADDRESS = 0; INPUT_INITIAL_VALUE = 0; STEP_SIZE = .01; 128 + 127 * SIN(INPUT); Example file created by exprin and used by exprout. MIT EECS Dept. 1EXPRESS(1) EXPRESS(1) The expression must obey the following rules. An expression can be of arbitrary size. It must be in infix form. It may contain the following binary operators: +-*/ and the following unitary functions: sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, log, exp, abs, and sqrt. Parentheses can be used in the usual manner. It may contain any real number and the single variable: INPUT. The variable INPUT takes NUMBER_OF_STEPS steps starting at the initial value INPUT_INI-TIAL_VALUE. Each step increments INPUT by the value of STEP_SIZE. NUMBER_OF_STEPS out-puts will be created to be sent to the PROM programmer starting at the address START_ADDRESS. The output will be rounded to the nearest integer. The parser is not case sensitive. All numbers are interpreted as decimal. Spaces are ignored. The output of exprout is in the standard form used by the program dat2ntl. FILES SEE ALSO BUGS MIT EECS Dept.


View Full Document

MIT 6 111 - EXPRESS

Documents in this Course
Verilog

Verilog

21 pages

Video

Video

28 pages

Bass Hero

Bass Hero

17 pages

Deep 3D

Deep 3D

12 pages

SERPENT

SERPENT

8 pages

Vertex

Vertex

92 pages

Vertex

Vertex

4 pages

Snapshot

Snapshot

15 pages

Memories

Memories

42 pages

Deep3D

Deep3D

60 pages

Design

Design

2 pages

Frogger

Frogger

11 pages

SkiFree

SkiFree

81 pages

Vertex

Vertex

10 pages

Labyrinth

Labyrinth

81 pages

Load more
Download EXPRESS
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view EXPRESS and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view EXPRESS 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?