This file contains hidden or 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
#include <iprouting.h> | |
#include "ppp.h" | |
configuration PppRouterC { | |
} implementation { | |
components PppRouterP; | |
components MainC; | |
PppRouterP.Boot -> MainC; |
This file contains hidden or 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
Main thread info | |
Stack variable address : 0x7fff70649a4c | |
main function address : 0x4006dd | |
printInfo function address : 0x4007b5 | |
Global variable address : 0x601058 | |
Static variable address : 0x601060 | |
Thread 2 thread info | |
Stack variable address : 0x7f730be3be6c | |
main function address : 0x4006dd |
This file contains hidden or 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
def bin_complement(a): | |
tmpBin = list(a) | |
for i, c in enumerate(tmpBin): | |
if c == "1": | |
tmpBin[i] = "0" | |
else: | |
tmpBin[i] = "1" | |
return ''.join(tmpBin) | |
def bin_increment(a): |
This file contains hidden or 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
from math import ceil, log | |
def shift_and_sign_extend(num_list, shift=1): | |
length = 0 | |
#find the length | |
for index, element in enumerate(numlist): | |
tEl = element + '0' * (index * shift) | |
tLen = len(tEl) | |
numlist[index] = tEl | |
if length < tLen: |
This file contains hidden or 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
from math import ceil, log | |
def shift_and_sign_extend(num_list, shift=1): | |
length = 0 | |
#find the length | |
for index, element in enumerate(numlist): | |
tEl = element + '0' * (index * shift) | |
tLen = len(tEl) | |
numlist[index] = tEl | |
if length < tLen: |
This file contains hidden or 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
---------------------------------------------------------------------------------- | |
-- Company: | |
-- Engineer: | |
-- | |
-- Create Date: 12:00:36 01/16/2014 | |
-- Design Name: | |
-- Module Name: BoothPartProdGen - Behavioral | |
-- Project Name: | |
-- Target Devices: | |
-- Tool versions: |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
OlderNewer