I recently used the Atlys development board and simply passed the program on the board. Because the example used PicoBlaze, and I haven't touched PicoBlaze before, so I was afraid of it at first. After painting for a few minutes, I read the PicoBlaze user manual and the kcpsm3 guide, and found that it was not that difficult; and PicoBlaze is really very simple. Because there are things in the routine that are not mentioned, it may not be smooth for beginners, so I will fill in the missing parts here and hope to be useful to the latecomers.
First modify the program.psm file, you can open it with Notepad or WordPad. It is a function template property, the basics are clear at a glance:
;========================================================== ================ Port address definiTIons...;============================ ==============================================
CONSTANT switch_in , 00 ; Switch read portCONSTANT leds_out , 01 ; LED write portCONSTANT uart_data_rx , 02 ; UART receive read portCONSTANT uart_data_tx , 03 ; UART transmit write portCONSTANT data_present , 04 ; UART stat read port, lsbCONSTANT buffer_full , 05 ; UART stat read port, Lsb
;========================================================== =============== Useful Constant declaraTIons...;============================ ==============================================
CONSTANT all_clear , 00 ; define zero
CONSTANT ascii_NUL , 00 ; ascii code (null character)
Here to achieve a simple function, the state of the switch is read into a register of PicoBlaze, and then the contents of the register are written to the LED port to control the state of the LED; this is a loopback test program.
With PicoBlaze, you only need two lines of code!
In the initial opening of the program.psm task is modified:
Loop: LOAD s0, all_clear; zero out reg s0 (nop) INPUT S0 , 00 ; Switch read port OUTPUT S0 , 01 ; LED write port ; LAB TASK #1 ; Write code to read the switch state and ; then write it to the LED control port.
In the port definition, 00 is the address corresponding to the switch (dial switch) port, s0 is the no wait register, the semicolon is used to comment INPUT S0, 00; Switch read port reads the state corresponding to the switch switch into the s0 register
OUTPUT S0 , 01 ; LED write port Write the status of s0 to the LED control port and enable the kpsm3 compiler to compile. The beginning of the windows system - run, enter cmd and then press Enter, switch to the corresponding directory of assemble, as shown:
[[wysiwyg_imageupload:187:]]
Then press Enter to generate the program.v file; then add it to the ISE project. It should be noted here that kcpsm3 is a dos program that can only run on 32-bit programs. In my 64-bit win7, although ISE can be natively supported, the kcpsm3 program cannot run on 64-bit. Fortunately, I still have a virtual PC.
10 inch tablet is the most important size on tablet market. Which kind of clients like more? The answer is loving bigger size or storage, longer working time, etc. Since Android Tablet 10 inch is usually equipped with full HD screen, memory support up to 8GB, storage up to 256GB, battery up to 7000mAh-working 5-8hours. However, 8 inch android tablet mainly up to 4GB ram 64GB ROM, 4000mAh battery. At this store, you can see more than ten different 10 inch tablets on sale and one 10 inch windows tablet with magnetic keyboard option, and high level CPU and SIM Card option. Besides, you can also see amazon tablet 10 inch with competitive cost, especially take above 1000pcs. Except android tablet, 14 inch 64Gb Student Laptop for online learning, 15.6 inch celeron n5095 business laptop, 15 inch intel i3, i5, i7 10th or 11th generation Gaming Laptop and 16 inch laptop with 4gb graphics card and 16gb ram 512GB ssd alternatives also.
Any other special requirements, just fee free to contact us. Will try our best to support you.
10 Inch Tablet,10 Inch Tablets On Sale,Android Tablet 10 Inch,Amazon Tablet 10 Inch,10 Inch Windows Tablet
Henan Shuyi Electronics Co., Ltd. , http://www.shuyielectronics.com