#include <stdio.h>
#include <stdlib.h>
#include "read_xml_arch_file.h"
Go to the source code of this file.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 15 of file libarchfpga/main.c.
23 "Error: Unexpected # of arguments. Expected 3 found %d arguments\n",
29 "------------------------------------------------------------------------------\n");
31 "- Read architecture file and print library data structures into an output file\n");
33 "------------------------------------------------------------------------------\n\n");
38 "output file %s\n", argv[1], atoi(argv[2]), argv[3]);
39 printf(
"Reading in architecture\n");
42 XmlReadArch(argv[1], (
boolean) atoi(argv[2]), &arch, &types, &numTypes);
44 printf(
"Printing Results\n");
46 EchoArch(argv[3], types, numTypes, &arch);
void EchoArch(INP const char *EchoFile, INP const t_type_descriptor *Types, INP int NumTypes, struct s_arch *arch)
void XmlReadArch(INP const char *ArchFile, INP boolean timing_enabled, OUTP struct s_arch *arch, OUTP t_type_descriptor **Types, OUTP int *NumTypes)
Definition at line 53 of file libarchfpga/main.c.
55 "\n---------------------------------------------------------------------------------------\n");
57 "read_arch: Read a VPR architecture file and output internal data structures");
59 "Usage: read_arch <arch_file.xml> <timing_driven (0|1)> <output_file>\n");
60 printf(
" ex: read_arch k4_n10.xml 1 arch_data.out\n");
62 " Read timing-driven architecture k4_n10.xml and output the results to arch_data.out\n");
64 "\n---------------------------------------------------------------------------------------\n");