Presentation is loading. Please wait.

Presentation is loading. Please wait.

EE296 – Web-based Truth Table Program Jason Axelson Bryant Komo.

Similar presentations


Presentation on theme: "EE296 – Web-based Truth Table Program Jason Axelson Bryant Komo."— Presentation transcript:

1 EE296 – Web-based Truth Table Program Jason Axelson Bryant Komo

2 Brief Overview We are doing a web based version of truth_table which was used in EE260 to create truth tables and create hex files for the eprom. We are doing a web based version of truth_table which was used in EE260 to create truth tables and create hex files for the eprom. Our project will be written mostly in JavaScript, which is an interpreted scripting language for the web Our project will be written mostly in JavaScript, which is an interpreted scripting language for the web We will also use cgi which is a script (we're going to use C, but many other languages are possible) that runs on the server. We will also use cgi which is a script (we're going to use C, but many other languages are possible) that runs on the server. Our program will be better than truth_table. Our program will be better than truth_table.

3 Goals(at least partially completed) Table expands automatically when you get to the bottom Fill the table with canonical order Ability to enter commands with only keyboard Get a working interface Manipulate the table (e.g. Add rows, insert rows, add inputs) Save the file in a.HEX format as well as our own format Ability to copy and paste from excel

4 Initial Goals (uncompleted) Use Bool to simplify data in table Ability to load and save data to/from the truth_table format Ability to check if the table has repeated data Load files directly from the.HEX file Resort table into canonical order Expand all X values in table Undo button!

5 Final Status Interesting Design Features The interface Ability to fill in the table with canonical order Ability to paste in data from excel Save_hex function

6 The Interface It will be possible to enter data with both keyboard and mouse. It will be possible to enter data with both keyboard and mouse. There is a table with all the information in the middle, with buttons to manipulate the data on the side. There is a table with all the information in the middle, with buttons to manipulate the data on the side.

7 Problems with Interface Difficultly scripting across browsers Difficultly scripting across browsers Partially solved by checking browser and using specific code depending on which browser is used Partially solved by checking browser and using specific code depending on which browser is used Changed the main data representation in the middle of the project Changed the main data representation in the middle of the project Just had to slog through change most of the functions Just had to slog through change most of the functions Had to learn JavaScript on the fly, made mistakes that we wouldn’t make now Had to learn JavaScript on the fly, made mistakes that we wouldn’t make now Learned more, changed some things after the fact Learned more, changed some things after the fact

8 Current Problems with Interface Need to change to a new--and better--data representation (again). Need to change to a new--and better--data representation (again). Will rewrite almost all of the code Will rewrite almost all of the code Need to figure out way to pass entire table to a cgi script. Need to figure out way to pass entire table to a cgi script. Need to add ability to change variable names on the fly Need to add ability to change variable names on the fly Need to add variables a sub array of the main data representation Need to add variables a sub array of the main data representation

9 save_hex function Converting the data representation from truth_table. Converting the data representation from truth_table. Extracting only valuable functions from the truth_table program Extracting only valuable functions from the truth_table program Using global variables Using global variables

10 Problems Translating truth_table’s curses to normal programming Translating truth_table’s curses to normal programming Pointers Pointers Function produced a rubbish.HEX file Function produced a rubbish.HEX file Time Time

11 Current Problems The rubbish.HEX file The rubbish.HEX file

12 Future Improvements Time – this project takes quite a deal of time since we have to learn as we go along. Time – this project takes quite a deal of time since we have to learn as we go along. It may have also worked better if we designed our own.HEX conversion functions or just passed the table info directly to the truth_table program It may have also worked better if we designed our own.HEX conversion functions or just passed the table info directly to the truth_table program


Download ppt "EE296 – Web-based Truth Table Program Jason Axelson Bryant Komo."

Similar presentations


Ads by Google