1//: version "2.1" 2//: property encoding = "utf-8" 3//: property locale = "de" 4//: property prefix = "_GG" 5//: property title = "Sequential Simulation" 6//: property showSwitchNets = 0 7//: property discardChanges = 1 8//: property timingViolationMode = 2 9//: property initTime = "0 ns" 10//: require "timer" 11 12`timescale 1ns/1ns 13 14//: /netlistBegin PAGE1 15module PAGE1; //: root_module 16reg [7:0] w7; //: /sn:0 {0}(#:190,196)(190,222){1} 17reg w4; //: /sn:0 {0}(245,281)(256,281)(256,269)(266,269){1} 18supply0 w3; //: /sn:0 {0}(243,246)(243,236)(230,236){1} 19supply0 w0; //: /sn:0 {0}(245,291)(268,291)(268,306){1} 20wire [7:0] w2; //: /sn:0 {0}(#:206,276)(206,251){1} 21wire ck; //: {0}(50:169,286)(104,286){1} 22wire [7:0] reg_out; //: {0}(#:206,297)(206,327)(263,327){1} 23//: {2}(267,327)(323,327)(-70:323,200)(222,200)(222,222){3} 24//: {4}(265,329)(265,342){5} 25wire w9; //: /sn:0 {0}(182,236)(172,236){1} 26//: enddecls 27 28 //: joint g8 (reg_out) @(265, 327) /w:[ 2 -1 1 4 ] 29 //: GROUND g4 (w0) @(268,312) /sn:0 /w:[ 1 ] 30 //: comment g13 @(14,12) /anc:1 31 //: /line:"<h3>Simulation von Schaltwerken</h3> <b>(Schrittweise Simulation)</b>" 32 //: /line:"" 33 //: /line:"Starte den Simulator duch Drücken der \"<img src=\"simstart.gif\"> <font color=red2>Simulieren</a>\" Taste, genauso wie bei einem Schaltnetz. Setze dann Tastköpfe" 34 //: /line:"auf die \"ck\" und \"reg_out\" Signale durch Rechtsklicken und Auswahl von <font color=red2>Hinzufügen/Löschen</font> Tastkopf. Schreite nun im" 35 //: /line:"Simulator durch mehrere \"Taktschritte\" fort, indem Du den <img src=sim_clock.gif> Knopf oder die <font color=red2>Tab</font> Taste drückst. Beachte, daß" 36 //: /line:"das \"reg_out\" Signal einen unbekannten \"x\"-Wert zeigt. Um es zurückzusetzen und den Zähler neu zu starten, muß erst" 37 //: /line:"der \"reset\" Schalter auf \"off\" gesetzt werden. Rücke den Simulator um einen Taktschritt vor und stelle dann" 38 //: /line:"den \"reset\" Schalter auf die \"on\" Position zurück." 39 //: /end 40 //: comment g3 @(533,149) /sn:0 /anc:1 41 //: /line:"<font color=green4>Hinweis: Zusätzlich zum Scrollbar im" 42 //: /line:"Logikanalysator kann man auch im Hauptfenster" 43 //: /line:"durch Klicken und Ziehen die Position der Signale" 44 //: /line:"feinabstimmen.</font>" 45 //: /end 46 _GGREG8 #(10, 10, 20) g2 (.Q(reg_out), .D(w2), .EN(w0), .CLR(w4), .CK(ck)); //: @(206,286) /sn:0 /w:[ 0 0 0 0 0 ] 47 //: comment g1 @(10,410) /sn:0 /R:14 /anc:1 48 //: /line:"<tutorial-navigation byfile=1>" 49 //: /end 50 //: DIP g6 (w7) @(190,186) /sn:0 /w:[ 0 ] /st:1 /dn:0 51 //: GROUND g9 (w3) @(243,252) /sn:0 /w:[ 0 ] 52 //: LED g7 (reg_out) @(265,349) /sn:0 /R:2 /w:[ 5 ] /type:2 53 _GGADD8 #(68, 70, 62, 64) g5 (.A(w7), .B(reg_out), .S(w2), .CI(w3), .CO(w9)); //: @(206,238) /sn:0 /w:[ 1 3 1 1 0 ] 54 _GGCLOCK_P100_0_50 g0 (.Z(ck)); //: @(91,286) /sn:0 /w:[ 1 ] /omega:100 /phi:0 /duty:50 55 //: SWITCH reset (w4) @(284,269) /R:2 /w:[ 1 ] /st:1 /dn:0 56 57endmodule 58//: /netlistEnd 59 60