Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Device Manager 2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FPGA
FPGA Device Manager 2
Commits
6bc15051
Commit
6bc15051
authored
4 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Add smarthome.lpf template
parent
c4b1ab6d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fpga_device_manager/Config.py
+3
-0
3 additions, 0 deletions
fpga_device_manager/Config.py
fpga_device_manager/res/vtemplates/smarthome.lpf.tpl
+15
-0
15 additions, 0 deletions
fpga_device_manager/res/vtemplates/smarthome.lpf.tpl
with
18 additions
and
0 deletions
fpga_device_manager/Config.py
+
3
−
0
View file @
6bc15051
...
...
@@ -129,6 +129,7 @@ def export(out_path: str) -> None:
# Gather and enumerate used pins
output_pins
=
[
pin
for
pin
in
Pins
.
all
()
if
pin
.
is_output
()]
input_pins
=
[
pin
for
pin
in
Pins
.
all
()
if
pin
.
is_input
()]
pins
=
Pins
.
all
()
# Reverse lookup tables for pin indices
output_pin_indices
=
{
pin
.
name
:
index
for
index
,
pin
in
enumerate
(
output_pins
)}
...
...
@@ -172,6 +173,8 @@ def export(out_path: str) -> None:
timestamp
=
out_timestamp
,
device_count
=
len
(
input_devices
),
pins
=
input_pins
),
"
smarthome.lpf
"
:
tpl_loader
.
render
(
"
smarthome.lpf.tpl
"
,
pins
=
pins
),
"
smarthome.ldf
"
:
tpl_loader
.
render
(
"
smarthome.ldf.tpl
"
,
device_types
=
output_device_types
.
values
(),
input_types
=
input_device_types
.
values
())
...
...
This diff is collapsed.
Click to expand it.
fpga_device_manager/res/vtemplates/smarthome.lpf.tpl
0 → 100644
+
15
−
0
View file @
6bc15051
BLOCK RESETPATHS ;
BLOCK ASYNCPATHS ;
IOBUF PORT "SDA" OPENDRAIN=ON IO_TYPE=LVCMOS33 PULLMODE=NONE DRIVE=8 SLEWRATE=SLOW CLAMP=OFF DIFFRESISTOR=OFF HYSTERESIS=SMALL ;
LOCATE COMP "SCL" SITE "5" ;
IOBUF PORT "SCL" IO_TYPE=LVCMOS33 ;
LOCATE COMP "SDA" SITE "24" ;
{% for pin in pins %}
// pin {{ pin.display_name }} on physical pin {{ pin.name }}
LOCATE COMP "pin_{{ pin.name }}" SITE "{{ pin.name }}" ;
{% if pin.voltage %}IOBUF PORT "pin_{{ pin.name }}" IO_TYPE=LVCMOS33 ;{% endif %}
{% endfor %}
LOCATE COMP "btn_reset" SITE "28" ;
\ No newline at end of file
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