Skip to content

Commit

Permalink
add block verilog_axi_cc
Browse files Browse the repository at this point in the history
  • Loading branch information
B0WEN-HU committed Aug 21, 2019
1 parent 763bce6 commit 4923d75
Show file tree
Hide file tree
Showing 12 changed files with 790 additions and 7 deletions.
10 changes: 10 additions & 0 deletions grc/verilog_verilog_axi_xx.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<key>type</key>
<value>Int</value>
<type>enum</type>
<option>
<name>Complex</name>
<key>complex</key>
<opt>fcn:cc</opt>
</option>
<option>
<name>Float</name>
<key>float</key>
Expand All @@ -25,6 +30,11 @@
<key>int</key>
<opt>fcn:ii</opt>
</option>
<option>
<name>Short</name>
<key>short</key>
<opt>fcn:ss</opt>
</option>
</param>
<param>
<name>Overwrite</name>
Expand Down
3 changes: 2 additions & 1 deletion include/verilog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ install(FILES
api.h
verilog_axi_ii.h
verilog_axi_ff.h
verilog_axi_ss.h DESTINATION include/verilog
verilog_axi_ss.h
verilog_axi_cc.h DESTINATION include/verilog
)
58 changes: 58 additions & 0 deletions include/verilog/verilog_axi_cc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/* -*- c++ -*- */
/*
* Copyright 2019 <+YOU OR YOUR COMPANY+>.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/


#ifndef INCLUDED_VERILOG_VERILOG_AXI_CC_H
#define INCLUDED_VERILOG_VERILOG_AXI_CC_H

#include <verilog/api.h>
#include <gnuradio/block.h>

namespace gr {
namespace verilog {

/*!
* \brief <+description of block+>
* \ingroup verilog
*
*/
class VERILOG_API verilog_axi_cc : virtual public gr::block
{
public:
typedef boost::shared_ptr<verilog_axi_cc> sptr;

/*!
* \brief Return a shared_ptr to a new instance of verilog::verilog_axi_cc.
*
* To avoid accidental use of raw pointers, verilog::verilog_axi_cc's
* constructor is in a private implementation
* class. verilog::verilog_axi_cc::make is the public interface for
* creating new instances.
*/
static sptr make(const char *filename, bool overwrite, float IO_ratio,
const char *verilator_options, unsigned int module_flag,
unsigned int skip_output_items);
};

} // namespace verilog
} // namespace gr

#endif /* INCLUDED_VERILOG_VERILOG_AXI_CC_H */

1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ list(APPEND verilog_sources
Shared_lib.cpp
verilog_axi_ff_impl.cc
verilog_axi_ss_impl.cc
verilog_axi_cc_impl.cc
)

set(verilog_sources "${verilog_sources}" PARENT_SCOPE)
Expand Down
Loading

0 comments on commit 4923d75

Please sign in to comment.