OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [bin/] [sc2v.bat] - Blame information for rev 39

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 vasiliev
@echo off
2
 
3
if "%1"=="" (
4
    echo SystemC 2 Verilog converter
5
    echo Usage: sc2v ^
6
) else (
7
    if exist "%1.cpp" (
8
        if exist "%1.h" (
9
            echo Processing %1
10
            %~dp0\sc2v_step1 < %1.cpp
11
            echo Processing %1.h
12
            %~dp0\sc2v_step2 < %1.h > %1.sc2v
13
            echo Generating verilog file
14
            %~dp0\sc2v_step3 < %1.sc2v > %1.v
15
            echo Done
16
            if exist "*.sc2v" del *.sc2v
17
            if exist "%~dp1\*.sc2v" del %~dp1\*.sc2v
18
        ) else (
19
            echo Can't find %1.h
20
        )
21
    ) else (
22
        echo Can't find %1.cpp
23
    )
24
)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.