We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e7faa commit 2f579f5Copy full SHA for 2f579f5
1 file changed
src/dev_aid/gen_docs.rs
@@ -171,8 +171,18 @@ fn build_interface_block(md: &Module, ft: &FileText) -> String {
171
for (dom_id, dom_info) in &md.latency_domains {
172
if prev_clock != Some(dom_info.clock) {
173
let clock = &md.clocks[dom_info.clock];
174
- if clock.name_span.is_some() {
175
- out.push_str(&format!(" clock {}\n", clock.name));
+ match clock.visibility {
+ ClockVisibility::Input => {
176
+ if clock.name_span.is_some() {
177
+ out.push_str(&format!(" clock {}\n", clock.name));
178
+ }
179
180
+ ClockVisibility::Output => {
181
+ out.push_str(&format!(" output clock {}\n", clock.name));
182
183
+ ClockVisibility::Local => {
184
+ unreachable!("Local clocks cannot be visible on the interface")
185
186
}
187
prev_clock = Some(dom_info.clock);
188
0 commit comments