ls_test.rmh

来自「和picoblaze完全兼容的mcu ip core」· RMH 代码 · 共 1,595 行 · 第 1/5 页

RMH
1,595
字号
/* Symbol Table */// ASCII_byte_to_hex = LABEL: 485// ASCII_letter = LABEL: 508// ASCII_to_decimal = LABEL: 510// ASCII_to_hex = LABEL: 498// AUTO_command = LABEL: 110// BS_edit = LABEL: 450// CYCLE_command = LABEL: 180// FAST_command = LABEL: 145// ISR = LABEL: 764// LED0 = CONSTANT: 1// LED1 = CONSTANT: 2// LED2 = CONSTANT: 4// LED3 = CONSTANT: 8// LED4 = CONSTANT: 16// LED5 = CONSTANT: 32// LED6 = CONSTANT: 64// LED7 = CONSTANT: 128// LED_port = CONSTANT: 128// RESET_command = LABEL: 53// SET_command = LABEL: 69// UART_data = REGISTER: 15// UART_read_port = CONSTANT: 1// UART_write = LABEL: 431// UART_write_port = CONSTANT: 64// auto_inc = CONSTANT: 12// bad_command = LABEL: 50// character_0 = CONSTANT: 48// character_1 = CONSTANT: 49// character_2 = CONSTANT: 50// character_3 = CONSTANT: 51// character_4 = CONSTANT: 52// character_5 = CONSTANT: 53// character_6 = CONSTANT: 54// character_7 = CONSTANT: 55// character_8 = CONSTANT: 56// character_9 = CONSTANT: 57// character_A = CONSTANT: 65// character_B = CONSTANT: 66// character_BS = CONSTANT: 8// character_C = CONSTANT: 67// character_CR = CONSTANT: 13// character_D = CONSTANT: 68// character_E = CONSTANT: 69// character_F = CONSTANT: 70// character_G = CONSTANT: 71// character_H = CONSTANT: 72// character_I = CONSTANT: 73// character_J = CONSTANT: 74// character_K = CONSTANT: 75// character_L = CONSTANT: 76// character_M = CONSTANT: 77// character_N = CONSTANT: 78// character_O = CONSTANT: 79// character_P = CONSTANT: 80// character_Q = CONSTANT: 81// character_R = CONSTANT: 82// character_S = CONSTANT: 83// character_T = CONSTANT: 84// character_U = CONSTANT: 85// character_V = CONSTANT: 86// character_W = CONSTANT: 87// character_X = CONSTANT: 88// character_Y = CONSTANT: 89// character_Z = CONSTANT: 90// character_a = CONSTANT: 97// character_b = CONSTANT: 98// character_c = CONSTANT: 99// character_colon = CONSTANT: 58// character_comma = CONSTANT: 44// character_d = CONSTANT: 100// character_divide = CONSTANT: 47// character_dollar = CONSTANT: 36// character_e = CONSTANT: 101// character_equals = CONSTANT: 61// character_exclaim = CONSTANT: 33// character_f = CONSTANT: 102// character_g = CONSTANT: 103// character_greater_than = CONSTANT: 62// character_h = CONSTANT: 104// character_i = CONSTANT: 105// character_j = CONSTANT: 106// character_k = CONSTANT: 107// character_l = CONSTANT: 108// character_less_than = CONSTANT: 60// character_m = CONSTANT: 109// character_minus = CONSTANT: 45// character_n = CONSTANT: 110// character_o = CONSTANT: 111// character_p = CONSTANT: 112// character_plus = CONSTANT: 43// character_q = CONSTANT: 113// character_question = CONSTANT: 63// character_r = CONSTANT: 114// character_s = CONSTANT: 115// character_semi_colon = CONSTANT: 59// character_space = CONSTANT: 32// character_stop = CONSTANT: 46// character_t = CONSTANT: 116// character_u = CONSTANT: 117// character_v = CONSTANT: 118// character_w = CONSTANT: 119// character_x = CONSTANT: 120// character_y = CONSTANT: 121// character_z = CONSTANT: 122// clear_UART_Rx_loop = LABEL: 462// cold_start = LABEL: 0// end_cycle = LABEL: 271// fast_mode = CONSTANT: 13// hex_byte_to_ASCII = LABEL: 514// hex_to_ASCII = LABEL: 526// line_store1_output_H = CONSTANT: 4// line_store1_output_L = CONSTANT: 2// line_store1_output_M = CONSTANT: 3// line_store2_output_H = CONSTANT: 7// line_store2_output_L = CONSTANT: 5// line_store2_output_M = CONSTANT: 6// line_store3_output_H = CONSTANT: 9// line_store3_output_L = CONSTANT: 8// line_store4a_output_H = CONSTANT: 12// line_store4a_output_L = CONSTANT: 10// line_store4a_output_M = CONSTANT: 11// line_store4b_output_H = CONSTANT: 15// line_store4b_output_L = CONSTANT: 13// line_store4b_output_M = CONSTANT: 14// line_store4c_output_H = CONSTANT: 18// line_store4c_output_L = CONSTANT: 16// line_store4c_output_M = CONSTANT: 17// line_store5_output_H = CONSTANT: 20// line_store5_output_L = CONSTANT: 19// line_store6_output_H = CONSTANT: 22// line_store6_output_L = CONSTANT: 21// line_store7a_output_H = CONSTANT: 25// line_store7a_output_L = CONSTANT: 23// line_store7a_output_M = CONSTANT: 24// line_store7b_output_H = CONSTANT: 28// line_store7b_output_L = CONSTANT: 26// line_store7b_output_M = CONSTANT: 27// line_store_input_H = CONSTANT: 4// line_store_input_L = CONSTANT: 1// line_store_input_M = CONSTANT: 2// line_store_write_en = CONSTANT: 8// n_count0 = CONSTANT: 8// n_count1 = CONSTANT: 9// n_count2 = CONSTANT: 10// n_count3 = CONSTANT: 11// n_loop = LABEL: 236// number_char = LABEL: 529// onechar_to_value = LABEL: 481// purge_loop = LABEL: 17// read_character = LABEL: 425// read_error = LABEL: 458// read_from_UART = LABEL: 421// read_next_char = LABEL: 274// receive_full_test = LABEL: 436// receive_string = LABEL: 433// rx_data_present = CONSTANT: 4// rx_full = CONSTANT: 16// rx_half_full = CONSTANT: 8// s0 = REGISTER: 0// s1 = REGISTER: 1// s2 = REGISTER: 2// s3 = REGISTER: 3// s4 = REGISTER: 4// s5 = REGISTER: 5// s6 = REGISTER: 6// s7 = REGISTER: 7// s8 = REGISTER: 8// s9 = REGISTER: 9// sA = REGISTER: 10// sB = REGISTER: 11// sC = REGISTER: 12// sD = REGISTER: 13// sE = REGISTER: 14// sF = REGISTER: 15// send_1280 = LABEL: 746// send_1920 = LABEL: 755// send_CR = LABEL: 541// send_Error = LABEL: 639// send_OK = LABEL: 649// send_Overflow_Error = LABEL: 622// send_backspace = LABEL: 547// send_greater_than = LABEL: 619// send_hex_byte = LABEL: 531// send_index = LABEL: 656// send_nibble = LABEL: 537// send_prompt = LABEL: 606// send_space = LABEL: 544// send_space_Error = LABEL: 638// send_to_UART = LABEL: 427// send_welcome = LABEL: 550// set_LEDs = LABEL: 32// skip_display = LABEL: 409// status_port = CONSTANT: 0// step_counter0 = CONSTANT: 0// step_counter1 = CONSTANT: 1// step_counter2 = CONSTANT: 2// step_counter3 = CONSTANT: 3// step_counter4 = CONSTANT: 4// step_line_store = LABEL: 277// step_test = LABEL: 269// store_n = LABEL: 231// store_step_count = LABEL: 302// string_start = CONSTANT: 48// string_start_again = LABEL: 456// test_auto_ON = LABEL: 138// test_data_in0 = CONSTANT: 5// test_data_in1 = CONSTANT: 6// test_data_in2 = CONSTANT: 7// test_fast_ON = LABEL: 173// tx_full = CONSTANT: 2// tx_half_full = CONSTANT: 1// ucs_loop = LABEL: 474// update_auto = LABEL: 142// update_fast = LABEL: 177// update_n = LABEL: 252// upper_case = LABEL: 467// upper_case_string = LABEL: 473// warm_start = LABEL: 27/* Program Code */// #1: ; KCPSM3 Program - Program to test line stores using the Spartan-3E Starter Kit.// #2: ;// #3: ; Ken Chapman - Xilinx Ltd// #4: ;// #5: ; Version v1.00 - 26th June 2006// #6: ;// #7: ; PicoBlaze communicates via the UART to control the value applied to the inputs of// #8: ; line stores and enable them for a specified number of clock cycles. The outputs of// #9: ; all the line stores are then displayed.// #10: ;// #11: ;**************************************************************************************// #12: ; Port definitions// #13: ;**************************************************************************************// #14: ;// #15: ;// #16: ;// #17: CONSTANT(LED_port,128) ;8 simple LEDs// #18: CONSTANT(LED0,1) ;     LED 0 - bit0// #19: CONSTANT(LED1,2) ;         1 - bit1// #20: CONSTANT(LED2,4) ;         2 - bit2// #21: CONSTANT(LED3,8) ;         3 - bit3// #22: CONSTANT(LED4,16) ;         4 - bit4// #23: CONSTANT(LED5,32) ;         5 - bit5// #24: CONSTANT(LED6,64) ;         6 - bit6// #25: CONSTANT(LED7,128) ;         7 - bit7// #26: ;// #27: ;// #28: ;UART ports// #29: ;// #30: CONSTANT(status_port,0) ;UART status input// #31: CONSTANT(tx_half_full,1) ;  Transmitter     half full - bit0// #32: CONSTANT(tx_full,2) ;    FIFO               full - bit1// #33: CONSTANT(rx_data_present,4) ;  Receiver     data present - bit2// #34: CONSTANT(rx_half_full,8) ;    FIFO          half full - bit3// #35: CONSTANT(rx_full,16) ;                   full - bit4// #36: ;// #37: CONSTANT(UART_read_port,1) ;UART Rx data input// #38: ;// #39: CONSTANT(UART_write_port,64) ;UART Tx data output// #40: ;// #41: ;// #42: ;The first line store input is 18-bits and requires 3 bytes// #43: ;to be written to a holding register. Then when required,// #44: ;the whole 18-bit value can be stored in the line store// #45: ;using a dummy write (data not used) to a forth port.// #46: ;// #47: ;// #48: CONSTANT(line_store_input_L,1) ;Line Store input bits [7:0]// #49: CONSTANT(line_store_input_M,2) ;Line Store input bits [15:8]// #50: CONSTANT(line_store_input_H,4) ;Line Store input bits [17:16]// #51: CONSTANT(line_store_write_en,8) ;Line Store clock enable (dummy write)// #52: ;// #53: ;// #54: ;// #55: ;The first line store 768x24 and requires 3 bytes to be read.// #56: ;// #57: CONSTANT(line_store1_output_L,2) ;Line Store output bits [7:0]// #58: CONSTANT(line_store1_output_M,3) ;Line Store output bits [15:8]// #59: CONSTANT(line_store1_output_H,4) ;Line Store output bits [23:16]// #60: ;// #61: ;// #62: ;The second line store 1024x18 and requires 3 bytes to be read.// #63: ;// #64: CONSTANT(line_store2_output_L,5) ;Line Store output bits [7:0]// #65: CONSTANT(line_store2_output_M,6) ;Line Store output bits [15:8]// #66: CONSTANT(line_store2_output_H,7) ;Line Store output bits [17:16]// #67: ;// #68: ;// #69: ;The third line store 1280x13 and requires 2 bytes to be read.// #70: ;// #71: CONSTANT(line_store3_output_L,8) ;Line Store output bits [7:0]// #72: CONSTANT(line_store3_output_H,9) ;Line Store output bits [12:8]// #73: ;// #74: ;// #75: ;The forth line store is 1280x72 so to make it more manageable it has been// #76: ;folded to make it 3 times longer and only 24-bits wide. This requires 3 bytes// #77: ;to be read at each 1280 delay tapping point.// #78: ;// #79: CONSTANT(line_store4a_output_L,10) ;Line Store output bits [7:0]   First tap// #80: CONSTANT(line_store4a_output_M,11) ;Line Store output bits [15:8]// #81: CONSTANT(line_store4a_output_H,12) ;Line Store output bits [23:16]// #82: ;// #83: CONSTANT(line_store4b_output_L,13) ;Line Store output bits [31:24] Second tap// #84: CONSTANT(line_store4b_output_M,14) ;Line Store output bits [39:32]// #85: CONSTANT(line_store4b_output_H,15) ;Line Store output bits [47:40]// #86: ;// #87: CONSTANT(line_store4c_output_L,16) ;Line Store output bits [55:48] Third tap// #88: CONSTANT(line_store4c_output_M,17) ;Line Store output bits [63:56]// #89: CONSTANT(line_store4c_output_H,18) ;Line Store output bits [71:64]// #90: ;// #91: ;// #92: ;The fifth line store 1536x12 and requires 2 bytes to be read.// #93: ;// #94: CONSTANT(line_store5_output_L,19) ;Line Store output bits [7:0]// #95: CONSTANT(line_store5_output_H,20) ;Line Store output bits [11:8]// #96: ;// #97: ;// #98: ;The sixth line store 1920x9 and requires 2 bytes to be read.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?