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 15//: /symbolBegin: 185750768 16//: /iconBegin normal 815 5 5 17//: /data "#define bitmap_width 28" 18//: /data "#define bitmap_height 29" 19//: /data "static unsigned char bitmap_bits[] = {" 20//: /data " 0x03, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00," 21//: /data " 0xc1, 0x00, 0x00, 0x00, 0x01, 0x03, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x00," 22//: /data " 0x01, 0x30, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00," 23//: /data " 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x30, 0x00, 0xf1, 0x3c, 0xc0, 0x00," 24//: /data " 0x91, 0x24, 0x00, 0x03, 0x91, 0x24, 0x00, 0x0c, 0x91, 0x24, 0x00, 0x08," 25//: /data " 0x91, 0x24, 0x00, 0x0c, 0x91, 0x24, 0x00, 0x03, 0x9d, 0xe7, 0xc0, 0x00," 26//: /data " 0x01, 0x00, 0x30, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x03, 0x00," 27//: /data " 0x01, 0xc0, 0x00, 0x00, 0x01, 0x30, 0x00, 0x00, 0x01, 0x0c, 0x00, 0x00," 28//: /data " 0x01, 0x03, 0x00, 0x00, 0xc1, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00," 29//: /data " 0x0d, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};" 30//: /iconEnd 31//: /iconBegin select 815 5 5 32//: /data "#define bitmap_width 28" 33//: /data "#define bitmap_height 29" 34//: /data "static unsigned char bitmap_bits[] = {" 35//: /data " 0x03, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00," 36//: /data " 0xf3, 0x00, 0x00, 0x00, 0xc3, 0x03, 0x00, 0x00, 0x03, 0x0f, 0x00, 0x00," 37//: /data " 0x03, 0x3c, 0x00, 0x00, 0x03, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0x03, 0x00," 38//: /data " 0x03, 0x00, 0x0f, 0x00, 0x03, 0x00, 0x3c, 0x00, 0xf3, 0x7d, 0xf0, 0x00," 39//: /data " 0xf3, 0x7d, 0xc0, 0x03, 0xb3, 0x6d, 0x00, 0x0f, 0xb3, 0x6d, 0x00, 0x0c," 40//: /data " 0xb3, 0x6d, 0x00, 0x0f, 0xb3, 0x6d, 0xc0, 0x03, 0xbf, 0xef, 0xf1, 0x00," 41//: /data " 0x9f, 0xe7, 0x3c, 0x00, 0x03, 0x00, 0x0f, 0x00, 0x03, 0xc0, 0x03, 0x00," 42//: /data " 0x03, 0xf0, 0x00, 0x00, 0x03, 0x3c, 0x00, 0x00, 0x03, 0x0f, 0x00, 0x00," 43//: /data " 0xc3, 0x03, 0x00, 0x00, 0xf3, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00," 44//: /data " 0x0f, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};" 45//: /iconEnd 46//: /port output Z @(33, 19) /r:0 47//: /symbolEnd 48//: /netlistBegin PAGE1 49module PAGE1; //: root_module 50reg [7:0] w7; //: /sn:0 {0}(#:232,193)(232,219){1} 51reg w4; //: /sn:0 {0}(287,278)(298,278)(298,266)(308,266){1} 52supply0 w3; //: /sn:0 {0}(285,243)(285,233)(272,233){1} 53supply0 w0; //: /sn:0 {0}(287,288)(310,288)(310,303){1} 54wire [7:0] w2; //: /sn:0 {0}(#:248,273)(248,248){1} 55wire ck; //: {0}(-39:130,283)(211,283){1} 56wire [7:0] reg_out; //: {0}(#:248,294)(248,327)(304,327){1} 57//: {2}(308,327)(364,327)(58:364,206)(264,206)(264,219){3} 58//: {4}(306,329)(306,342){5} 59wire w9; //: /sn:0 {0}(224,233)(214,233){1} 60//: enddecls 61 62 //: joint g8 (reg_out) @(306, 327) /w:[ 2 -1 1 4 ] 63 //: GROUND g4 (w0) @(310,309) /sn:0 /w:[ 1 ] 64 //: comment g13 @(14,12) /anc:1 65 //: /line:"<h3>Simulation von Schaltwerken</h3> <b>(Kontinuierliche Simulation)</b>" 66 //: /line:"" 67 //: /line:"Genau wie beim Schaltnetz kann auch hier der <img src=sim_go.gif bgcolor=gray> Knopf gedrückt werden, um aus der" 68 //: /line:"Pause zurückzukehren und kontinuierlich zu simulieren. Versuche das mit der untenstehenden" 69 //: /line:"Schaltung. Sie enthält einen \"Realzeit\"-Oszillator, der eine Periode pro Sekunde ausführt. Wie im" 70 //: /line:"vorigen Beispiel ist das kurzzeitige Ausschalten des \"reset\" Schalters erforderlich." 71 //: /end 72 _GGREG8 #(10, 10, 20) g2 (.Q(reg_out), .D(w2), .EN(w0), .CLR(w4), .CK(ck)); //: @(248,283) /sn:0 /w:[ 0 0 0 0 1 ] 73 //: comment g1 @(10,410) /sn:0 /R:14 /anc:1 74 //: /line:"<tutorial-navigation byfile=1>" 75 //: /end 76 OSCILLATOR g10 (.Z(ck)); //: @(116, 283) /symbol:185750768 /sn:0 /w:[ 0 ] 77 //: DIP g6 (w7) @(232,183) /sn:0 /w:[ 0 ] /st:1 /dn:0 78 //: GROUND g9 (w3) @(285,249) /sn:0 /w:[ 0 ] 79 //: LED g7 (reg_out) @(306,349) /sn:0 /R:2 /w:[ 5 ] /type:2 80 _GGADD8 #(68, 70, 62, 64) g5 (.A(w7), .B(reg_out), .S(w2), .CI(w3), .CO(w9)); //: @(248,235) /sn:0 /w:[ 1 3 1 1 0 ] 81 //: SWITCH reset (w4) @(326,266) /R:2 /w:[ 1 ] /st:1 /dn:0 82 83endmodule 84//: /netlistEnd 85 86