blob: e285eb54f06122ed38248040c36b35faa951017d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* nld_7404.c
*
*/
#include "nld_7404.h"
NETLIB_START(nic7404)
{
register_input("A", m_I);
register_output("Q", m_Q);
m_Q.initial(1);
}
NETLIB_UPDATE(nic7404)
{
static const netlist_time delay[2] = { NLTIME_FROM_NS(15), NLTIME_FROM_NS(22) };
UINT8 t = (INPLOGIC(m_I)) ^ 1;
OUTLOGIC(m_Q, t, delay[t]);
}
|