Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Commit Details
| Date: | 2010-05-10 22:09:13 (13 years 7 months ago) |
|---|---|
| Author: | Carlos Camargo |
| Commit: | 23184f39dd7fee01f79564182b2dbcc96517e361 |
| Message: | Adding modelsim simulation files |
| Files: |
plasma/logic/simulation/glbl.v (1 diff) plasma/logic/simulation/plasma_TB.do (1 diff) plasma/logic/simulation/wave.do (1 diff) plasma/logic/simulation/wave1.do (1 diff) |
Change Details
| plasma/logic/simulation/glbl.v | ||
|---|---|---|
| 1 | // $Header: /devl/xcs/repo/env/Databases/CAEInterfaces/verunilibs/data/glbl.v,v 1.11.156.1 2007/03/09 18:12:55 patrickp Exp $ | |
| 2 | ||
| 3 | `timescale 1 ps / 1 ps | |
| 4 | ||
| 5 | module glbl (); | |
| 6 | ||
| 7 | parameter ROC_WIDTH = 100000; | |
| 8 | parameter TOC_WIDTH = 0; | |
| 9 | ||
| 10 | wire GSR; | |
| 11 | wire GTS; | |
| 12 | wire PRLD; | |
| 13 | ||
| 14 | reg GSR_int; | |
| 15 | reg GTS_int; | |
| 16 | reg PRLD_int; | |
| 17 | ||
| 18 | //-------- JTAG Globals -------------- | |
| 19 | wire JTAG_TDO_GLBL; | |
| 20 | wire JTAG_TCK_GLBL; | |
| 21 | wire JTAG_TDI_GLBL; | |
| 22 | wire JTAG_TMS_GLBL; | |
| 23 | wire JTAG_TRST_GLBL; | |
| 24 | ||
| 25 | reg JTAG_CAPTURE_GLBL; | |
| 26 | reg JTAG_RESET_GLBL; | |
| 27 | reg JTAG_SHIFT_GLBL; | |
| 28 | reg JTAG_UPDATE_GLBL; | |
| 29 | ||
| 30 | reg JTAG_SEL1_GLBL = 0; | |
| 31 | reg JTAG_SEL2_GLBL = 0 ; | |
| 32 | reg JTAG_SEL3_GLBL = 0; | |
| 33 | reg JTAG_SEL4_GLBL = 0; | |
| 34 | ||
| 35 | reg JTAG_USER_TDO1_GLBL = 1'bz; | |
| 36 | reg JTAG_USER_TDO2_GLBL = 1'bz; | |
| 37 | reg JTAG_USER_TDO3_GLBL = 1'bz; | |
| 38 | reg JTAG_USER_TDO4_GLBL = 1'bz; | |
| 39 | ||
| 40 | assign (weak1, weak0) GSR = GSR_int; | |
| 41 | assign (weak1, weak0) GTS = GTS_int; | |
| 42 | assign (weak1, weak0) PRLD = PRLD_int; | |
| 43 | ||
| 44 | initial begin | |
| 45 | GSR_int = 1'b1; | |
| 46 | PRLD_int = 1'b1; | |
| 47 | #(ROC_WIDTH) | |
| 48 | GSR_int = 1'b0; | |
| 49 | PRLD_int = 1'b0; | |
| 50 | end | |
| 51 | ||
| 52 | initial begin | |
| 53 | GTS_int = 1'b1; | |
| 54 | #(TOC_WIDTH) | |
| 55 | GTS_int = 1'b0; | |
| 56 | end | |
| 57 | ||
| 58 | endmodule | |
| plasma/logic/simulation/plasma_TB.do | ||
|---|---|---|
| 1 | vlib work | |
| 2 | vmap work | |
| 3 | vcom -93 -work work ../mlite_pack.vhd | |
| 4 | vcom -93 -work work ../plasma.vhd | |
| 5 | vcom -93 -work work ../alu.vhd | |
| 6 | vcom -93 -work work ../control.vhd | |
| 7 | vcom -93 -work work ../mem_ctrl.vhd | |
| 8 | vcom -93 -work work ../mult.vhd | |
| 9 | vcom -93 -work work ../shifter.vhd | |
| 10 | vcom -93 -work work ../bus_mux.vhd | |
| 11 | vcom -93 -work work ../ddr_ctrl.vhd | |
| 12 | vcom -93 -work work ../mlite_cpu.vhd | |
| 13 | vcom -93 -work work ../pc_next.vhd | |
| 14 | vcom -93 -work work ../cache.vhd | |
| 15 | vcom -93 -work work ../pipeline.vhd | |
| 16 | vcom -93 -work work ../reg_bank.vhd | |
| 17 | vcom -93 -work work ../uart.vhd | |
| 18 | vcom -93 -work work ../ram_image.vhd | |
| 19 | vcom -93 -work work ../plasma_TB.vhd | |
| 20 | ||
| 21 | vsim -t 1ps tbench | |
| 22 | view wave | |
| 23 | #add wave * | |
| 24 | do wave.do | |
| 25 | ||
| 26 | view structure | |
| 27 | view signals | |
| 28 | run 1ms | |
| plasma/logic/simulation/wave.do | ||
|---|---|---|
| 1 | onerror {resume} | |
| 2 | quietly WaveActivateNextPane {} 0 | |
| 3 | add wave -noupdate -format Logic /tbench/clk | |
| 4 | add wave -noupdate -format Logic /tbench/reset | |
| 5 | add wave -noupdate -format Logic /tbench/interrupt | |
| 6 | add wave -noupdate -format Logic /tbench/mem_write | |
| 7 | add wave -noupdate -format Literal -radix hexadecimal /tbench/data_read | |
| 8 | add wave -noupdate -format Logic /tbench/pause1 | |
| 9 | add wave -noupdate -format Logic /tbench/pause2 | |
| 10 | add wave -noupdate -format Logic /tbench/pause | |
| 11 | add wave -noupdate -format Logic /tbench/u1_plasma/enable_misc | |
| 12 | add wave -noupdate -format Logic /tbench/u1_plasma/enable_uart | |
| 13 | add wave -noupdate -format Logic /tbench/uart_write | |
| 14 | add wave -noupdate -format Literal -radix hexadecimal /tbench/u1_plasma/cpu_data_w | |
| 15 | add wave -noupdate -format Literal -radix hexadecimal /tbench/u1_plasma/cpu_data_r | |
| 16 | add wave -noupdate -format Literal -radix hexadecimal /tbench/u1_plasma/address_next | |
| 17 | add wave -noupdate -format Literal /tbench/gpioa_in | |
| 18 | add wave -noupdate -format Logic /tbench/u1_plasma/write_enable | |
| 19 | add wave -noupdate -format Literal /tbench/u1_plasma/cpu_byte_we | |
| 20 | add wave -noupdate -format Literal -expand /tbench/u1_plasma/byte_we_next | |
| 21 | TreeUpdate [SetDefaultTree] | |
| 22 | WaveRestoreCursors {{Cursor 1} {75144797 ps} 0} | |
| 23 | configure wave -namecolwidth 269 | |
| 24 | configure wave -valuecolwidth 40 | |
| 25 | configure wave -justifyvalue left | |
| 26 | configure wave -signalnamewidth 0 | |
| 27 | configure wave -snapdistance 10 | |
| 28 | configure wave -datasetprefix 0 | |
| 29 | configure wave -rowmargin 4 | |
| 30 | configure wave -childrowmargin 2 | |
| 31 | configure wave -gridoffset 0 | |
| 32 | configure wave -gridperiod 1 | |
| 33 | configure wave -griddelta 40 | |
| 34 | configure wave -timeline 0 | |
| 35 | update | |
| 36 | WaveRestoreZoom {71704646 ps} {72130128 ps} | |
| plasma/logic/simulation/wave1.do | ||
|---|---|---|
| 1 | onerror {resume} | |
| 2 | quietly WaveActivateNextPane {} 0 | |
| 3 | add wave -noupdate -format Logic /plasma_TB_v/clk | |
| 4 | add wave -noupdate -format Logic /plasma_TB_v/reset | |
| 5 | add wave -noupdate -format Literal /plasma_TB_v/data_tx | |
| 6 | add wave -noupdate -format Event /plasma_TB_v/reset_trigger | |
| 7 | add wave -noupdate -format Event /plasma_TB_v/reset_done_trigger | |
| 8 | add wave -noupdate -format Literal /plasma_TB_v/uut/data_read | |
| 9 | add wave -noupdate -format Logic /plasma_TB_v/uut/ram_enable | |
| 10 | add wave -noupdate -format Literal -radix hexadecimal /plasma_TB_v/uut/cpu_data_w | |
| 11 | add wave -noupdate -format Literal -radix hexadecimal /plasma_TB_v/uut/cpu_data_r | |
| 12 | add wave -noupdate -format Literal /plasma_TB_v/uut/byte_we_next | |
| 13 | TreeUpdate [SetDefaultTree] | |
| 14 | WaveRestoreCursors {{Cursor 1} {3952754 ps} 0} | |
| 15 | configure wave -namecolwidth 240 | |
| 16 | configure wave -valuecolwidth 100 | |
| 17 | configure wave -justifyvalue left | |
| 18 | configure wave -signalnamewidth 0 | |
| 19 | configure wave -snapdistance 10 | |
| 20 | configure wave -datasetprefix 0 | |
| 21 | configure wave -rowmargin 4 | |
| 22 | configure wave -childrowmargin 2 | |
| 23 | configure wave -gridoffset 0 | |
| 24 | configure wave -gridperiod 1 | |
| 25 | configure wave -griddelta 40 | |
| 26 | configure wave -timeline 0 | |
| 27 | update | |
| 28 | WaveRestoreZoom {3946113 ps} {4013617 ps} | |
Branches:
master
