w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
syn Architecture Reference
Architecture >> syn

Processes

proc_reset  ( RESET , RB_MREQ )
proc_regs  ( CLK )
proc_next  ( R_REGS , RB_MREQ , MEM_BUSY , MEM_ACT_R , MEM_ACK_R , MEM_DO , SMEM_CMD , SMEM_DATA , SWI )

Constants

IWIDTH  natural := imin ( 18 , AWIDTH )
maddrzero  slv ( AWIDTH - 1 downto 0 ) := ( others = > ' 0 ' )
regs_init  regs_type := ( s_idle , ' 0 ' , maddrzero , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ' 0 ' , ' 0 ' , ' 0 ' , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ' 0 ' , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) )
init_rbf_seq  integer := 0
init_rbf_mem  integer := 1
mcmd_rbf_ld  integer := 14
mcmd_rbf_inc  integer := 13
mcmd_rbf_we  integer := 12
sstat_rbf_wswap  integer := 9
sstat_rbf_wloop  integer := 8
sstat_rbf_loop  integer := 7
sstat_rbf_xord  integer := 6
sstat_rbf_xora  integer := 5
sstat_rbf_veri  integer := 4
sstat_rbf_fail  integer := 1
sstat_rbf_run  integer := 0
scmd_rbf_we  integer := 24
rbaddr_mdih  slv5 := " 00000 "
rbaddr_mdil  slv5 := " 00001 "
rbaddr_mdoh  slv5 := " 00010 "
rbaddr_mdol  slv5 := " 00011 "
rbaddr_maddrh  slv5 := " 00100 "
rbaddr_maddrl  slv5 := " 00101 "
rbaddr_mcmd  slv5 := " 00110 "
rbaddr_mblk  slv5 := " 00111 "
rbaddr_slim  slv5 := " 01000 "
rbaddr_saddr  slv5 := " 01001 "
rbaddr_sblk  slv5 := " 01010 "
rbaddr_sblkc  slv5 := " 01011 "
rbaddr_sblkd  slv5 := " 01100 "
rbaddr_sstat  slv5 := " 01101 "
rbaddr_sstart  slv5 := " 01110 "
rbaddr_sstop  slv5 := " 01111 "
rbaddr_seaddr  slv5 := " 10000 "
rbaddr_sedath  slv5 := " 10001 "
rbaddr_sedatl  slv5 := " 10010 "
omux_mdil  slv4 := " 0000 "
omux_mdih  slv4 := " 0001 "
omux_memdol  slv4 := " 0010 "
omux_memdoh  slv4 := " 0011 "
omux_maddrl  slv4 := " 0100 "
omux_maddrh  slv4 := " 0101 "
omux_slim  slv4 := " 0110 "
omux_saddr  slv4 := " 0111 "
omux_sstat  slv4 := " 1000 "
omux_seaddr  slv4 := " 1001 "
omux_sedatl  slv4 := " 1010 "
omux_sedath  slv4 := " 1011 "
omux_smemb0  slv4 := " 1100 "
omux_smemb1  slv4 := " 1101 "
omux_smemb2  slv4 := " 1110 "
omux_smemb3  slv4 := " 1111 "

Types

state_type  ( s_idle , s_mcmd , s_mcmd_read , s_mblk_wr1 , s_mblk_wr2 , s_mblk_rd1 , s_mblk_rd2 , s_sblk_rd , s_sblk , s_sstart , s_sload , s_srun , s_sloop )

Subtypes

maddr_f_wh  integer range AWIDTH - 1 downto 16
maddr_f_wl  integer range 15 downto 0
maddr_f_scmd  integer range IWIDTH - 1 downto 0
maddr_f_top4  integer range AWIDTH - 1 downto AWIDTH - 1 - 3
maddr_f_mid4  integer range AWIDTH - 1 - 4 downto AWIDTH - 1 - 7
maddr_f_bot  integer range AWIDTH - 1 - 8 downto 0
df_word0  integer range 15 downto 0
df_word1  integer range 31 downto 16
maddrh_rbf_h  integer range AWIDTH - 1 - 16 downto 0
mcmd_rbf_be  integer range 11 downto 8
mcmd_rbf_addrh  integer range AWIDTH - 1 - 16 downto 0
sstat_rbf_awidth  integer range 15 downto 13
scmd_rbf_wait  integer range 31 downto 28
scmd_rbf_be  integer range 23 downto 20
scmd_rbf_addr  integer range IWIDTH - 1 downto 0

