The Basics¶
With this app, the user can create elborate timing diagrams with simple Python scripts. Publishing quality scalable diagrams are output in the Scalable Vector Format. Zoom in and out in your web browser to see how nicely the diagram scales. Models that create timing diagrams for standard protocols are included in a Python library. The script below uses the axi_master_simple model.
AXI Write Cycle¶
In [ ]:
from start_nb import *
td_name = 'axi_write'
td = new_timing_diagram(td_name, 0, 160, 'ns', 20)
axi_mstr = axi_master_simple(td)
axi_mstr.write('A1', ['D1', 'D2', 'D3', 'D4'])
l1 = text(td, 'L1', 'BVALID', 150 + 15, 0, font_color='red')
l2 = text(td, 'L2', 'BVALID', 200 + 15, 0, font_color='red')
l3 = text(td, 'L3', 'BVALID', 250 + 15, 0, font_color='red')
t1 = text(td, 'T1', 'BVALID', 300 + 15, 0, font_color='blue')
t2 = text(td, 'T2', 'BVALID', 350 + 15, 0, font_color='blue')
t3 = text(td, 'T3', 'BVALID', 400 + 15, 0, font_color='blue')
t4 = text(td, 'T4', 'BVALID', 450 + 15, 0, font_color='blue')
l4 = text(td, 'L4', 'BVALID', 500 + 15, 0, font_color='red')
l5 = text(td, 'L5', 'BVALID', 550 + 15, 0, font_color='red')
l6 = text(td, 'L6', 'BVALID', 600 + 15, 0, font_color='red')
analyze(td)
save_svg(td, td_name)
show_svg(td_name + '.svg')