1
0
mirror of synced 2026-01-13 15:17:34 +00:00

new device name, trying to figure out how to have siblings device in the PROM

This commit is contained in:
Romain Dolbeau 2021-01-09 13:37:43 -05:00
parent cc18210794
commit 007add0015
3 changed files with 78 additions and 82 deletions

View File

@ -377,7 +377,7 @@ rdfpga_match(device_t parent, cfdata_t cf, void *aux)
{
struct sbus_attach_args *sa = (struct sbus_attach_args *)aux;
return (strcmp("RDOL,SBusFPGA", sa->sa_name) == 0);
return (strcmp("RDOL,cryptoengine", sa->sa_name) == 0);
}
static void rdfpga_crypto_init(device_t self, struct rdfpga_softc *sc);

View File

@ -34,77 +34,77 @@ architecture arch of Prom is
signal Prom_ROM : rom_type := (
-- copy/paste the ROM content here --
"11110001000010000100100001000000", -- 1
"00000000000000000000000100011100", -- 2
"00010010000011010101001001000100", -- 3
"01001111010011000010110001010011", -- 4
"01000010011101010111001101000110", -- 5
"01010000010001110100000100000010", -- 6
"00000001000000010000001000010000", -- 7
"00000000000000010000000000000000", -- 8
"00011110000000010000001100010000", -- 9
"00000000000000000000000100000000", -- 10
"00000001000101100001000000000000", -- 11
"00000000000000000111111100000001", -- 12
"00010001000100100001000101110011", -- 13
"01101100011000010111011001100101", -- 14
"00101101011000100111010101110010", -- 15
"01110011011101000010110101110011", -- 16
"01101001011110100110010101110011", -- 17
"00000001000100000001000000000000", -- 18
"00000000000000000111111100000001", -- 19
"00010001000100100000101101100010", -- 20
"01110101011100100111001101110100", -- 21
"00101101011100110110100101111010", -- 22
"01100101011100110000000100010000", -- 23
"10100100110000001011011000001000", -- 24
"01101100011001010110010000101101", -- 25
"01110110011010010111001001110100", -- 26
"00001000000000001011100000000001", -- 27
"00000010101101100000111101101101", -- 28
"01111001001011010111001101100010", -- 29
"01110101011100110010110101100001", -- 30
"01100100011001000111001001100101", -- 31
"01110011011100110000100000000001", -- 32
"10111010000000010000001110110110", -- 33
"00001101011011010111100100101101", -- 34
"01110011011000100111010101110011", -- 35
"00101101011100110111000001100001", -- 36
"01100011011001010000100000000010", -- 37
"10111010101101100000011001101101", -- 38
"01100001011100000010110101101001", -- 39
"01101110000010000000001110110111", -- 40
"00010010000001100110110101100001", -- 41
"01110000001011010110100101101110", -- 42
"00000010000010011100001010110110", -- 43
"00000111011011010110000101110000", -- 44
"00101101011011110111010101110100", -- 45
"00001000000001001011011100010010", -- 46
"00000111011011010110000101110000", -- 47
"00101101011011110111010101110100", -- 48
"00000010000010011100001010110110", -- 49
"00001010011011010110000101110000", -- 50
"00101101011010010110111000101101", -- 51
"01101100011001010110010000001000", -- 52
"00000101101101110000100000000001", -- 53
"00010000000000000000000100000000", -- 54
"00000000000111100000100000000010", -- 55
"00010000000000000000000000000000", -- 56
"00000100000010000000001111000011", -- 57
"00001000000000001100001010110110", -- 58
"00001011011011010110000101110000", -- 59
"00101101011011110111010101110100", -- 60
"00101101011011000110010101100100", -- 61
"00001000000001101011011100001000", -- 62
"00000000000100000000000000000000", -- 63
"00000000000001000000100000000100", -- 64
"11000010110010100000011001100010", -- 65
"01101100011010010110111001101011", -- 66
"00100001000010000000011110110111", -- 67
"00001000000001010000100000000000", -- 68
"01110011000010000000011011000010", -- 69
"00010000101000000101000000001010", -- 70
"00000101000010000000011100000000", -- 71
"11110001000010000100100110001110", -- 1
"00000000000000000000000100011001", -- 2
"00010010000100010101001001000100", -- 3
"01001111010011000010110001100011", -- 4
"01110010011110010111000001110100", -- 5
"01101111011001010110111001100111", -- 6
"01101001011011100110010100000010", -- 7
"00000001000000010000001000010000", -- 8
"00000000000000010000000000000000", -- 9
"00011110000000010000001100010000", -- 10
"00000000000000000000000100000000", -- 11
"00000001000101100001000000000000", -- 12
"00000000000000000111111100000001", -- 13
"00010001000100100001000101110011", -- 14
"01101100011000010111011001100101", -- 15
"00101101011000100111010101110010", -- 16
"01110011011101000010110101110011", -- 17
"01101001011110100110010101110011", -- 18
"00000001000100000001000000000000", -- 19
"00000000000000000111111100000001", -- 20
"00010001000100100000101101100010", -- 21
"01110101011100100111001101110100", -- 22
"00101101011100110110100101111010", -- 23
"01100101011100110000000100010000", -- 24
"10100100110000001011011000001000", -- 25
"01101100011001010110010000101101", -- 26
"01110110011010010111001001110100", -- 27
"00001000000000001011100000000001", -- 28
"00000010101101100000111101101101", -- 29
"01111001001011010111001101100010", -- 30
"01110101011100110010110101100001", -- 31
"01100100011001000111001001100101", -- 32
"01110011011100110000100000000001", -- 33
"10111010000000010000001110110110", -- 34
"00001101011011010111100100101101", -- 35
"01110011011000100111010101110011", -- 36
"00101101011100110111000001100001", -- 37
"01100011011001010000100000000010", -- 38
"10111010101101100000011001101101", -- 39
"01100001011100000010110101101001", -- 40
"01101110000010000000001110110111", -- 41
"00010010000001100110110101100001", -- 42
"01110000001011010110100101101110", -- 43
"00000010000010011100001010110110", -- 44
"00000111011011010110000101110000", -- 45
"00101101011011110111010101110100", -- 46
"00001000000001001011011100010010", -- 47
"00000111011011010110000101110000", -- 48
"00101101011011110111010101110100", -- 49
"00000010000010011100001010110110", -- 50
"00001010011011010110000101110000", -- 51
"00101101011010010110111000101101", -- 52
"01101100011001010110010000001000", -- 53
"00000101101101110000100000000001", -- 54
"00010000000000000000000100000000", -- 55
"00000000000111100000100000000010", -- 56
"00010000000000000000000000000000", -- 57
"00000100000010000000001111000011", -- 58
"00001000000000001100001010110110", -- 59
"00001011011011010110000101110000", -- 60
"00101101011011110111010101110100", -- 61
"00101101011011000110010101100100", -- 62
"00001000000001101011011100001000", -- 63
"00000000000100000000000000000000", -- 64
"00000000000001000000100000000100", -- 65
"11000010101101100000011001100010", -- 66
"01101100011010010110111001101011", -- 67
"00100001000010000000011110110111", -- 68
"00001000000001010000100000000000", -- 69
"01110011000010000000011011000010", -- 70
"00000000000000000000000000000000", -- 71
-- ROM then filled with zero
others => (others => '0'));
begin

View File

@ -1,14 +1,13 @@
fcode-version2
\ Absolute minimal stuff; name & registers def.
" RDOL,SBusFPGA" name
" RDOL,cryptoengine" name
my-address h# 10000 + my-space h# 100 reg
\ we don't support ET
h# 7f xdrint " slave-burst-sizes" attribute
h# 7f xdrint " burst-sizes" attribute
headers
-1 instance value led-virt
my-address constant my-sbus-address
my-space constant my-sbus-space
@ -19,15 +18,12 @@ my-space constant my-sbus-space
: map-in-led ( -- ) my-sbus-address h# 10000 + my-sbus-space h# 4 map-in is led-virt ;
: map-out-led ( -- ) led-virt h# 4 map-out ;
external
\ external
: blink! ( pattern -- )
map-in-led
led-virt l! ( pattern virt -- )
map-out-led
;
\ works at probe time, but not as a user command
h# a0500a05 blink!
map-in-led
led-virt l! ( pattern virt -- )
map-out-led
;
end0