add solutions
This commit is contained in:
		
							
								
								
									
										31
									
								
								zz-solutions/04-Lissajous/Simulation/DAC.do
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								zz-solutions/04-Lissajous/Simulation/DAC.do
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| onerror {resume} | ||||
| quietly WaveActivateNextPane {} 0 | ||||
| add wave -noupdate /dac_tb/reset | ||||
| add wave -noupdate /dac_tb/clock | ||||
| add wave -noupdate -divider {parallel to serial} | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 66000.0 -radix unsigned -subitemconfig {/dac_tb/parallelin(15) {-radix unsigned} /dac_tb/parallelin(14) {-radix unsigned} /dac_tb/parallelin(13) {-radix unsigned} /dac_tb/parallelin(12) {-radix unsigned} /dac_tb/parallelin(11) {-radix unsigned} /dac_tb/parallelin(10) {-radix unsigned} /dac_tb/parallelin(9) {-radix unsigned} /dac_tb/parallelin(8) {-radix unsigned} /dac_tb/parallelin(7) {-radix unsigned} /dac_tb/parallelin(6) {-radix unsigned} /dac_tb/parallelin(5) {-radix unsigned} /dac_tb/parallelin(4) {-radix unsigned} /dac_tb/parallelin(3) {-radix unsigned} /dac_tb/parallelin(2) {-radix unsigned} /dac_tb/parallelin(1) {-radix unsigned} /dac_tb/parallelin(0) {-radix unsigned}} /dac_tb/parallelin | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 32000.0 -min -32000.0 -radix decimal /dac_tb/i_dut/parallelin1 | ||||
| add wave -noupdate -format Analog-Step -height 50 -max 1000000.0 -min -1000000.0 -radix decimal -subitemconfig {/dac_tb/i_dut/acc1(23) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(22) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(21) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(20) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(19) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(18) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(17) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(16) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(15) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(14) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(13) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(12) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(11) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(10) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(9) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(8) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(7) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(6) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(5) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(4) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(3) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(2) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(1) {-height 15 -radix decimal} /dac_tb/i_dut/acc1(0) {-height 15 -radix decimal}} /dac_tb/i_dut/acc1 | ||||
| add wave -noupdate -format Analog-Step -height 50 -max 1000000.0 -min -1000000.0 -radix decimal -subitemconfig {/dac_tb/i_dut/acc2(23) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(22) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(21) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(20) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(19) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(18) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(17) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(16) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(15) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(14) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(13) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(12) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(11) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(10) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(9) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(8) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(7) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(6) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(5) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(4) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(3) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(2) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(1) {-height 15 -radix decimal} /dac_tb/i_dut/acc2(0) {-height 15 -radix decimal}} /dac_tb/i_dut/acc2 | ||||
| add wave -noupdate /dac_tb/serialout | ||||
| add wave -noupdate -divider {serial to parallel} | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 65500.000000000007 -radix unsigned /dac_tb/lowpassout | ||||
| TreeUpdate [SetDefaultTree] | ||||
| WaveRestoreCursors {{Cursor 1} {0 ps} 0} | ||||
| configure wave -namecolwidth 175 | ||||
| configure wave -valuecolwidth 63 | ||||
| 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 1 | ||||
| configure wave -griddelta 40 | ||||
| configure wave -timeline 0 | ||||
| configure wave -timelineunits us | ||||
| update | ||||
| WaveRestoreZoom {0 ps} {105 us} | ||||
| run 100 us | ||||
|  | ||||
							
								
								
									
										32
									
								
								zz-solutions/04-Lissajous/Simulation/lissajousGenerator.do
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								zz-solutions/04-Lissajous/Simulation/lissajousGenerator.do
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| onerror {resume} | ||||
| quietly WaveActivateNextPane {} 0 | ||||
| add wave -noupdate /lissajousgenerator_test/reset | ||||
| add wave -noupdate /lissajousgenerator_test/clock | ||||
| add wave -noupdate -divider Sinewaves | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 65000.0 -radix unsigned -radixshowbase 0 /lissajousgenerator_test/I_DUT/sineX | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 65000.0 -radix unsigned -radixshowbase 0 /lissajousgenerator_test/I_DUT/sineY | ||||
| add wave -noupdate -divider Sigma-delta | ||||
| add wave -noupdate /lissajousgenerator_test/xSerial | ||||
| add wave -noupdate /lissajousgenerator_test/ySerial | ||||
| add wave -noupdate -divider {Lowpass outputs} | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 65000.0 -radix unsigned -childformat {{/lissajousgenerator_test/xLowapss(15) -radix unsigned} {/lissajousgenerator_test/xLowapss(14) -radix unsigned} {/lissajousgenerator_test/xLowapss(13) -radix unsigned} {/lissajousgenerator_test/xLowapss(12) -radix unsigned} {/lissajousgenerator_test/xLowapss(11) -radix unsigned} {/lissajousgenerator_test/xLowapss(10) -radix unsigned} {/lissajousgenerator_test/xLowapss(9) -radix unsigned} {/lissajousgenerator_test/xLowapss(8) -radix unsigned} {/lissajousgenerator_test/xLowapss(7) -radix unsigned} {/lissajousgenerator_test/xLowapss(6) -radix unsigned} {/lissajousgenerator_test/xLowapss(5) -radix unsigned} {/lissajousgenerator_test/xLowapss(4) -radix unsigned} {/lissajousgenerator_test/xLowapss(3) -radix unsigned} {/lissajousgenerator_test/xLowapss(2) -radix unsigned} {/lissajousgenerator_test/xLowapss(1) -radix unsigned} {/lissajousgenerator_test/xLowapss(0) -radix unsigned}} -radixshowbase 0 -subitemconfig {/lissajousgenerator_test/xLowapss(15) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(14) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(13) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(12) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(11) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(10) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(9) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(8) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(7) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(6) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(5) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(4) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(3) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(2) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(1) {-height 17 -radix unsigned -radixshowbase 0} /lissajousgenerator_test/xLowapss(0) {-height 17 -radix unsigned -radixshowbase 0}} /lissajousgenerator_test/xLowapss | ||||
| add wave -noupdate -format Analog-Step -height 100 -max 65000.0 -radix unsigned -radixshowbase 0 /lissajousgenerator_test/yLowpass | ||||
| TreeUpdate [SetDefaultTree] | ||||
| WaveRestoreCursors {{Cursor 1} {101600 ns} 0} | ||||
| quietly wave cursor active 1 | ||||
| configure wave -namecolwidth 274 | ||||
| configure wave -valuecolwidth 40 | ||||
| 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 1 | ||||
| configure wave -griddelta 40 | ||||
| configure wave -timeline 0 | ||||
| configure wave -timelineunits ms | ||||
| update | ||||
| WaveRestoreZoom {0 ns} {2100 us} | ||||
| run 2 ms | ||||
							
								
								
									
										36
									
								
								zz-solutions/04-Lissajous/Simulation/sineGen.do
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								zz-solutions/04-Lissajous/Simulation/sineGen.do
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| onerror {resume} | ||||
| quietly WaveActivateNextPane {} 0 | ||||
| add wave -noupdate /sinegen_tb/reset | ||||
| add wave -noupdate /sinegen_tb/clock | ||||
| add wave -noupdate -format Analog-Step -height 30 -max 1300.0 -radix unsigned -radixshowbase 0 /sinegen_tb/I_DUT/phase | ||||
| add wave -noupdate -divider {generator signals} | ||||
| add wave -noupdate -format Analog-Step -height 40 -max 66000.0 -radix unsigned -radixshowbase 0 /sinegen_tb/I_DUT/sawtooth | ||||
| add wave -noupdate -format Analog-Step -height 40 -max 66000.0 -radix unsigned -radixshowbase 0 /sinegen_tb/I_DUT/square | ||||
| add wave -noupdate -format Analog-Step -height 40 -max 66000.0 -radix unsigned -radixshowbase 0 /sinegen_tb/I_DUT/triangle | ||||
| add wave -noupdate -divider sinewave | ||||
| add wave -noupdate -format Analog-Step -height 80 -max 43200.0 -min -32800.0 -radix decimal -radixshowbase 0 /sinegen_tb/I_DUT/sineSamples | ||||
| add wave -noupdate /sinegen_tb/I_DUT/newPolynom | ||||
| add wave -noupdate -radix decimal -radixshowbase 0 /sinegen_tb/I_DUT/a | ||||
| add wave -noupdate -radix decimal -radixshowbase 0 /sinegen_tb/I_DUT/b | ||||
| add wave -noupdate -radix decimal -radixshowbase 0 /sinegen_tb/I_DUT/c | ||||
| add wave -noupdate -radix decimal -radixshowbase 0 /sinegen_tb/I_DUT/d | ||||
| add wave -noupdate -format Analog-Step -height 80 -max 76000.0 -radix unsigned -radixshowbase 0 /sinegen_tb/I_DUT/sine | ||||
| TreeUpdate [SetDefaultTree] | ||||
| WaveRestoreCursors {{Cursor 1} {0 ns} 0} | ||||
| quietly wave cursor active 0 | ||||
| configure wave -namecolwidth 250 | ||||
| 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 | ||||
| configure wave -gridoffset 0 | ||||
| configure wave -gridperiod 1000 | ||||
| configure wave -griddelta 40 | ||||
| configure wave -timeline 0 | ||||
| configure wave -timelineunits us | ||||
| update | ||||
| WaveRestoreZoom {0 ns} {52589 ns} | ||||
| run 50 us | ||||
							
								
								
									
										30
									
								
								zz-solutions/04-Lissajous/Simulation/waveformGen.do
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								zz-solutions/04-Lissajous/Simulation/waveformGen.do
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| onerror {resume} | ||||
| quietly WaveActivateNextPane {} 0 | ||||
| add wave -noupdate /waveformgen_tb/reset | ||||
| add wave -noupdate /waveformgen_tb/clock | ||||
| add wave -noupdate /waveformgen_tb/en | ||||
| add wave -noupdate -divider {generator signals} | ||||
| add wave -noupdate -format Analog-Step -height 70 -max 66000.0 -radix unsigned -radixshowbase 0 /waveformgen_tb/I_DUT/sawtooth | ||||
| add wave -noupdate -format Analog-Step -height 70 -max 66000.0 -radix unsigned -radixshowbase 0 /waveformgen_tb/I_DUT/square | ||||
| add wave -noupdate -format Analog-Step -height 70 -max 66000.0 -radix unsigned -radixshowbase 0 /waveformgen_tb/I_DUT/triangle | ||||
| add wave -noupdate -format Analog-Step -height 70 -max 66000.0 -radix unsigned -radixshowbase 0 /waveformgen_tb/I_DUT/polygon | ||||
| add wave -noupdate -format Analog-Step -height 70 -max 66000.0 -radix unsigned -radixshowbase 0 /waveformgen_tb/I_DUT/sine | ||||
| TreeUpdate [SetDefaultTree] | ||||
| WaveRestoreCursors {{Cursor 1} {0 ns} 0} | ||||
| quietly wave cursor active 0 | ||||
| configure wave -namecolwidth 272 | ||||
| configure wave -valuecolwidth 89 | ||||
| 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 us | ||||
| update | ||||
| WaveRestoreZoom {0 ns} {525 us} | ||||
| run 500 us | ||||
		Reference in New Issue
	
	Block a user