Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
9442abbb
Commit
9442abbb
authored
9 years ago
by
Daniel van der Schuur
Browse files
Options
Downloads
Patches
Plain Diff
-Added ASTRON header.
parent
c8920ff0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/oneclick/components/component.py
+31
-1
31 additions, 1 deletion
tools/oneclick/components/component.py
with
31 additions
and
1 deletion
tools/oneclick/components/component.py
+
31
−
1
View file @
9442abbb
...
@@ -2,6 +2,36 @@ import multiprocessing as mp
...
@@ -2,6 +2,36 @@ import multiprocessing as mp
import
time
import
time
import
common
as
cm
import
common
as
cm
###############################################################################
# Constants
###############################################################################
ASTRON_HEADER
=
"""
-------------------------------------------------------------------------------
--
-- Copyright (C) 2015
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- This program 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 of the License, or
-- (at your option) any later version.
--
-- This program 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 program. If not, see <http://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------
-- This file is generated by component.py (RadioHDL/OneClick)
"""
###############################################################################
###############################################################################
# Base classes
# Base classes
###############################################################################
###############################################################################
...
@@ -153,7 +183,7 @@ class Component(mp.Process):
...
@@ -153,7 +183,7 @@ class Component(mp.Process):
def
generate
(
self
,
target_file
=
None
):
def
generate
(
self
,
target_file
=
None
):
if
self
.
components
!=
[]:
if
self
.
components
!=
[]:
target_file
=
open
(
self
.
file_name
,
"
w
"
)
target_file
=
open
(
self
.
file_name
,
"
w
"
)
target_file
.
write
(
'
ASTRON
HEADER
\n
'
)
target_file
.
write
(
ASTRON
_
HEADER
)
target_file
.
write
(
'
INCLUDED LIBRARIES
\n
'
)
target_file
.
write
(
'
INCLUDED LIBRARIES
\n
'
)
target_file
.
write
(
'
ENTITY DECLARATION
\n
'
)
target_file
.
write
(
'
ENTITY DECLARATION
\n
'
)
target_file
.
write
(
'
ARCHITECTURE str OF %s IS
\n
'
%
self
.
name
)
target_file
.
write
(
'
ARCHITECTURE str OF %s IS
\n
'
%
self
.
name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment