mirror of
https://github.com/marqs85/ossc
synced 2026-10-31 12:17:17 +03:00
finalize Lumacode support
This commit is contained in:
1 parent
bb4932fc28
commit
c7fa9527fa
12 files changed
+230
-83
No files matched your search
@@ -153,7 +153,7 @@ typedef struct {
|
||||
|
||||
// lumacode palatte ram
|
||||
typedef struct {
|
||||
uint32_t data[512];
|
||||
uint32_t data[256];
|
||||
} lc_pal_ram;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -191,6 +191,6 @@ set_interface_property lc_ram_if CMSIS_SVD_VARIABLES ""
|
||||
set_interface_property lc_ram_if SVD_ADDRESS_GROUP ""
|
||||
|
||||
add_interface_port lc_ram_if lumacode_clk_i lumacode_clk_i Input 1
|
||||
add_interface_port lc_ram_if lumacode_addr_i lumacode_addr_i Input 9
|
||||
add_interface_port lc_ram_if lumacode_addr_i lumacode_addr_i Input 8
|
||||
add_interface_port lc_ram_if lumacode_rden_i lumacode_rden_i Input 1
|
||||
add_interface_port lc_ram_if lumacode_data_o lumacode_data_o Output 32
|
||||
@@ -53,7 +53,7 @@ module sc_config_top(
|
||||
output [10:0] shmask_data,
|
||||
// Lumacode interface
|
||||
input lumacode_clk_i,
|
||||
input [8:0] lumacode_addr_i,
|
||||
input [7:0] lumacode_addr_i,
|
||||
input lumacode_rden_i,
|
||||
output [31:0] lumacode_data_o
|
||||
);
|
||||
@@ -128,7 +128,7 @@ defparam
|
||||
|
||||
// Lumacode palette RAM
|
||||
altsyncram lumacode_pal_ram (
|
||||
.address_a (avalon_s_address[8:0]),
|
||||
.address_a (avalon_s_address[7:0]),
|
||||
.address_b (lumacode_addr_i),
|
||||
.clock0 (clk_i),
|
||||
.clock1 (lumacode_clk_i),
|
||||
@@ -159,15 +159,15 @@ defparam
|
||||
lumacode_pal_ram.clock_enable_output_b = "BYPASS",
|
||||
lumacode_pal_ram.intended_device_family = "Cyclone IV E",
|
||||
lumacode_pal_ram.lpm_type = "altsyncram",
|
||||
lumacode_pal_ram.numwords_a = 512,
|
||||
lumacode_pal_ram.numwords_b = 512,
|
||||
lumacode_pal_ram.numwords_a = 256,
|
||||
lumacode_pal_ram.numwords_b = 256,
|
||||
lumacode_pal_ram.operation_mode = "DUAL_PORT",
|
||||
lumacode_pal_ram.outdata_aclr_b = "NONE",
|
||||
lumacode_pal_ram.outdata_reg_b = "UNREGISTERED",
|
||||
lumacode_pal_ram.power_up_uninitialized = "FALSE",
|
||||
lumacode_pal_ram.rdcontrol_reg_b = "CLOCK1",
|
||||
lumacode_pal_ram.widthad_a = 9,
|
||||
lumacode_pal_ram.widthad_b = 9,
|
||||
lumacode_pal_ram.widthad_a = 8,
|
||||
lumacode_pal_ram.widthad_b = 8,
|
||||
lumacode_pal_ram.width_a = 32,
|
||||
lumacode_pal_ram.width_b = 32,
|
||||
lumacode_pal_ram.width_byteena_a = 1;
|
||||
|
||||
Reference in new issue
Block a user