Skip to content

Commit

Permalink
Ghdl synth support (#497)
Browse files Browse the repository at this point in the history
* GHDL plugin support

* default yosys parser

---------

Co-authored-by: Alain Dargelas <[email protected]>
  • Loading branch information
alain-rs and alaindargelas authored Sep 1, 2023
1 parent 26f3623 commit 211f69a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/Compiler/CompilerRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,25 @@ plugin -i ${PLUGIN_LIB}
${PLUGIN_NAME} -tech ${MAP_TO_TECHNOLOGY} ${OPTIMIZATION} ${EFFORT} ${CARRY} ${IO} ${LIMITS} ${FSM_ENCODING} ${FAST} ${NO_FLATTEN} ${MAX_THREADS} ${NO_SIMPLIFY} ${CLKE_STRATEGY} ${CEC}
${OUTPUT_NETLIST}
)";

const std::string RapidSiliconYosysDefaultScript = R"(
# Yosys/Verific synthesis script for ${TOP_MODULE}
# Read source files
read_verilog -sv ${PRIMITIVES_BLACKBOX}
${READ_DESIGN_FILES}
# Technology mapping
hierarchy ${TOP_MODULE_DIRECTIVE}
${KEEP_NAMES}
plugin -i ${PLUGIN_LIB}
${PLUGIN_NAME} -tech ${MAP_TO_TECHNOLOGY} ${OPTIMIZATION} ${EFFORT} ${CARRY} ${IO} ${LIMITS} ${FSM_ENCODING} ${FAST} ${NO_FLATTEN} ${MAX_THREADS} ${NO_SIMPLIFY} ${CLKE_STRATEGY} ${CEC}
${OUTPUT_NETLIST}
)";
Expand Down Expand Up @@ -185,7 +204,7 @@ std::string CompilerRS::InitSynthesisScript() {
break;
}
case ParserType::Default: {
YosysScript(QLYosysScript);
YosysScript(RapidSiliconYosysDefaultScript);
break;
}
}
Expand Down

0 comments on commit 211f69a

Please sign in to comment.