-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added code related to processing verilog files
- Loading branch information
Showing
8 changed files
with
100 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,41 @@ Author: Eugene Goldberg, [email protected] | |
#include <ebmc/ebmc_base.h> | ||
#include "ebmc_ic3_interface.hh" | ||
|
||
/*========================================= | ||
A D D _ P S E U D O _ I N P S | ||
==========================================*/ | ||
void ic3_enginet::add_pseudo_inps(Circuit *N) | ||
{ | ||
|
||
|
||
GCUBE &Gate_list = N->Gate_list; | ||
for (size_t i=0; i < Gate_list.size();i++) { | ||
Gate &G=Gate_list[i]; | ||
if (G.flags.active) continue; | ||
// printf("inactive gate: "); | ||
// print_name1(G.Gate_name,true); | ||
|
||
G.func_type = BUFFER; | ||
G.gate_type = INPUT; | ||
G.flags.active = 1; // mark this input as active | ||
G.flags.output = 0; | ||
G.flags.transition = 0; | ||
G.flags.output_function = 0; | ||
G.flags.feeds_latch = 0; | ||
G.level_from_inputs = 0; // set the topological level to 0 | ||
G.inp_feeds_latch = false; | ||
|
||
// Add it to the circuit | ||
|
||
N->Inputs.push_back(i); | ||
N->ninputs++; // increment the number of inputs | ||
|
||
} | ||
|
||
} /*end of function add_pseudo_inps */ | ||
|
||
/*========================================= | ||
F O R M _ I N I T _ C O N S T R _ L I T S | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters