Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clock and Reset are not exported to top #67

Closed
zignig opened this issue May 15, 2019 · 0 comments
Closed

Clock and Reset are not exported to top #67

zignig opened this issue May 15, 2019 · 0 comments
Labels
Milestone

Comments

@zignig
Copy link
Contributor

zignig commented May 15, 2019

Recent changes mean that the clk and reset signals are not exported to the inputs of the modules
in examples

$ python ctr.py generate ctr.v
module top(o);
  wire [16:0] \$1 ;
  wire [16:0] \$2 ;
  (* src = "ctr.py:8" *)
  reg \$next\o ;
  (* src = "ctr.py:7" *)
  reg [15:0] \$next\v ;
  (* src = "/usr/local/lib/python3.7/dist-packages/nmigen-0.1-py3.7.egg/nmigen/hdl/ir.py:330" *)
  wire clk;
  (* src = "ctr.py:8" *)
  output o;
  (* src = "/usr/local/lib/python3.7/dist-packages/nmigen-0.1-py3.7.egg/nmigen/hdl/ir.py:330" *)
  wire rst;
  (* init = 16'hffff *)
  (* src = "ctr.py:7" *)

The clock and reset are wires rather than inputs to the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants