Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dgsmith/Verilog-Simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsmith committed Apr 19, 2012
2 parents d375aac + 0b58481 commit 002de4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gatesim.cpp
@@ -1,12 +1,18 @@
/**
* PA5 Part 1
* Chris Li, Grayson Smith
*/
#include "global.h"
#include <iostream>
#include "parser.h"

int main (int argc, char const *argv[])
{
LOG("Hi");
LOG("Parsing and dumping test.v");
Design *aDesign;
aDesign = parseThatShit("test2.v");
LOG("BYE");
aDesign = parseThatShit("test.v");

LOG("Parsing and dumping test2.v");
aDesign = parseThatShit("test2.v");
return 0;
}
3 changes: 3 additions & 0 deletions parser.cpp
Expand Up @@ -10,9 +10,12 @@ Design *parseThatShit(string ifilename)
//vector<string> wires;
vector<string> gate;

unsigned int lineNum = 0;
ifstream ifile(ifilename.c_str(), ifstream::in);
while(ifile.good())
{
lineNum++;

string currentline;
getline(ifile, currentline);
stringstream ss(currentline);
Expand Down

0 comments on commit 002de4a

Please sign in to comment.