Skip to content

Commit

Permalink
ice40_hx8k_b_evn
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Feb 1, 2020
1 parent 0c32af4 commit 9b85314
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions targets/ice40_hx8k_b_evn/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
import struct
import os.path
Expand All @@ -15,7 +16,7 @@

from targets.utils import csr_map_update

from litex.soc.cores.uart import UARTWishboneBridge
from litex.soc.cores.uart import UARTWishboneBridge

class _CRG(Module):
def __init__(self, platform):
Expand Down Expand Up @@ -44,19 +45,10 @@ def __init__(self, platform):


class BaseSoC(SoCCore):
csr_peripherals = (
"spiflash",
"cas",
)
csr_map_update(SoCCore.csr_map, csr_peripherals)

mem_map_overlay = {
mem_map = {**SoCSDRAM.mem_map, **{
"spiflash": 0x20000000, # (default shadow @0xa0000000)
"sram": 0,
}
mem_map = dict(SoCCore.mem_map, **mem_map_overlay)

#mem_map.update(SoCCore.mem_map)
}}

def __init__(self, platform, **kwargs):
if 'integrated_rom_size' not in kwargs:
Expand Down

0 comments on commit 9b85314

Please sign in to comment.