Anda di halaman 1dari 3

Khi lm vic vi FPGA c 1 s khi nim em khng r.Nh y c 1 khi nim [http://www.asic-world.com/tidbits/metastablity.html Metastability] i vi D-FlipFlop.

. nh ngha trn c 1 on u e c 1 s thc mc: Whenever there are setup and hold time violations in any flip-flop, it enters a state where its output is unpredictable: this state is known as metastable state (quasi stable state); at the end of metastable state, the flip-flop settles down to either '1' or '0'. This whole process is known as metastability. In the figure below Tsu is the setup time and Th is the hold time. Whenever the input signal D does not meet the Tsu and Th of the given D flip-flop, metastability occurs.

Khi nim violations i vi setup-time v hold-time l nh th no. Dc ton b ci tut trn ch thc mc ch . C th tham kho thm khi nim [http://en.wikipedia.org/wiki/Metastability_in_electronics Metastability] trn mediawiki.

The most common cause of metastability is violating the flip-flop's setup and hold times. During the time from the setup to the hold time, the input of the flip-flop should remain stable; a change in the input in that time will have a probability of setting the flip-flop to a metastable state.

Cn 1 vn na l lm vic gia cc clock domain vi nhau th c nhng vn g,hng gii quyt th no.

== Tng kt 2 tun vi vn "Giao tip gia 2 board DE2 bng DM9000A" ==

--Test th truyn nhn 2 board b li vi phin bn code chnh sa vi mc ch mi ln nhn th truyn 1 packet

---- unsigned int button; LCD_Init();

LCD_Show_Text("Test NET"); DM9000_init(); alt_irq_register( DM9000A_IRQ, NULL, (void*)ethernet_interrupts ); packet_num=0; set_pio_irq_mask(BUTTON_PIO_BASE, 0x00); set_pio_irq_mask(LED_GREEN_BASE,0x00); while (1) { while(1) { button=inport(BUTTON_PIO_BASE)&0x0004; if(button==0) break; msleep(200); }

---th ch truyn nhn dc 1 ln

-->kim tra th vi d liu khc d liu gc ca v d th vic truyn nhn sai do bn em sa ngay nhng byte destination MAC address lm vic truyn nhn khng cn mang tnh broadcast na m li thnh truyn ring cho 1 knh -->truyn nhn khng dc

-->Kt qu cui cng: -->chnh sa li byte destination MAC address -->truyn nhn t kt qu. -->Nhng vn cha gii quyt vn truyn nhn dc ch 1 ln -->Pht hin ra on code kim tra nt nhn lm cho ngt ca ethernet khng th hot ng ch khi xong 1 ln nhn nt th ct ngt mi hot ng -->nhn nt th truyn d liu ng thi x b m ca DM9000A

-->b on code kim tra nt dng code default ca DE2_NET th mi vn dc gii quyt

-->Kinh nghim cho vn ln ny: ---->T sa i cha c k xem c nh hng ci khc khng thm vo cng nh chnh sa.

Cc bn coi xem Thi c bo co thiu g nhiu khng.B sung trc tip vo gip.

Anda mungkin juga menyukai