bat 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +1 -4
- data/bin/bat +57 -2
- data/lib/version.rb +1 -1
- metadata +2 -2
data/README.txt
CHANGED
@@ -13,7 +13,4 @@ Design Considerations
|
|
13
13
|
*If a BUFZ is used in a circuit, only the first (top) buffer on the BUFZ instance may be used. This is consistent with BLT implementation. One external pin is consumed per BUFZ and appears as instXpin in the final ABEL code. Tristated signals within the circuit will appear as an open input when in high impedance mode. Given this situation on CMOS technology, the signal will actually float to low rather than remain high impedance, as is typical of of any inputs that are left unconnected. TTL technology will float high in the same situation. Because of this, the designer must take care to ensure that the circuit is not designed expecting a true high impedance signal internal to the circuit (this is only achieved when the output is taken directly from the output pin consumed by the buffer).
|
14
14
|
|
15
15
|
-MUX2 Implementation Details:
|
16
|
-
*If a MUX2 is used in a circuit, only the first (top) MUX on the MUX2 package may be used. This is consistent with BLT implementation.
|
17
|
-
|
18
|
-
ABEL 7.0 Configuration
|
19
|
-
-Buffers are implemented by ORing the signal with itself to induce a single-gate propagation delay (4ns with Xilinx XC9536). Thus, if ABEL's preferences are set to reduce redundant logic the buffers will not work. If buffers are not included in a circuit, BAT designers recommend that ABEL bet set to reduce redundant logic, but ONLY if buffers are not used.
|
16
|
+
*If a MUX2 is used in a circuit, only the first (top) MUX on the MUX2 package may be used. This is consistent with BLT implementation.
|
data/bin/bat
CHANGED
@@ -21,9 +21,63 @@ CHIPNAMES = [["xc9536",34],["gal16v8",14], ["pal16v8",14]]
|
|
21
21
|
# ARGV = ["xc9536","../examples/FULLCNTR.EDF"]
|
22
22
|
|
23
23
|
# test command line for correct number of arguments
|
24
|
-
if
|
24
|
+
# output help file if it is asked for
|
25
|
+
if ARGV.length == 1 and ARGV[0] == "-h"
|
26
|
+
puts "
|
27
|
+
NAME
|
28
|
+
bat -- a B Squared Logic to ABEL translator
|
29
|
+
|
30
|
+
SYNOPSIS
|
31
|
+
bat [-h help] [chip_type] [filename]
|
32
|
+
|
33
|
+
DESCRIPTION
|
34
|
+
BAT takes valid EDF files (As produced by the BLT/MOSIS compatible B
|
35
|
+
Squared Logic Program) and converts them to ABEL HDL code.
|
36
|
+
|
37
|
+
AUTHORS
|
38
|
+
BAT was designed and implemented by Jamie Quint and Ian Tagge.
|
39
|
+
|
40
|
+
B^2 Logic Requirements
|
41
|
+
BAT 1.0 is designed to work only with the BLT version of
|
42
|
+
B^2 Logic 3.0, available at The University of Portland.
|
43
|
+
|
44
|
+
Design Considerations
|
45
|
+
*Inputs and Outputs
|
46
|
+
B^2 Logic's EDF netlist does not make any distinction between
|
47
|
+
active low input pad and active high input pads. Thus, all
|
48
|
+
input pads are assumed to be active high. It is up to the
|
49
|
+
designer to include inverters in the circuit itself, or assume
|
50
|
+
that the inverted external signals will be available.
|
51
|
+
*Names of Input Pads
|
52
|
+
Output pads and clocks must not contain any spaces or special
|
53
|
+
characters. Valid names include only standard alphanumeric
|
54
|
+
characters (A..Z, a..z, 0..9).
|
55
|
+
|
56
|
+
BUFZ Implementation Details:
|
57
|
+
If a BUFZ is used in a circuit, only the first (top) buffer
|
58
|
+
on the BUFZ instance may be used. This is consistent with BLT
|
59
|
+
implementation. One external pin is consumed per BUFZ and
|
60
|
+
appears as instXpin in the final ABEL code. Tristated signals
|
61
|
+
within the circuit will appear as an open input when in high
|
62
|
+
impedance mode. Given this situation on CMOS technology, the
|
63
|
+
signal will actually float to low rather than remain high
|
64
|
+
impedance, as is typical of of any inputs that are left
|
65
|
+
unconnected. TTL technology will float high in the same
|
66
|
+
situation. Because of this, the designer must take care to
|
67
|
+
ensure that the circuit is not designed expecting a true high
|
68
|
+
impedance signal internal to the circuit (this is only achieved
|
69
|
+
when the output is taken directly from the output pin consumed
|
70
|
+
by the buffer).
|
71
|
+
|
72
|
+
MUX2 Implementation Details:
|
73
|
+
If a MUX2 is used in a circuit, only the first (top) MUX on
|
74
|
+
the MUX2 package may be used. This is consistent with BLT
|
75
|
+
implementation."
|
76
|
+
exit
|
77
|
+
elsif ARGV.length != 2
|
25
78
|
puts "Too many arguments - usage: bat chipname inputfilepath" if ARGV.length > 2
|
26
|
-
puts "Too few arguments - usage: bat chipname inputfilepath" if ARGV.length < 2
|
79
|
+
puts "Too few arguments - usage: bat chipname inputfilepath" if ARGV.length < 2
|
80
|
+
puts "Type 'bat -h' for usage"
|
27
81
|
exit
|
28
82
|
else
|
29
83
|
# if the chipname is wrong, print out a list of proper chipnames
|
@@ -35,6 +89,7 @@ else
|
|
35
89
|
end
|
36
90
|
# chop off the extra comma, print it, and quit
|
37
91
|
puts errstr.slice(0,errstr.length - 2)
|
92
|
+
puts "Type 'bat -h' for usage"
|
38
93
|
exit
|
39
94
|
end
|
40
95
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: bat
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-04-
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2007-04-27 00:00:00 -07:00
|
8
8
|
summary: B2 Logic to ABEL Translator
|
9
9
|
require_paths:
|
10
10
|
- lib
|