Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
7d664534
Commit
7d664534
authored
Feb 19, 2019
by
Tiago Jorge
Browse files
Always generate 'bambu_' prefixed component (even if later overwritten by Bambu).
parent
3ad568f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/brave_B_mapper.py
View file @
7d664534
...
...
@@ -1058,9 +1058,8 @@ def OnFinal() -> None:
AddToStr
(
'circuits'
,
' );
\n
'
)
AddToStr
(
'circuits'
,
' end component;
\n\n
'
)
'''
skeleton
=
[]
skeleton.append(' entity %s is
\n
' % c._spCleanName)
skeleton
.
append
(
' entity
bambu_
%s is
\n
'
%
c
.
_spCleanName
)
skeleton
.
append
(
' port (
\n
'
)
skeleton
.
append
(
'
\n
'
.
join
([
' '
+
x
for
x
in
circuitLines
])
+
'
\n
'
)
skeleton
.
append
(
' start_%s : in std_logic;
\n
'
%
c
.
_spCleanName
)
...
...
@@ -1068,15 +1067,14 @@ def OnFinal() -> None:
skeleton
.
append
(
' clock_%s : in std_logic;
\n
'
%
c
.
_spCleanName
)
skeleton
.
append
(
' reset_%s : in std_logic
\n
'
%
c
.
_spCleanName
)
skeleton
.
append
(
' );
\n
'
)
skeleton.append(' end %s;
\n\n
' % c._spCleanName)
vhdlSkeleton = open(vhdlBackend.dir + "/TASTE-VHDL-DESIGN/design/" + c._spCleanName + '.vhd', 'w')
skeleton
.
append
(
' end
bambu_
%s;
\n\n
'
%
c
.
_spCleanName
)
vhdlSkeleton
=
open
(
vhdlBackend
.
dir
+
"/TASTE-VHDL-DESIGN/design/
bambu_
"
+
c
.
_spCleanName
+
'.vhd'
,
'w'
)
vhdlSkeleton
.
write
(
vhdlTemplateBrave
.
per_circuit_vhd
%
{
'pi'
:
c
.
_spCleanName
,
'declaration'
:
''
.
join
(
skeleton
)
})
vhdlSkeleton
.
close
()
'''
AddToStr
(
'ioregisters'
,
'
\n
'
.
join
([
' '
+
x
for
x
in
ioregisterLines
])
+
'
\n\n
'
)
...
...
dmt/B_mappers/vhdlTemplateBrave.py
View file @
7d664534
...
...
@@ -127,7 +127,7 @@ use IEEE.STD_LOGIC_UNSIGNED.ALL;
%(declaration)s
architecture arch of %(pi)s is
architecture arch of
bambu_
%(pi)s is
-- Declare signals
signal CLK : std_logic;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment