Fletchgen
The Fletcher Design Generator
axi.h
1 // Copyright 2018-2019 Delft University of Technology
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #include <string>
18 #include <vector>
19 #include <memory>
20 #include <optional>
21 
22 #include "fletchgen/mantle.h"
23 
24 namespace fletchgen::top {
25 
27 std::string GenerateAXITop(const Mantle &mantle,
28  const SchemaSet &schema_set,
29  Axi4LiteSpec axi_spec,
30  std::optional<std::shared_ptr<Type>> external,
31  const std::vector<std::ostream *> &outputs);
32 
33 } // namespace fletchgen::top
std::shared_ptr< Mantle > mantle(const std::string &name, const std::vector< std::shared_ptr< RecordBatch >> &recordbatches, const std::shared_ptr< Nucleus > &nucleus, BusDim bus_spec, Axi4LiteSpec axi_spec)
Construct a Mantle and return a shared pointer to it.
Definition: mantle.cc:189