可视化 yosys 输出不起作用

visualizing yosys output not working

我正在使用(可能不正确!)命令

yosys -f verilog -p "prep; show stretch count.dot" count.v

对于下面这个简单的例子

module count(input clk,output [7:0] LEDS);

reg [26:0] count;
assign LEDS = count[26:19];

always @(posedge clk) begin
    count <= count + 1;
end

endmodule

它没有像我期望的那样工作,没有输出我不想要的文件名...

3. Generating Graphviz representation of design.
Writing dot description to `/home/chris/.yosys_show.dot'.
ERROR: Nothing there to show.

正确的做法是什么?

您正在寻找的命令行显然是:

yosys -p "prep; show -stretch -prefix count -format dot" count.v