mirror of
https://github.com/Klagarge/Cursor.git
synced 2025-06-25 20:02:31 +00:00
Initial commit
This commit is contained in:
43
Simulation/cursor.do
Normal file
43
Simulation/cursor.do
Normal file
@ -0,0 +1,43 @@
|
||||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -group {reset and clock} /cursor_tb/reset
|
||||
add wave -noupdate -group {reset and clock} /cursor_tb/clock
|
||||
add wave -noupdate -group {reset and clock} /cursor_tb/testMode
|
||||
add wave -noupdate -expand -group {Buttons and sensors} /cursor_tb/restart
|
||||
add wave -noupdate -expand -group {Buttons and sensors} /cursor_tb/go1
|
||||
add wave -noupdate -expand -group {Buttons and sensors} /cursor_tb/go2
|
||||
add wave -noupdate -expand -group {Buttons and sensors} /cursor_tb/sensor1
|
||||
add wave -noupdate -expand -group {Buttons and sensors} /cursor_tb/sensor2
|
||||
add wave -noupdate -group Encoder /cursor_tb/encoderA
|
||||
add wave -noupdate -group Encoder /cursor_tb/encoderB
|
||||
add wave -noupdate -group Encoder /cursor_tb/encoderI
|
||||
add wave -noupdate -expand -group Internals /cursor_tb/I_DUT/I_ctrl/current_state
|
||||
add wave -noupdate -expand -group Internals -radix unsigned /cursor_tb/I_DUT/selectPosition
|
||||
add wave -noupdate -expand -group Internals /cursor_tb/I_DUT/zeroSpeed
|
||||
add wave -noupdate -expand -group Internals /cursor_tb/I_DUT/fullSpeed
|
||||
add wave -noupdate -expand -group Internals /cursor_tb/I_DUT/rampEnable
|
||||
add wave -noupdate -expand -group Internals /cursor_tb/I_DUT/endReached
|
||||
add wave -noupdate -expand -group Internals -format Analog-Step -height 50 -max 255.0 -radix unsigned /cursor_tb/I_DUT/amplitude
|
||||
add wave -noupdate -expand -group Internals -format Analog-Step -height 50 -max 14000.0 -radix unsigned /cursor_tb/I_DUT/position
|
||||
add wave -noupdate -expand -group {Motor control} /cursor_tb/motorOn
|
||||
add wave -noupdate -expand -group {Motor control} /cursor_tb/side1
|
||||
add wave -noupdate -expand -group {Motor control} /cursor_tb/side2
|
||||
add wave -noupdate /cursor_tb/I_DUT/testOut
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {{Cursor 1} {18011924 ns} 0}
|
||||
quietly wave cursor active 1
|
||||
configure wave -namecolwidth 240
|
||||
configure wave -valuecolwidth 71
|
||||
configure wave -justifyvalue left
|
||||
configure wave -signalnamewidth 0
|
||||
configure wave -snapdistance 10
|
||||
configure wave -datasetprefix 0
|
||||
configure wave -rowmargin 4
|
||||
configure wave -childrowmargin 2
|
||||
configure wave -gridoffset 0
|
||||
configure wave -gridperiod 1000
|
||||
configure wave -griddelta 40
|
||||
configure wave -timeline 0
|
||||
configure wave -timelineunits ms
|
||||
update
|
||||
WaveRestoreZoom {0 ns} {21 ms}
|
21
Simulation/divider.do
Normal file
21
Simulation/divider.do
Normal file
@ -0,0 +1,21 @@
|
||||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -format Logic /divider_tb/reset
|
||||
add wave -noupdate -format Logic /divider_tb/clock
|
||||
add wave -noupdate -format Logic /divider_tb/testmode
|
||||
add wave -noupdate -format Logic /divider_tb/enlow
|
||||
add wave -noupdate -format Logic /divider_tb/enpwm
|
||||
add wave -noupdate -format Logic /divider_tb/start
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {0 ps}
|
||||
WaveRestoreZoom {0 ps} {5250 us}
|
||||
configure wave -namecolwidth 150
|
||||
configure wave -valuecolwidth 100
|
||||
configure wave -justifyvalue left
|
||||
configure wave -signalnamewidth 0
|
||||
configure wave -snapdistance 10
|
||||
configure wave -datasetprefix 0
|
||||
configure wave -rowmargin 4
|
||||
configure wave -childrowmargin 2
|
||||
|
||||
run 10 ms
|
128
Simulation/lcdFont.txt
Normal file
128
Simulation/lcdFont.txt
Normal file
@ -0,0 +1,128 @@
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
111000111011000000010000000000001110001111100011
|
||||
000000000000000000000000000000000000000000000000
|
||||
000000000000000001001111000000000000000000000000
|
||||
000000000000011100000000000001110000000000000000
|
||||
000101000111111100010100011111110001010000000000
|
||||
001001000010101001111111001010100001001000000000
|
||||
001000110001001100001000011001000110001000000000
|
||||
001101100100100101010101001000100101000000000000
|
||||
000000000000010100000011000000000000000000000000
|
||||
000000000001110000100010010000010000000000000000
|
||||
000000000100000100100010000111000000000000000000
|
||||
000101000000100000111110000010000001010000000000
|
||||
000010000000100000111110000010000000100000000000
|
||||
000000000101000000110000000000000000000000000000
|
||||
000010000000100000001000000010000000100000000000
|
||||
000000000110000001100000000000000000000000000000
|
||||
001000000001000000001000000001000000001000000000
|
||||
001111100101000101001001010001010011111000000000
|
||||
000000000100001001111111010000000000000000000000
|
||||
010000100110000101010001010010010100011000000000
|
||||
001000010100000101000101010010110011000100000000
|
||||
000110000001010000010010011111110001000000000000
|
||||
001001110100010101000101010001010011100100000000
|
||||
001111000100101001001001010010010011000000000000
|
||||
000000010111000100001001000001010000001100000000
|
||||
001101100100100101001001010010010011011000000000
|
||||
000001100100100101001001001010010001111000000000
|
||||
000000000011011000110110000000000000000000000000
|
||||
000000000101011000110110000000000000000000000000
|
||||
000010000001010000100010010000010000000000000000
|
||||
000101000001010000010100000101000001010000000000
|
||||
000000000100000100100010000101000000100000000000
|
||||
000000100000000101010001000010010000011000000000
|
||||
001100100100100101111001010000010011111000000000
|
||||
011111100001000100010001000100010111111000000000
|
||||
011111110100100101001001010010010011011000000000
|
||||
001111100100000101000001010000010010001000000000
|
||||
011111110100000101000001001000100001110000000000
|
||||
011111110100100101001001010010010100000100000000
|
||||
011111110000100100001001000010010000000100000000
|
||||
001111100100000101001001010010010111101000000000
|
||||
011111110000100000001000000010000111111100000000
|
||||
000000000100000101111111010000010000000000000000
|
||||
001000000100000001000001001111110000000100000000
|
||||
011111110000100000010100001000100100000100000000
|
||||
011111110100000001000000010000000100000000000000
|
||||
011111110000001000001100000000100111111100000000
|
||||
011111110000010000001000000100000111111100000000
|
||||
001111100100000101000001010000010011111000000000
|
||||
011111110000100100001001000010010000011000000000
|
||||
001111100100000101010001001000010101111000000000
|
||||
011111110000100100011001001010010100011000000000
|
||||
010001100100100101001001010010010011000100000000
|
||||
000000010000000101111111000000010000000100000000
|
||||
001111110100000001000000010000000011111100000000
|
||||
000111110010000001000000001000000001111100000000
|
||||
001111110100000000111000010000000011111100000000
|
||||
011000110001010000001000000101000110001100000000
|
||||
000001110000100001110000000010000000011100000000
|
||||
011000010101000101001001010001010100001100000000
|
||||
000000000111111101000001010000010000000000000000
|
||||
000101010001011001111100000101100001010100000000
|
||||
000000000100000101000001011111110000000000000000
|
||||
000001000000001000000001000000100000010000000000
|
||||
010000000100000001000000010000000100000000000000
|
||||
000000000000000100000010000001000000000000000000
|
||||
001000000101010001010100010101000111100000000000
|
||||
011111110100100001000100010001000011100000000000
|
||||
001110000100010001000100010001000010000000000000
|
||||
001110000100010001000100010010000111111100000000
|
||||
001110000101010001010100010101000001100000000000
|
||||
000010000111111000001001000000010000001000000000
|
||||
000011000101001001010010010100100011111000000000
|
||||
011111110000100000000100000001000111100000000000
|
||||
000000000100010001111101010000000000000000000000
|
||||
001000000100000001000100001111010000000000000000
|
||||
011111110001000000101000010001000000000000000000
|
||||
000000000100000101111111010000000000000000000000
|
||||
011111000000010000011000000001000111100000000000
|
||||
011111000000100000000100000001000111100000000000
|
||||
001110000100010001000100010001000011100000000000
|
||||
011111000001010000010100000101000000100000000000
|
||||
000010000001010000010100000110000111110000000000
|
||||
011111000000100000000100000001000000100000000000
|
||||
010010000101010001010100010101000010000000000000
|
||||
000001000011111101000100010000000010000000000000
|
||||
001111000100000001000000001000000111110000000000
|
||||
000111000010000001000000001000000001110000000000
|
||||
001111000100000000110000010000000011110000000000
|
||||
010001000010100000010000001010000100010000000000
|
||||
000011000101000001010000010100000011110000000000
|
||||
010001000110010001010100010011000100010000000000
|
||||
000000000000100000110110010000010000000000000000
|
||||
000000000000000001111111000000000000000000000000
|
||||
000000000100000100110110000010000000000000000000
|
||||
000010000000100000101010000111000000100000000000
|
||||
000010000001110000101010000010000000100000000000
|
30
Simulation/positionCounter.do
Normal file
30
Simulation/positionCounter.do
Normal file
@ -0,0 +1,30 @@
|
||||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -format Logic /positioncounter_tb/reset
|
||||
add wave -noupdate -format Logic /positioncounter_tb/clock
|
||||
add wave -noupdate -divider Controls
|
||||
add wave -noupdate -format Logic /positioncounter_tb/clear
|
||||
add wave -noupdate -divider Encoder
|
||||
add wave -noupdate -format Logic /positioncounter_tb/i1/direction
|
||||
add wave -noupdate -format Analog-Step -height 40 -radix unsigned -scale 0.20000000000000001 /positioncounter_tb/i1/stepcount
|
||||
add wave -noupdate -format Logic /positioncounter_tb/encodera
|
||||
add wave -noupdate -format Logic /positioncounter_tb/encoderb
|
||||
add wave -noupdate -format Logic /positioncounter_tb/encoderi
|
||||
add wave -noupdate -divider {Position counter}
|
||||
add wave -noupdate -format Logic /positioncounter_tb/i0/risinga
|
||||
add wave -noupdate -format Logic /positioncounter_tb/i0/fallinga
|
||||
add wave -noupdate -format Logic /positioncounter_tb/i0/risingb
|
||||
add wave -noupdate -format Logic /positioncounter_tb/i0/fallingb
|
||||
add wave -noupdate -format Analog-Step -height 50 -radix unsigned -scale 0.10000000000000001 /positioncounter_tb/position
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {52123100 ps}
|
||||
WaveRestoreZoom {0 ps} {210 us}
|
||||
configure wave -namecolwidth 198
|
||||
configure wave -valuecolwidth 52
|
||||
configure wave -justifyvalue left
|
||||
configure wave -signalnamewidth 0
|
||||
configure wave -snapdistance 10
|
||||
configure wave -datasetprefix 0
|
||||
configure wave -rowmargin 4
|
||||
configure wave -childrowmargin 2
|
||||
run 200 us
|
21
Simulation/pulseWidthModulator.do
Normal file
21
Simulation/pulseWidthModulator.do
Normal file
@ -0,0 +1,21 @@
|
||||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -format Logic /pulsewidthmodulator_tb/reset
|
||||
add wave -noupdate -format Logic /pulsewidthmodulator_tb/clock
|
||||
add wave -noupdate -format Literal -radix hexadecimal /pulsewidthmodulator_tb/amplitude
|
||||
add wave -noupdate -format Logic /pulsewidthmodulator_tb/en
|
||||
add wave -noupdate -format Analog-Step -height 40 -radix unsigned -scale 0.10000000000000001 /pulsewidthmodulator_tb/i0/counter
|
||||
add wave -noupdate -format Logic /pulsewidthmodulator_tb/pwm
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {0 ps}
|
||||
WaveRestoreZoom {0 ps} {2100 us}
|
||||
configure wave -namecolwidth 200
|
||||
configure wave -valuecolwidth 50
|
||||
configure wave -justifyvalue left
|
||||
configure wave -signalnamewidth 0
|
||||
configure wave -snapdistance 10
|
||||
configure wave -datasetprefix 0
|
||||
configure wave -rowmargin 4
|
||||
configure wave -childrowmargin 2
|
||||
|
||||
run 1 ms
|
20
Simulation/rampCounter.do
Normal file
20
Simulation/rampCounter.do
Normal file
@ -0,0 +1,20 @@
|
||||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -format Logic /rampcounter_tb/reset
|
||||
add wave -noupdate -format Logic /rampcounter_tb/clock
|
||||
add wave -noupdate -format Logic /rampcounter_tb/en
|
||||
add wave -noupdate -format Logic /rampcounter_tb/updown
|
||||
add wave -noupdate -format Logic /rampcounter_tb/start
|
||||
add wave -noupdate -format Analog-Step -height 40 -radix unsigned -scale 0.10000000000000001 /rampcounter_tb/ramp
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {76751300 ps}
|
||||
WaveRestoreZoom {0 ps} {210 us}
|
||||
configure wave -namecolwidth 195
|
||||
configure wave -valuecolwidth 55
|
||||
configure wave -justifyvalue left
|
||||
configure wave -signalnamewidth 0
|
||||
configure wave -snapdistance 10
|
||||
configure wave -datasetprefix 0
|
||||
configure wave -rowmargin 4
|
||||
configure wave -childrowmargin 2
|
||||
run 200 us
|
Reference in New Issue
Block a user