This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This file is generated by uxsdcxx 0.1.0. | |
* https://github.com/duck2/uxsdcxx | |
* Modify only if your build process doesn't involve regenerating this file. | |
* | |
* Cmdline: uxsdcxx.py rr_graph.xsd | |
* Input file: /home/duck2/uxsdcxx/rr_graph.xsd | |
* md5sum of input file: 86ad1829ffcbd56309275e329a54a96f | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...] | |
/* Internal loading functions, which validate and load a PugiXML DOM tree into memory. */ | |
inline int load_int(const char *in){ | |
int out; | |
out = std::strtol(in, NULL, 10); | |
if(errno != 0) | |
throw std::runtime_error("Invalid value `" + std::string(in) + "` when loading into a int."); return out; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is generated by uxsdcap 0.0.3. | |
# https://github.com/duck2/uxsdcxx | |
# Modify only if your build process doesn't involve regenerating this file. | |
# | |
# Cmdline: ./uxsdcap.py rr_graph.xsd | |
# Input file: /home/duck2/uxsdcxx/rr_graph.xsd | |
# md5sum of input file: 5d63f2f2f736d8615ce857e15484ba76 | |
@0xd7fc24a4b3dfe728; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
from typing import List, Tuple, Dict, Set, Union, Optional | |
import xmlschema # type: ignore | |
from xmlschema.validators import ( # type: ignore | |
XsdAttribute, | |
XsdAtomicBuiltin, | |
XsdAtomicRestriction, | |
XsdComplexType, | |
XsdElement, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Copyright 2018 Jeppe Johansen | |
XML 1.0 Schema for rr_graph structure developed based on documentation here: | |
http://vtr-verilog-to-routing.readthedocs.io/en/latest/vpr/file_formats.html#routing-resource-graph-file-format-xml | |
--> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:complexType name="channel"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bitset> | |
#include <cstring> | |
#include <iostream> | |
#include <limits> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <error.h> | |
#include <stddef.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bitset> | |
#include <cstring> | |
#include <iostream> | |
#include <limits> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <error.h> | |
#include <stddef.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bitset> | |
#include <cstring> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <error.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include "pugixml.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bitset> | |
#include <cstring> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include "pugixml.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bitset> | |
#include <cstring> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include "pugixml.hpp" | |
struct t_channel; | |
struct t_x_list; |
NewerOlder