#!/bin/bash
# $Id: xviv_sim_vhdl_cleanup 1172 2019-06-29 07:27:24Z mueller $
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2014-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
#
#  Revision History:
# Date         Rev Version  Comment
# 2016-06-12   774   1.0    Initial version
#

# cleanup vivado generated vhdl models for ghdl
# 1. remove 'attribute RTL_KEEP' decorations
#    ghdl 0.33 does not accept decorations of port signals !

sed -i.bak -e '/^ *attribute *RTL_KEEP/ d' $1
