diff --git a/compiler/src/fitter.rs b/compiler/src/fitter.rs index 8617346..466a723 100644 --- a/compiler/src/fitter.rs +++ b/compiler/src/fitter.rs @@ -46,17 +46,10 @@ fn get_sop_for_olmc(graph: &Graph, olmc_idx: &NodeIdx) -> Result Result Result<()> { let pcf_string = std::str::from_utf8(pcf_file)?; let pcf = parse_pcf(pcf_string); - let res = graph_convert(&g, pcf, Chip::GAL16V8); - + let res = graph_convert(&g, pcf, Chip::GAL16V8)?; Ok(()) } diff --git a/compiler/testcases/pcf/synth_test.pcf b/compiler/testcases/pcf/synth_test.pcf new file mode 100644 index 0000000..db28f8b --- /dev/null +++ b/compiler/testcases/pcf/synth_test.pcf @@ -0,0 +1,7 @@ +set_io clk 1 +set_io A 3 +set_io B 4 +set_io AND 13 +set_io NAND 14 +set_io REG_AND 15 +set_io REG_NAND 16