Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
b3c79738
Commit
b3c79738
authored
11 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
examples/cordic/cordic_impl: do not fail if build dir does not exist
parent
dd24fdd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/cordic/cordic_impl.py
examples/cordic/cordic_impl.py
+2
-1
No files found.
examples/cordic/cordic_impl.py
View file @
b3c79738
...
@@ -3,13 +3,14 @@ import json
...
@@ -3,13 +3,14 @@ import json
from
migen.fhdl.std
import
*
from
migen.fhdl.std
import
*
from
migen.genlib.cordic
import
Cordic
from
migen.genlib.cordic
import
Cordic
from
mibuild.tools
import
mkdir_noerror
from
mibuild.generic_platform
import
*
from
mibuild.generic_platform
import
*
from
mibuild.xilinx_ise
import
XilinxISEPlatform
,
CRG_SE
from
mibuild.xilinx_ise
import
XilinxISEPlatform
,
CRG_SE
class
CordicImpl
(
Module
):
class
CordicImpl
(
Module
):
def
__init__
(
self
,
name
,
**
kwargs
):
def
__init__
(
self
,
name
,
**
kwargs
):
self
.
name
=
name
self
.
name
=
name
mkdir_noerror
(
"build"
)
json
.
dump
(
kwargs
,
open
(
"build/{}.json"
.
format
(
name
),
"w"
))
json
.
dump
(
kwargs
,
open
(
"build/{}.json"
.
format
(
name
),
"w"
))
self
.
platform
=
platform
=
Platform
()
self
.
platform
=
platform
=
Platform
()
self
.
submodules
.
cordic
=
Cordic
(
**
kwargs
)
self
.
submodules
.
cordic
=
Cordic
(
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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