3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Added support for $readmemh/$readmemb

This commit is contained in:
Clifford Wolf 2014-10-26 20:33:10 +01:00
parent 26cbe4a4e5
commit 70b2efdb05
4 changed files with 114 additions and 2 deletions

View file

@ -2935,7 +2935,7 @@ bool RTLIL::SigSpec::parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::stri
if (netname.size() == 0)
continue;
if ('0' <= netname[0] && netname[0] <= '9') {
if (('0' <= netname[0] && netname[0] <= '9') || netname[0] == '\'') {
cover("kernel.rtlil.sigspec.parse.const");
AST::get_line_num = sigspec_parse_get_dummy_line_num;
AST::AstNode *ast = VERILOG_FRONTEND::const2ast(netname);