Signals

SEQ_RESET  slbit := ' 0 '
SMEM_CEA  slbit := ' 0 '
SMEM_B3_WE  slbit := ' 0 '
SMEM_B2_WE  slbit := ' 0 '
SMEM_B1_WE  slbit := ' 0 '
SMEM_B0_WE  slbit := ' 0 '
SMEM_WEB  slbit := ' 0 '
SMEM_CMD  slv32 := ( others = > ' 0 ' )
SMEM_DATA  slv32 := ( others = > ' 0 ' )
R_REGS  regs_type := regs_init
N_REGS  regs_type

Records

regs_type 
state state_type
rbsel slbit
maddr slv ( AWIDTH - 1 downto 0 )
mdi slv32
saddr slv11
slim slv11
sbank slv2
srun slbit
slast slbit
sfail slbit
swcnt slv4
scaddr slv11
sveri slbit
sxora slbit
sxord slbit
sloop slbit
swloop slbit
swswap slbit
mrp_val_al slbit
mrp_adr_al slv11
mrp_dat_al slv32
mrp_val_dl slbit
mrp_adr_dl slv11
mrp_dat_dl slv32
se_addr slv11
se_data slv32
dispval slv16

Instantiations

smem_b3  ram_1swsr_wfirst_gen <Entity ram_1swsr_wfirst_gen>
smem_b2  ram_1swsr_wfirst_gen <Entity ram_1swsr_wfirst_gen>
smem_b1  ram_2swsr_wfirst_gen <Entity ram_2swsr_wfirst_gen>
smem_b0  ram_2swsr_wfirst_gen <Entity ram_2swsr_wfirst_gen>

Detailed Description

Definition at line 194 of file tst_sram.vhd.

Member Function/Procedure/Process Documentation

◆ proc_reset()

proc_reset (   RESET,
  RB_MREQ 
)

Definition at line 430 of file tst_sram.vhd.

◆ proc_regs()

proc_regs (   CLK  
)
Process

Definition at line 443 of file tst_sram.vhd.

◆ proc_next()

proc_next (   R_REGS ,
  RB_MREQ ,
  MEM_BUSY ,
  MEM_ACT_R ,
  MEM_ACK_R ,
  MEM_DO ,
  SMEM_CMD ,
  SMEM_DATA ,
  SWI  
)
Process

Definition at line 456 of file tst_sram.vhd.

Member Data Documentation

◆ IWIDTH

IWIDTH natural := imin ( 18 , AWIDTH )
Constant

Definition at line 196 of file tst_sram.vhd.

◆ SEQ_RESET

SEQ_RESET slbit := ' 0 '
Signal

Definition at line 198 of file tst_sram.vhd.

◆ SMEM_CEA

SMEM_CEA slbit := ' 0 '
Signal

Definition at line 200 of file tst_sram.vhd.

◆ SMEM_B3_WE

SMEM_B3_WE slbit := ' 0 '
Signal

Definition at line 201 of file tst_sram.vhd.

◆ SMEM_B2_WE

SMEM_B2_WE slbit := ' 0 '
Signal

Definition at line 202 of file tst_sram.vhd.

◆ SMEM_B1_WE

SMEM_B1_WE slbit := ' 0 '
Signal

Definition at line 203 of file tst_sram.vhd.

◆ SMEM_B0_WE

SMEM_B0_WE slbit := ' 0 '
Signal

Definition at line 204 of file tst_sram.vhd.

◆ SMEM_WEB

SMEM_WEB slbit := ' 0 '
Signal

Definition at line 205 of file tst_sram.vhd.

◆ SMEM_CMD

SMEM_CMD slv32 := ( others = > ' 0 ' )
Signal

Definition at line 206 of file tst_sram.vhd.

◆ SMEM_DATA

SMEM_DATA slv32 := ( others = > ' 0 ' )
Signal

Definition at line 207 of file tst_sram.vhd.

◆ state_type

state_type ( s_idle , s_mcmd , s_mcmd_read , s_mblk_wr1 , s_mblk_wr2 , s_mblk_rd1 , s_mblk_rd2 , s_sblk_rd , s_sblk , s_sstart , s_sload , s_srun , s_sloop )
Type

Definition at line 209 of file tst_sram.vhd.

◆ regs_type

regs_type
Record

Definition at line 225 of file tst_sram.vhd.

◆ state

state state_type
Record

Definition at line 226 of file tst_sram.vhd.

◆ rbsel

rbsel slbit
Record

