Versucht, näher an die Lösung zu kommen.
This commit is contained in:
@@ -20,4 +20,5 @@ vsim -c -t ps tb_ampel
|
|||||||
#get wave
|
#get wave
|
||||||
do wave.do
|
do wave.do
|
||||||
|
|
||||||
run 1500 us
|
run 1500 us
|
||||||
|
#run 400 us
|
||||||
Binary file not shown.
@@ -3,18 +3,52 @@ quietly WaveActivateNextPane {} 0
|
|||||||
add wave -noupdate /tb_ampel/CLK
|
add wave -noupdate /tb_ampel/CLK
|
||||||
add wave -noupdate /tb_ampel/RSTn
|
add wave -noupdate /tb_ampel/RSTn
|
||||||
add wave -noupdate /tb_ampel/SW
|
add wave -noupdate /tb_ampel/SW
|
||||||
add wave -noupdate -expand -subitemconfig {{/tb_ampel/HAUPTSTR_LINKS[2]} {-color Red} {/tb_ampel/HAUPTSTR_LINKS[1]} {-color Gold}} /tb_ampel/HAUPTSTR_LINKS
|
add wave -noupdate -subitemconfig {{/tb_ampel/HAUPTSTR_LINKS[2]} {-color Red -height 15} {/tb_ampel/HAUPTSTR_LINKS[1]} {-color Gold -height 15}} /tb_ampel/HAUPTSTR_LINKS
|
||||||
add wave -noupdate -expand -subitemconfig {{/tb_ampel/NEBENSTR_LINKS[2]} {-color Red} {/tb_ampel/NEBENSTR_LINKS[1]} {-color Gold}} /tb_ampel/NEBENSTR_LINKS
|
add wave -noupdate -subitemconfig {{/tb_ampel/NEBENSTR_LINKS[2]} {-color Red -height 15} {/tb_ampel/NEBENSTR_LINKS[1]} {-color Gold -height 15}} /tb_ampel/NEBENSTR_LINKS
|
||||||
add wave -noupdate -expand -subitemconfig {{/tb_ampel/FUSSGAENGER_LINKS[1]} {-color Red}} /tb_ampel/FUSSGAENGER_LINKS
|
add wave -noupdate -subitemconfig {{/tb_ampel/FUSSGAENGER_LINKS[1]} {-color Red -height 15}} /tb_ampel/FUSSGAENGER_LINKS
|
||||||
add wave -noupdate -expand -subitemconfig {{/tb_ampel/HAUPTSTR_RECHTS[2]} {-color Red} {/tb_ampel/HAUPTSTR_RECHTS[1]} {-color Gold}} /tb_ampel/HAUPTSTR_RECHTS
|
add wave -noupdate -subitemconfig {{/tb_ampel/HAUPTSTR_RECHTS[2]} {-color Red -height 15} {/tb_ampel/HAUPTSTR_RECHTS[1]} {-color Gold -height 15}} /tb_ampel/HAUPTSTR_RECHTS
|
||||||
add wave -noupdate -expand -subitemconfig {{/tb_ampel/NEBENSTR_RECHTS[2]} {-color Red} {/tb_ampel/NEBENSTR_RECHTS[1]} {-color Gold}} /tb_ampel/NEBENSTR_RECHTS
|
add wave -noupdate -subitemconfig {{/tb_ampel/NEBENSTR_RECHTS[2]} {-color Red -height 15} {/tb_ampel/NEBENSTR_RECHTS[1]} {-color Gold -height 15}} /tb_ampel/NEBENSTR_RECHTS
|
||||||
add wave -noupdate -expand -subitemconfig {{/tb_ampel/FUSSGAENGER_RECHTS[1]} {-color Red}} /tb_ampel/FUSSGAENGER_RECHTS
|
add wave -noupdate -subitemconfig {{/tb_ampel/FUSSGAENGER_RECHTS[1]} {-color Red -height 15}} /tb_ampel/FUSSGAENGER_RECHTS
|
||||||
add wave -position end sim:/tb_ampel/ampel/CLOCK_ENABLE
|
add wave -noupdate /tb_ampel/ampel/CLOCK_50
|
||||||
|
add wave -noupdate /tb_ampel/ampel/KEY
|
||||||
|
add wave -noupdate /tb_ampel/ampel/LEDH_L
|
||||||
|
add wave -noupdate /tb_ampel/ampel/LEDH_R
|
||||||
|
add wave -noupdate /tb_ampel/ampel/LEDN_L
|
||||||
|
add wave -noupdate /tb_ampel/ampel/LEDN_R
|
||||||
|
add wave -noupdate /tb_ampel/ampel/LEDF_L
|
||||||
|
add wave -noupdate /tb_ampel/ampel/LEDF_R
|
||||||
|
add wave -noupdate /tb_ampel/ampel/DBG
|
||||||
|
add wave -noupdate /tb_ampel/ampel/CLKDIV1
|
||||||
|
add wave -noupdate /tb_ampel/ampel/CLKDIV2
|
||||||
|
add wave -noupdate /tb_ampel/ampel/CLKDIV3
|
||||||
|
add wave -noupdate /tb_ampel/ampel/MELDER
|
||||||
|
add wave -noupdate /tb_ampel/ampel/MELDER_Q
|
||||||
|
add wave -noupdate /tb_ampel/ampel/MELDER_QQ
|
||||||
|
add wave -noupdate /tb_ampel/ampel/MELDER_ACK
|
||||||
|
add wave -noupdate /tb_ampel/ampel/CLOCK_ENABLE
|
||||||
|
add wave -noupdate /tb_ampel/ampel/START_WARTEN
|
||||||
|
add wave -noupdate /tb_ampel/ampel/STATE
|
||||||
|
add wave -noupdate /tb_ampel/ampel/HAUPTSTR
|
||||||
|
add wave -noupdate /tb_ampel/ampel/NEBENSTR
|
||||||
|
add wave -noupdate /tb_ampel/ampel/FUSSGAENGER
|
||||||
|
add wave -noupdate /tb_ampel/ampel/WARTEZAEHLER
|
||||||
|
add wave -noupdate /tb_ampel/ampel/WARTEWERT
|
||||||
|
add wave -noupdate /tb_ampel/ampel/en_div_1
|
||||||
|
add wave -noupdate /tb_ampel/ampel/en_div_2
|
||||||
|
add wave -noupdate /tb_ampel/ampel/en_div_3
|
||||||
|
add wave -noupdate /tb_ampel/ampel/q_div_1
|
||||||
|
add wave -noupdate /tb_ampel/ampel/q_div_2
|
||||||
|
add wave -noupdate /tb_ampel/ampel/q_div_3
|
||||||
|
add wave -noupdate /tb_ampel/ampel/tc_div_1
|
||||||
|
add wave -noupdate /tb_ampel/ampel/tc_div_2
|
||||||
|
add wave -noupdate /tb_ampel/ampel/tc_div_3
|
||||||
|
add wave -noupdate /tb_ampel/ampel/RESET
|
||||||
|
add wave -noupdate /tb_ampel/ampel/WARTEN_FERTIG
|
||||||
TreeUpdate [SetDefaultTree]
|
TreeUpdate [SetDefaultTree]
|
||||||
WaveRestoreCursors {{Cursor 1} {833117378 ps} 0}
|
WaveRestoreCursors {{Cursor 1} {157723025 ps} 0}
|
||||||
quietly wave cursor active 1
|
quietly wave cursor active 1
|
||||||
configure wave -namecolwidth 150
|
configure wave -namecolwidth 150
|
||||||
configure wave -valuecolwidth 100
|
configure wave -valuecolwidth 39
|
||||||
configure wave -justifyvalue left
|
configure wave -justifyvalue left
|
||||||
configure wave -signalnamewidth 0
|
configure wave -signalnamewidth 0
|
||||||
configure wave -snapdistance 10
|
configure wave -snapdistance 10
|
||||||
@@ -27,4 +61,4 @@ configure wave -griddelta 40
|
|||||||
configure wave -timeline 0
|
configure wave -timeline 0
|
||||||
configure wave -timelineunits ns
|
configure wave -timelineunits ns
|
||||||
update
|
update
|
||||||
WaveRestoreZoom {0 ps} {1575 us}
|
WaveRestoreZoom {0 ps} {420 us}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ K3
|
|||||||
cModel Technology
|
cModel Technology
|
||||||
Z0 dC:\Users\Erdem\Desktop\labor_eds\labor_3\<5C>bungen\ampel\sim
|
Z0 dC:\Users\Erdem\Desktop\labor_eds\labor_3\<5C>bungen\ampel\sim
|
||||||
vampel
|
vampel
|
||||||
Z1 IZGe1P?3miOhU2OZfIKL_U2
|
Z1 IaQGYY?BdBf@agb6lTWYkz3
|
||||||
Z2 VRO2_FXGbKEQ9T<W2M?dVH1
|
Z2 VRO2_FXGbKEQ9T<W2M?dVH1
|
||||||
Z3 dC:\Users\Erdem\Desktop\labor_eds\labor_3\<5C>bungen\ampel\sim
|
Z3 dC:\Users\Erdem\Desktop\labor_eds\labor_3\<5C>bungen\ampel\sim
|
||||||
Z4 w1708639470
|
Z4 w1708681481
|
||||||
Z5 8../src/ampel.v
|
Z5 8../src/ampel.v
|
||||||
Z6 F../src/ampel.v
|
Z6 F../src/ampel.v
|
||||||
L0 20
|
L0 20
|
||||||
@@ -16,9 +16,9 @@ r1
|
|||||||
31
|
31
|
||||||
o-O0
|
o-O0
|
||||||
!i10b 1
|
!i10b 1
|
||||||
Z8 !s100 0n0`N_LmU0KcJ3PPGdNQ[0
|
Z8 !s100 V^If:`L@9b]?^9XGzD5z@3
|
||||||
!s85 0
|
!s85 0
|
||||||
Z9 !s108 1708639474.702000
|
Z9 !s108 1708681485.221000
|
||||||
Z10 !s107 ../src/ampel.v|
|
Z10 !s107 ../src/ampel.v|
|
||||||
Z11 !s90 -reportprogress|300|../src/ampel.v|+define+SIMULATION|
|
Z11 !s90 -reportprogress|300|../src/ampel.v|+define+SIMULATION|
|
||||||
!s101 -O0
|
!s101 -O0
|
||||||
@@ -29,7 +29,7 @@ vmod_n_counter_10bit
|
|||||||
IlLNUY`h`GTJ1?TjLj1BUS2
|
IlLNUY`h`GTJ1?TjLj1BUS2
|
||||||
VOCKRzhG[H7hm^_`n>48^e3
|
VOCKRzhG[H7hm^_`n>48^e3
|
||||||
R3
|
R3
|
||||||
Z13 w1708631937
|
Z13 w1708675165
|
||||||
8../src/mod_n_counter_10bit.v
|
8../src/mod_n_counter_10bit.v
|
||||||
F../src/mod_n_counter_10bit.v
|
F../src/mod_n_counter_10bit.v
|
||||||
L0 1
|
L0 1
|
||||||
@@ -37,7 +37,7 @@ R7
|
|||||||
r1
|
r1
|
||||||
!s85 0
|
!s85 0
|
||||||
31
|
31
|
||||||
!s108 1708639474.750000
|
!s108 1708681485.276000
|
||||||
!s107 ../src/mod_n_counter_10bit.v|
|
!s107 ../src/mod_n_counter_10bit.v|
|
||||||
!s90 -reportprogress|300|../src/mod_n_counter_10bit.v|
|
!s90 -reportprogress|300|../src/mod_n_counter_10bit.v|
|
||||||
!s101 -O0
|
!s101 -O0
|
||||||
@@ -55,7 +55,7 @@ r1
|
|||||||
31
|
31
|
||||||
o-O0
|
o-O0
|
||||||
Z18 !s100 1oY2jolgFK??ee;z]EH8c2
|
Z18 !s100 1oY2jolgFK??ee;z]EH8c2
|
||||||
Z19 !s108 1708639474.609000
|
Z19 !s108 1708681485.163000
|
||||||
Z20 !s107 tb_ampel.v|
|
Z20 !s107 tb_ampel.v|
|
||||||
Z21 !s90 -reportprogress|300|tb_ampel.v|
|
Z21 !s90 -reportprogress|300|tb_ampel.v|
|
||||||
!i10b 1
|
!i10b 1
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -104,13 +104,12 @@ assign en_div_1 = 1'b1;
|
|||||||
assign en_div_2 = tc_div_1;
|
assign en_div_2 = tc_div_1;
|
||||||
assign en_div_3 = tc_div_1 & tc_div_2;
|
assign en_div_3 = tc_div_1 & tc_div_2;
|
||||||
|
|
||||||
always @(en_div_3) begin
|
always @(tc_div_3) begin
|
||||||
CLOCK_ENABLE <= en_div_3;
|
CLOCK_ENABLE <= tc_div_3;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
// synchronisze KEY to CLOCK_50
|
// synchronisze KEY to CLOCK_50
|
||||||
always @(posedge CLOCK_50) begin
|
always @(posedge CLOCK_50 or posedge ~KEY[0]) begin
|
||||||
MELDER_Q = ~KEY[0];
|
MELDER_Q = ~KEY[0];
|
||||||
MELDER_QQ = MELDER_Q;
|
MELDER_QQ = MELDER_Q;
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user