Skip to content

Commit

Permalink
Added add_cons for constraint files
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed May 28, 2024
1 parent 292e6ea commit 13b5169
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyfpga/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def add_file(self, pathname, filetype=None, library=None, options=None):
"""Temp placeholder"""
raise NotImplementedError('Method is not implemented yet.')

def add_vlog(self, pathname, options=None):
def add_cons(self, pathname, options=None):
"""Temp placeholder"""
self.add_file(pathname, filetype='vlog', options=options)
self.add_file(pathname, filetype='cons', options=options)

def add_slog(self, pathname, options=None):
"""Temp placeholder"""
Expand All @@ -71,6 +71,10 @@ def add_vhdl(self, pathname, library=None, options=None):
library=library, options=options
)

def add_vlog(self, pathname, options=None):
"""Temp placeholder"""
self.add_file(pathname, filetype='vlog', options=options)

def add_include(self, path):
"""Temp placeholder"""
if 'includes' not in self.data:
Expand Down

0 comments on commit 13b5169

Please sign in to comment.