Definition at line 227 of file tst_sram.vhd.

◆ maddr

maddr slv ( AWIDTH - 1 downto 0 )
Record

Definition at line 228 of file tst_sram.vhd.

◆ mdi

mdi slv32
Record

Definition at line 229 of file tst_sram.vhd.

◆ saddr

saddr slv11
Record

Definition at line 230 of file tst_sram.vhd.

◆ slim

slim slv11
Record

Definition at line 231 of file tst_sram.vhd.

◆ sbank

sbank slv2
Record

Definition at line 232 of file tst_sram.vhd.

◆ srun

srun slbit
Record

Definition at line 233 of file tst_sram.vhd.

◆ slast

slast slbit
Record

Definition at line 234 of file tst_sram.vhd.

◆ sfail

sfail slbit
Record

Definition at line 235 of file tst_sram.vhd.

◆ swcnt

swcnt slv4
Record

Definition at line 236 of file tst_sram.vhd.

◆ scaddr

scaddr slv11
Record

Definition at line 237 of file tst_sram.vhd.

◆ sveri

sveri slbit
Record

Definition at line 238 of file tst_sram.vhd.

◆ sxora

sxora slbit
Record

Definition at line 239 of file tst_sram.vhd.

◆ sxord

sxord slbit
Record

Definition at line 240 of file tst_sram.vhd.

◆ sloop

sloop slbit
Record

Definition at line 241 of file tst_sram.vhd.

◆ swloop

swloop slbit
Record

Definition at line 242 of file tst_sram.vhd.

◆ swswap

swswap slbit
Record

Definition at line 243 of file tst_sram.vhd.

◆ mrp_val_al

mrp_val_al slbit
Record

Definition at line 244 of file tst_sram.vhd.

◆ mrp_adr_al

mrp_adr_al slv11
Record

Definition at line 245 of file tst_sram.vhd.

◆ mrp_dat_al

mrp_dat_al slv32
Record

Definition at line 246 of file tst_sram.vhd.

◆ mrp_val_dl

mrp_val_dl slbit
Record

Definition at line 247 of file tst_sram.vhd.

◆ mrp_adr_dl

mrp_adr_dl slv11
Record

Definition at line 248 of file tst_sram.vhd.

◆ mrp_dat_dl

mrp_dat_dl slv32
Record

Definition at line 249 of file tst_sram.vhd.

◆ se_addr

se_addr slv11
Record

Definition at line 250 of file tst_sram.vhd.

◆ se_data

se_data slv32
Record

Definition at line 251 of file tst_sram.vhd.

◆ dispval

dispval slv16
Record

Definition at line 252 of file tst_sram.vhd.

◆ maddrzero

maddrzero slv ( AWIDTH - 1 downto 0 ) := ( others = > ' 0 ' )
Constant

Definition at line 255 of file tst_sram.vhd.

◆ regs_init

regs_init regs_type := ( s_idle , ' 0 ' , maddrzero , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ' 0 ' , ' 0 ' , ' 0 ' , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ' 0 ' , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ' 0 ' , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) , ( others = > ' 0 ' ) )
Constant

Definition at line 257 of file tst_sram.vhd.

◆ R_REGS

Definition at line 281 of file tst_sram.vhd.

◆ N_REGS

N_REGS regs_type
Signal

Definition at line 282 of file tst_sram.vhd.

◆ maddr_f_wh

maddr_f_wh integer range AWIDTH - 1 downto 16
Subtype

Definition at line 284 of file tst_sram.vhd.

◆ maddr_f_wl

maddr_f_wl integer range 15 downto 0
Subtype

Definition at line 285 of file tst_sram.vhd.

◆ maddr_f_scmd

maddr_f_scmd integer range IWIDTH - 1 downto 0
Subtype

Definition at line 287 of file tst_sram.vhd.

◆ maddr_f_top4

maddr_f_top4 integer range AWIDTH - 1 downto AWIDTH - 1 - 3
Subtype

Definition at line 288 of file tst_sram.vhd.

◆ maddr_f_mid4

maddr_f_mid4 integer range AWIDTH - 1 - 4 downto AWIDTH - 1 - 7
Subtype

Definition at line 289 of file tst_sram.vhd.

◆ maddr_f_bot

maddr_f_bot integer range AWIDTH - 1 - 8 downto 0
Subtype

Definition at line 290 of file tst_sram.vhd.

◆ df_word0

df_word0 integer range 15 downto 0
Subtype

