代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.v
module switch(clk4,rst,swin,pulse);
input clk4,rst,swin;
output pulse;
reg swout;
assign pulse=swout;
always@(posedge clk4 or negedge rst)
begin
if(rst==1'b0)
swout
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO
switch.h
#define NU_SEM_EN 1
#define NU_QUEUE_EN 1
#define NU_MAILBOX_EN 1
#define NU_PIPE_EN 1
#define NU_EVENT_GROUP_EN 1
#define NU
switch.c
#include "hpa449lib.h"
#include "sblcd_hpa449_sblcd.h"
void WaitForSwitch2()
{
// turn down arrow on
LCDM2 |= 0x08;
// wait for switch 2 to go low
while (P1IN & SWITCH_2_BIT)