aboutsummaryrefslogtreecommitdiffstats
path: root/tests/asicworld/code_verilog_tutorial_comment.v
blob: 1cc0eb424d0cf99fcd81eef19ef1f2a3a9dd7f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* This is a
  Multi line comment
  example */
module addbit (
a,
b,
ci,
sum,
co);

// Input Ports  Single line comment
input           a;
input           b;
input           ci;
// Output ports
output         sum;
output         co;
// Data Types      
wire            a;
wire            b;
wire            ci;
wire            sum;
wire            co; 

endmodule
t;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <iostream> #include <fstream> #include "ParseHelper.h" #include "ParseListener.h" /** Demonstrates the ParseHelper. Call it with some of the python files in data/. */ int main( int argc, char *argv[] ) { if ( argc < 2 ) { std::cout << "Usage: " << argv[0] << " file\n"; return 1; } ParseHelper helper; helper.subscribe( new EchoListener ); std::ifstream ifs( argv[1] ); while ( ! ifs.eof( ) ) { std::string str; std::getline( ifs, str ); helper.process( str ); } return 0; }