Definition at line 292 of file tst_sram.vhd.

◆ df_word1

df_word1 integer range 31 downto 16
Subtype

Definition at line 293 of file tst_sram.vhd.

◆ init_rbf_seq

init_rbf_seq integer := 0
Constant

Definition at line 295 of file tst_sram.vhd.

◆ init_rbf_mem

init_rbf_mem integer := 1
Constant

Definition at line 296 of file tst_sram.vhd.

◆ maddrh_rbf_h

maddrh_rbf_h integer range AWIDTH - 1 - 16 downto 0
Subtype

Definition at line 298 of file tst_sram.vhd.

◆ mcmd_rbf_ld

mcmd_rbf_ld integer := 14
Constant

Definition at line 300 of file tst_sram.vhd.

◆ mcmd_rbf_inc

mcmd_rbf_inc integer := 13
Constant

Definition at line 301 of file tst_sram.vhd.

◆ mcmd_rbf_we

mcmd_rbf_we integer := 12
Constant

Definition at line 302 of file tst_sram.vhd.

◆ mcmd_rbf_be

mcmd_rbf_be integer range 11 downto 8
Subtype

Definition at line 303 of file tst_sram.vhd.

◆ mcmd_rbf_addrh

mcmd_rbf_addrh integer range AWIDTH - 1 - 16 downto 0
Subtype

Definition at line 304 of file tst_sram.vhd.

◆ sstat_rbf_awidth

sstat_rbf_awidth integer range 15 downto 13
Subtype

Definition at line 306 of file tst_sram.vhd.

◆ sstat_rbf_wswap

sstat_rbf_wswap integer := 9
Constant

Definition at line 307 of file tst_sram.vhd.

◆ sstat_rbf_wloop

sstat_rbf_wloop integer := 8
Constant

Definition at line 308 of file tst_sram.vhd.

◆ sstat_rbf_loop

sstat_rbf_loop integer := 7
Constant

Definition at line 309 of file tst_sram.vhd.

◆ sstat_rbf_xord

sstat_rbf_xord integer := 6
Constant

Definition at line 310 of file tst_sram.vhd.

◆ sstat_rbf_xora

sstat_rbf_xora integer := 5
Constant

Definition at line 311 of file tst_sram.vhd.

◆ sstat_rbf_veri

sstat_rbf_veri integer := 4
Constant

Definition at line 312 of file tst_sram.vhd.

◆ sstat_rbf_fail

sstat_rbf_fail integer := 1
Constant

Definition at line 313 of file tst_sram.vhd.

◆ sstat_rbf_run

sstat_rbf_run integer := 0
Constant

Definition at line 314 of file tst_sram.vhd.

◆ scmd_rbf_wait

scmd_rbf_wait integer range 31 downto 28
Subtype

Definition at line 316 of file tst_sram.vhd.

◆ scmd_rbf_we

scmd_rbf_we integer := 24
Constant

Definition at line 317 of file tst_sram.vhd.

◆ scmd_rbf_be

scmd_rbf_be integer range 23 downto 20
Subtype

Definition at line 318 of file tst_sram.vhd.

◆ scmd_rbf_addr

scmd_rbf_addr integer range IWIDTH - 1 downto 0
Subtype

Definition at line 319 of file tst_sram.vhd.

◆ rbaddr_mdih

rbaddr_mdih slv5 := " 00000 "
Constant

Definition at line 321 of file tst_sram.vhd.

◆ rbaddr_mdil

rbaddr_mdil slv5 := " 00001 "
Constant

Definition at line 322 of file tst_sram.vhd.

◆ rbaddr_mdoh

rbaddr_mdoh slv5 := " 00010 "
Constant

Definition at line 323 of file tst_sram.vhd.

◆ rbaddr_mdol

rbaddr_mdol slv5 := " 00011 "
Constant

Definition at line 324 of file tst_sram.vhd.

◆ rbaddr_maddrh

rbaddr_maddrh slv5 := " 00100 "
Constant

Definition at line 325 of file tst_sram.vhd.

◆ rbaddr_maddrl

rbaddr_maddrl slv5 := " 00101 "
Constant

Definition at line 326 of file tst_sram.vhd.

◆ rbaddr_mcmd

rbaddr_mcmd slv5 := " 00110 "
Constant

Definition at line 327 of file tst_sram.vhd.

◆ rbaddr_mblk

rbaddr_mblk slv5 := " 00111 "
Constant

Definition at line 328 of file tst_sram.vhd.

