File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ def _configure(self):
21
21
self .conf ['tool' ] = tool
22
22
self .conf ['make_cmd' ] = f'{ tool } SCRIPT:{ tool } .tcl'
23
23
self .conf ['make_ext' ] = 'tcl'
24
- self .conf ['prog_bit' ] = None
25
- self .conf ['prog_cmd' ] = None
26
- self .conf ['prog_ext' ] = None
24
+ self .conf ['prog_bit' ] = 'pdd'
25
+ self .conf ['prog_cmd' ] = f' { tool } SCRIPT: { tool } -prog.tcl'
26
+ self .conf ['prog_ext' ] = 'tcl'
27
27
28
28
def _make_custom (self ):
29
29
info = get_info (self .data .get ('part' , 'mpf100t-1-fcg484' ))
@@ -33,9 +33,6 @@ def _make_custom(self):
33
33
self .data ['package' ] = info ['package' ]
34
34
self .data ['prange' ] = info ['prange' ]
35
35
36
- def _prog_custom (self ):
37
- raise NotImplementedError ('Libero programming not supported yet' )
38
-
39
36
40
37
# pylint: disable=duplicate-code
41
38
@@ -97,7 +94,8 @@ def get_info(part):
97
94
'e' : 'EXT' ,
98
95
'i' : 'IND' ,
99
96
'm' : 'MIL' ,
100
- 't1' : 'TGrade1'
97
+ 't1' : 'TGrade1' ,
98
+ 't2' : 'TGrade2'
101
99
}
102
100
prange = 'COM'
103
101
for suffix , name in pranges .items ():
Original file line number Diff line number Diff line change
1
+ {#
1
2
#
2
- # Copyright (C) 2015- 2024 PyFPGA Project
3
+ # Copyright (C) 2024 PyFPGA Project
3
4
#
4
5
# SPDX-License-Identifier: GPL-3.0-or-later
5
6
#
6
7
#}
7
8
8
- # open_project -file {$TEMPDIR/libero.prjx}
9
- # run_tool -name {CONFIGURE_CHAIN} -script {$TEMPDIR/flashpro.tcl}
10
- # run_tool -name {PROGRAMDEVICE}
11
-
12
- # set flashpro_programmer "configure_flashpro5_prg -vpump {ON} \
13
- # -clk_mode {free_running_clk} -programming_method {spi_slave} \
14
- # -force_freq {OFF} -freq {4000000}"
9
+ if { [catch {open_project {{ project }}/{{ project }}.prjx} ] } {
10
+ open_project {{ project }}.prjx
11
+ }
12
+ run_tool -name {PROGRAMDEVICE}
Original file line number Diff line number Diff line change
1
+ {#
1
2
#
2
3
# Copyright (C) 2020-2024 PyFPGA Project
3
4
#
You can’t perform that action at this time.
0 commit comments