This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
entity ReadOutputCorrect is | |
PORT ( | |
in1 : IN STD_LOGIC; | |
in2 : IN STD_LOGIC; | |
in3 : IN STD_LOGIC; | |
o1 : OUT STD_LOGIC; | |
o2 : OUT STD_LOGIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ThisRegWontProduceReg( | |
output reg o1, | |
input i1, i2, i3 | |
); | |
always @(i1, i2, i3) begin | |
if (i1 == 1'b1) begin | |
o1 <= i2; | |
end else begin | |
o1 <= i3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RegAssignmentWrong( | |
output reg o, | |
input in1, | |
input in2 | |
); | |
assign o = in1 & in2; | |
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: motion_search_cuda motion_search_cpu | |
motion_search_cuda: motion_search_cuda.cu | |
nvcc -o $@ $^ | |
motion_search_cpu: motion_search_cpu.c | |
gcc -o $@ $^ -std=c99 | |
clean: | |
rm motion_search_cuda motion_search_cpu output_cuda.yuv output_cpu.yuv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char* data="Please work! :P"; | |
packetXBee* paq_sent; | |
uint8_t PANID[2] = {0x33, 0x32}; | |
uint8_t dest_addr[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF}; | |
int i = 0; | |
void setup() { | |
xbee802.init(XBEE_802_15_4, FREQ2_4G, NORMAL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type Mammal struct { | |
Lung string | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPONENT=Send_BC_D_N154C | |
CFLAGS += -I$(shell pwd)/.. | |
# To use the TKN15.4 MAC instead of a platform's default MAC protocol first | |
# include the TinyOS "Makerules" file as usual ... | |
include $(MAKERULES) | |
# ... and then include the TKN15.4 "Makefile.include" file. That's all. | |
# Hint: type "make <platform> verbose" to see the aggregate include path. | |
include $(TOSDIR)/lib/mac/tkn154/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPONENT=Send_p2p_D_N154C | |
CFLAGS += -I$(shell pwd)/.. | |
# To use the TKN15.4 MAC instead of a platform's default MAC protocol first | |
# include the TinyOS "Makerules" file as usual ... | |
include $(MAKERULES) | |
# ... and then include the TKN15.4 "Makefile.include" file. That's all. | |
# Hint: type "make <platform> verbose" to see the aggregate include path. | |
include $(TOSDIR)/lib/mac/tkn154/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPONENT=Receive_D_N154C | |
CFLAGS += -I$(shell pwd)/.. | |
# To use the TKN15.4 MAC instead of a platform's default MAC protocol first | |
# include the TinyOS "Makerules" file as usual ... | |
include $(MAKERULES) | |
# ... and then include the TKN15.4 "Makefile.include" file. That's all. | |
# Hint: type "make <platform> verbose" to see the aggregate include path. | |
include $(TOSDIR)/lib/mac/tkn154/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#build libmote.a | |
cd ${TOSROOT}/support/sdk/c/sf/ | |
./bootstrap | |
./configure | |
make | |
#build seriallisten15-4.c | |
cd ${TOSROOT}/apps/BaseStation15.4 |
OlderNewer