Skip to content

Commit

Permalink
Change attribute name to be more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Oct 21, 2019
1 parent c7726b9 commit 1e0ccda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions magma/backend/coreir_.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ def compile_declaration(self, declaration):
module_type = self.context.Flip(module_type)

kwargs = {}
if hasattr(declaration, "verilog_param_types"):
if hasattr(declaration, "coreir_config_param_types"):
kwargs["cparams"] = \
self.make_cparams(declaration.verilog_param_types)
self.make_cparams(declaration.coreir_config_param_types)

coreir_module = \
self.context.global_namespace.new_module(declaration.coreir_name,
Expand Down Expand Up @@ -329,9 +329,9 @@ def compile_definition(self, definition):
self.check_interface(definition)
module_type = self.convert_interface_to_module_type(definition.interface)
kwargs = {}
if hasattr(definition, "verilog_param_types"):
if hasattr(definition, "coreir_config_param_types"):
kwargs["cparams"] = \
self.make_cparams(definition.verilog_param_types)
self.make_cparams(definition.coreir_config_param_types)

coreir_module = \
self.context.global_namespace.new_module(definition.coreir_name,
Expand Down
2 changes: 1 addition & 1 deletion magma/fromverilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _get_lines(start_line, end_line):
parsed_name, args = ParseVerilogModule(verilog_defn, type_map)
assert parsed_name == name
magma_defn = func(name, *args)
magma_defn.verilog_param_types = param_map
magma_defn.coreir_config_param_types = param_map
if func == DefineCircuit:
# Attach relevant lines of verilog source.
magma_defn.verilogFile = _get_lines(
Expand Down

0 comments on commit 1e0ccda

Please sign in to comment.