/* Copyright 2014 Jun WAKO */ #ifndef IBM4704_H #define IBM4704_H #define IBM4704_ERR_NONE 0 #define IBM4704_ERR_PARITY 0x70 void ibm4704_init(void); uint8_t ibm4704_send(uint8_t data); uint8_t ibm4704_recv_response(void); uint8_t ibm4704_recv(void); /* Check pin configuration */ #if !(defined(IBM4704_CLOCK_PORT) && \ defined(IBM4704_CLOCK_PIN) && \ defined(IBM4704_CLOCK_DDR) && \ defined(IBM4704_CLOCK_BIT)) # error "ibm4704 clock pin configuration is required in config.h" #endif #if !(defined(IBM4704_DATA_PORT) && \ defined(IBM4704_DATA_PIN) && \ defined(IBM4704_DATA_DDR) && \ defined(IBM4704_DATA_BIT)) # error "ibm4704 data pin configuration is required in config.h" #endif /*-------------------------------------------------------------------- * static functions *------------------------------------------------------------------*/ static inline void clock_lo(void) { IBM4704_CLOCK_PORT &= ~(1<asicworld/code_tidbits_nonblocking.v
blob: 4a0d365e0dae37851fd8f5e234878894d1f7b7d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module nonblocking (clk,a,c);
input clk;
input a;
output c;
 
wire clk;
wire a;
reg c;
reg b;
  
always @ (posedge clk )
begin
  b <= a;
  c <= b;
end
   
endmodule