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
19b3c9ad
Commit
19b3c9ad
authored
9 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
-Added feauture for inverted clock for qsys.
parent
d21ba7c3
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/base/mmm_gen.py
+9
-9
9 additions, 9 deletions
tools/oneclick/base/mmm_gen.py
with
9 additions
and
9 deletions
tools/oneclick/base/mmm_gen.py
+
9
−
9
View file @
19b3c9ad
...
@@ -80,8 +80,7 @@ USE tech_tse_lib.tb_tech_tse_pkg.ALL;\n\n"
...
@@ -80,8 +80,7 @@ USE tech_tse_lib.tb_tech_tse_pkg.ALL;\n\n"
s_signals_clk
=
"
SIGNAL i_mm_clk : STD_LOGIC :=
'
1
'
;
\n\
s_signals_clk
=
"
SIGNAL i_mm_clk : STD_LOGIC :=
'
1
'
;
\n\
SIGNAL i_dp_clk : STD_LOGIC :=
'
1
'
;
\n
"
SIGNAL i_dp_clk : STD_LOGIC :=
'
1
'
;
\n
"
s_connect_mm_clk
=
"
mm_clk <= i_mm_clk;
\n
"
s_inv_mm_rst
=
"
mm_rst_n <= NOT(mm_rst);
\n
"
s_connect_dp_clk
=
"
dp_clk <= i_dp_clk;
\n
"
s_fileio_start
=
"
----------------------------------------------------------------------------
\n\
s_fileio_start
=
"
----------------------------------------------------------------------------
\n\
-- MM <-> file I/O for simulation. The files are created in $UPE/sim.
\n\
-- MM <-> file I/O for simulation. The files are created in $UPE/sim.
\n\
...
@@ -205,10 +204,10 @@ class QsysEntity(vhdl.Entity):
...
@@ -205,10 +204,10 @@ class QsysEntity(vhdl.Entity):
if
"
_reset_export
"
in
s
:
if
"
_reset_export
"
in
s
:
s_connect
=
"
OPEN,
"
s_connect
=
"
OPEN,
"
# Exceptions for the ethernet
# Exceptions for the ethernet
if
"
tse_clk
"
in
s
:
if
"
eth1g_mm_clk_export
"
in
s
:
s_connect
=
"
eth1g_tse_clk,
"
s_connect
=
"
OPEN,
"
#
"eth1g_tse_clk,"
if
"
eth1g_mm_rst_export
"
in
s
:
if
"
eth1g_mm_rst_export
"
in
s
:
s_connect
=
"
eth1g_mm_rst,
"
s_connect
=
"
eth1g_mm_rst,
"
...
@@ -232,7 +231,7 @@ class QsysEntity(vhdl.Entity):
...
@@ -232,7 +231,7 @@ class QsysEntity(vhdl.Entity):
s_connect
=
"
mm_clk,
"
s_connect
=
"
mm_clk,
"
if
s
==
"
reset_in_reset_n
"
:
if
s
==
"
reset_in_reset_n
"
:
s_connect
=
"
mm_rst,
"
s_connect
=
"
mm_rst
_n
,
"
if
"
_phasedone_export
"
in
s
:
if
"
_phasedone_export
"
in
s
:
s_connect
=
"
OPEN,
"
s_connect
=
"
OPEN,
"
...
@@ -281,7 +280,7 @@ class MmmEntity(vhdl.Entity):
...
@@ -281,7 +280,7 @@ class MmmEntity(vhdl.Entity):
# Extra signals for ethernet peripheral
# Extra signals for ethernet peripheral
if
(
s
[
0
]
==
"
eth1g_ram
"
):
if
(
s
[
0
]
==
"
eth1g_ram
"
):
self
.
add_port
(
"
eth1g_tse_clk
"
,
"
OUT
"
,
"
STD_LOGIC
"
)
#
self.add_port("eth1g_tse_clk", "OUT", "STD_LOGIC")
self
.
add_port
(
"
eth1g_mm_rst
"
,
"
OUT
"
,
"
STD_LOGIC
"
)
self
.
add_port
(
"
eth1g_mm_rst
"
,
"
OUT
"
,
"
STD_LOGIC
"
)
self
.
add_port
(
"
eth1g_reg_interrupt
"
,
"
IN
"
,
"
STD_LOGIC
"
)
self
.
add_port
(
"
eth1g_reg_interrupt
"
,
"
IN
"
,
"
STD_LOGIC
"
)
...
@@ -412,6 +411,7 @@ if __name__ == '__main__':
...
@@ -412,6 +411,7 @@ if __name__ == '__main__':
[
'
sim_eth_psc_access
'
,
'
STD_LOGIC
'
,
''
],
[
'
sim_eth_psc_access
'
,
'
STD_LOGIC
'
,
''
],
[
'
i_eth1g_reg_mosi
'
,
'
t_mem_mosi
'
,
''
],
[
'
i_eth1g_reg_mosi
'
,
'
t_mem_mosi
'
,
''
],
[
'
i_eth1g_reg_miso
'
,
'
t_mem_miso
'
,
''
],
[
'
i_eth1g_reg_miso
'
,
'
t_mem_miso
'
,
''
],
[
'
mm_rst_n
'
,
'
STD_LOGIC
'
,
''
],
[
'
sim_eth1g_reg_mosi
'
,
'
t_mem_mosi
'
,
''
]]
[
'
sim_eth1g_reg_mosi
'
,
'
t_mem_mosi
'
,
''
]]
for
s
in
arch_constants
:
for
s
in
arch_constants
:
...
@@ -436,8 +436,8 @@ if __name__ == '__main__':
...
@@ -436,8 +436,8 @@ if __name__ == '__main__':
s_file
=
s_fileio_start
+
ent_qsys
.
apply_indend
(
s_arch_file
+
s_fileio_eth_init
+
s_fileio_poll
,
2
)
+
s_end_generate
+
"
\n
"
s_file
=
s_fileio_start
+
ent_qsys
.
apply_indend
(
s_arch_file
+
s_fileio_eth_init
+
s_fileio_poll
,
2
)
+
s_end_generate
+
"
\n
"
# Make QSYS master
# Make QSYS master
s_master_start
=
s_master_header
+
"
gen_
"
+
ent_qsys
.
name
+
"
: IF g_sim = FALSE GENERATE
\n
"
s_master_start
=
s_master_header
+
"
gen_
"
+
ent_qsys
.
name
+
"
: IF g_sim = FALSE GENERATE
\n
"
+
"
\n
"
s_master
=
s_master_start
+
ent_qsys
.
apply_indend
(
ent_qsys
.
make_qsys_instance_string
(
mmm_conf
),
2
)
+
s_end_generate
+
"
\n
"
s_master
=
s_master_start
+
ent_qsys
.
apply_indend
(
s_inv_mm_rst
+
"
\n
"
+
ent_qsys
.
make_qsys_instance_string
(
mmm_conf
),
2
)
+
s_end_generate
+
"
\n
"
s_arch_total
=
s_arch_begin
+
ent_qsys
.
apply_indend
(
s_file
+
s_master
,
2
)
+
s_arch_end
s_arch_total
=
s_arch_begin
+
ent_qsys
.
apply_indend
(
s_file
+
s_master
,
2
)
+
s_arch_end
string_elements
=
[
s_header
,
s_instantiation
,
s_libraries
,
s_entity
,
s_arch_header
,
s_arch_total
]
string_elements
=
[
s_header
,
s_instantiation
,
s_libraries
,
s_entity
,
s_arch_header
,
s_arch_total
]
...
...
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