| Original line number | Diff line number | Diff line |
|---|---|---|
import hk.quantr.verilogcompiler.VerilogHelper;
|
||
import hk.quantr.verilogcompiler.macro.ParseStructure;
|
||
import java.io.File;
|
||
import java.io.IOException;
|
||
import org.apache.commons.io.FileUtils;
|
||
import org.junit.Test;
|
||
/*
|
||
* Quantr Commercial License
|
||
*/
|
||
/**
|
||
*
|
||
* @author Peter <[email protected]>
|
||
*/
|
||
public class TestNetbeansVerilog {
|
||
@Test
|
||
public void test() throws IOException {
|
||
String content = FileUtils.readFileToString(new File("../quantr-i/src/ctrl.v"), "utf-8");
|
||
File folder = new File("../quantr-i/src");
|
||
ParseStructure ps = new ParseStructure();
|
||
String sourceContent = VerilogHelper.getContentReplacedWithMacro(0, content, VerilogHelper.scanMacroDefinitions(folder), ps);
|
||
System.out.println(sourceContent);
|
||
}
|
||
} |
Loading