◆ rbaddr_slim

rbaddr_slim slv5 := " 01000 "
Constant

Definition at line 329 of file tst_sram.vhd.

◆ rbaddr_saddr

rbaddr_saddr slv5 := " 01001 "
Constant

Definition at line 330 of file tst_sram.vhd.

◆ rbaddr_sblk

rbaddr_sblk slv5 := " 01010 "
Constant

Definition at line 331 of file tst_sram.vhd.

◆ rbaddr_sblkc

rbaddr_sblkc slv5 := " 01011 "
Constant

Definition at line 332 of file tst_sram.vhd.

◆ rbaddr_sblkd

rbaddr_sblkd slv5 := " 01100 "
Constant

Definition at line 333 of file tst_sram.vhd.

◆ rbaddr_sstat

rbaddr_sstat slv5 := " 01101 "
Constant

Definition at line 334 of file tst_sram.vhd.

◆ rbaddr_sstart

rbaddr_sstart slv5 := " 01110 "
Constant

Definition at line 335 of file tst_sram.vhd.

◆ rbaddr_sstop

rbaddr_sstop slv5 := " 01111 "
Constant

Definition at line 336 of file tst_sram.vhd.

◆ rbaddr_seaddr

rbaddr_seaddr slv5 := " 10000 "
Constant

Definition at line 337 of file tst_sram.vhd.

◆ rbaddr_sedath

rbaddr_sedath slv5 := " 10001 "
Constant

Definition at line 338 of file tst_sram.vhd.

◆ rbaddr_sedatl

rbaddr_sedatl slv5 := " 10010 "
Constant

Definition at line 339 of file tst_sram.vhd.

◆ omux_mdil

omux_mdil slv4 := " 0000 "
Constant

Definition at line 341 of file tst_sram.vhd.

◆ omux_mdih

omux_mdih slv4 := " 0001 "
Constant

Definition at line 342 of file tst_sram.vhd.

◆ omux_memdol

omux_memdol slv4 := " 0010 "
Constant

Definition at line 343 of file tst_sram.vhd.

◆ omux_memdoh

omux_memdoh slv4 := " 0011 "
Constant

Definition at line 344 of file tst_sram.vhd.

◆ omux_maddrl

omux_maddrl slv4 := " 0100 "
Constant

Definition at line 345 of file tst_sram.vhd.

◆ omux_maddrh

omux_maddrh slv4 := " 0101 "
Constant

Definition at line 346 of file tst_sram.vhd.

◆ omux_slim

omux_slim slv4 := " 0110 "
Constant

Definition at line 347 of file tst_sram.vhd.

◆ omux_saddr

omux_saddr slv4 := " 0111 "
Constant

Definition at line 348 of file tst_sram.vhd.

◆ omux_sstat

omux_sstat slv4 := " 1000 "
Constant

Definition at line 349 of file tst_sram.vhd.

◆ omux_seaddr

omux_seaddr slv4 := " 1001 "
Constant

Definition at line 350 of file tst_sram.vhd.

◆ omux_sedatl

omux_sedatl slv4 := " 1010 "
Constant

Definition at line 351 of file tst_sram.vhd.

◆ omux_sedath

omux_sedath slv4 := " 1011 "
Constant

Definition at line 352 of file tst_sram.vhd.

◆ omux_smemb0

omux_smemb0 slv4 := " 1100 "
Constant

Definition at line 353 of file tst_sram.vhd.

◆ omux_smemb1

omux_smemb1 slv4 := " 1101 "
Constant

Definition at line 354 of file tst_sram.vhd.

◆ omux_smemb2

omux_smemb2 slv4 := " 1110 "
Constant

Definition at line 355 of file tst_sram.vhd.

◆ omux_smemb3

omux_smemb3 slv4 := " 1111 "
Constant

Definition at line 356 of file tst_sram.vhd.

◆ smem_b3

smem_b3 ram_1swsr_wfirst_gen
Instantiation

Definition at line 375 of file tst_sram.vhd.

◆ smem_b2

smem_b2 ram_1swsr_wfirst_gen
Instantiation

Definition at line 388 of file tst_sram.vhd.

◆ smem_b1

smem_b1 ram_2swsr_wfirst_gen
Instantiation

Definition at line 407 of file tst_sram.vhd.

◆ smem_b0

smem_b0 ram_2swsr_wfirst_gen
Instantiation

Definition at line 426 of file tst_sram.vhd.


The documentation for this design unit was generated from the following file: