2020-02-15 16:03:00 -06:00
|
|
|
#ifndef VERILOG_API_H
|
|
|
|
#define VERILOG_API_H
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Include header files that are required by function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "mux_library.h"
|
2020-05-27 15:25:06 -05:00
|
|
|
#include "decoder_library.h"
|
2020-02-15 16:03:00 -06:00
|
|
|
#include "circuit_library.h"
|
2020-09-23 21:27:52 -05:00
|
|
|
#include "config_protocol.h"
|
2020-02-16 17:04:41 -06:00
|
|
|
#include "vpr_context.h"
|
|
|
|
#include "vpr_device_annotation.h"
|
2020-02-15 16:03:00 -06:00
|
|
|
#include "device_rr_gsb.h"
|
2020-04-23 21:42:11 -05:00
|
|
|
#include "netlist_manager.h"
|
2020-02-15 16:03:00 -06:00
|
|
|
#include "module_manager.h"
|
2020-02-27 13:33:09 -06:00
|
|
|
#include "bitstream_manager.h"
|
2020-05-27 16:53:40 -05:00
|
|
|
#include "fabric_bitstream.h"
|
2020-02-27 13:33:09 -06:00
|
|
|
#include "simulation_setting.h"
|
|
|
|
#include "io_location_map.h"
|
2020-02-27 17:37:20 -06:00
|
|
|
#include "vpr_netlist_annotation.h"
|
2020-02-27 13:33:09 -06:00
|
|
|
#include "fabric_verilog_options.h"
|
|
|
|
#include "verilog_testbench_options.h"
|
2020-02-15 16:03:00 -06:00
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
2020-02-16 14:35:18 -06:00
|
|
|
void fpga_fabric_verilog(ModuleManager& module_manager,
|
2020-04-23 21:42:11 -05:00
|
|
|
NetlistManager& netlist_manager,
|
2020-02-15 21:38:45 -06:00
|
|
|
const CircuitLibrary& circuit_lib,
|
|
|
|
const MuxLibrary& mux_lib,
|
2020-05-27 15:25:06 -05:00
|
|
|
const DecoderLibrary& decoder_lib,
|
2020-02-16 17:04:41 -06:00
|
|
|
const DeviceContext& device_ctx,
|
|
|
|
const VprDeviceAnnotation& device_annotation,
|
2020-02-15 21:38:45 -06:00
|
|
|
const DeviceRRGSB& device_rr_gsb,
|
2020-02-15 22:39:47 -06:00
|
|
|
const FabricVerilogOption& options);
|
2020-02-15 16:03:00 -06:00
|
|
|
|
2020-05-09 20:01:41 -05:00
|
|
|
void fpga_verilog_testbench(const ModuleManager& module_manager,
|
2020-02-27 13:33:09 -06:00
|
|
|
const BitstreamManager& bitstream_manager,
|
2020-05-27 16:53:40 -05:00
|
|
|
const FabricBitstream& fabric_bitstream,
|
2020-02-27 13:33:09 -06:00
|
|
|
const AtomContext& atom_ctx,
|
|
|
|
const PlacementContext& place_ctx,
|
|
|
|
const IoLocationMap& io_location_map,
|
2020-02-27 17:37:20 -06:00
|
|
|
const VprNetlistAnnotation& netlist_annotation,
|
2020-02-27 13:33:09 -06:00
|
|
|
const CircuitLibrary& circuit_lib,
|
|
|
|
const SimulationSetting& simulation_parameters,
|
2020-09-23 21:27:52 -05:00
|
|
|
const ConfigProtocol& config_protocol,
|
2020-02-27 13:33:09 -06:00
|
|
|
const VerilogTestbenchOption& options);
|
|
|
|
|
|
|
|
|
2020-02-15 16:03:00 -06:00
|
|
|
} /* end namespace openfpga */
|
|
|
|
|
|
|
|
#endif
|