OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [core/] [9x8/] [peripherals/] [tb/] [PWM_8bit/] [tb_PWM_8bit.9x8] - Blame information for rev 11

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sinclairrf
#
2
# Copyright 2012, Sinclair R.F., Inc.
3
#
4
# Test bench for PWM_8bit peripheral.
5
#
6
 
7
ARCHITECTURE    core/9x8 Verilog
8
INSTRUCTION     128
9
DATA_STACK      32
10
RETURN_STACK    16
11
 
12
PARAMETER       G_CLK_FREQ_HZ   100_000_000
13
 
14
PORTCOMMENT allow runts
15
PERIPHERAL      PWM_8bit        outport=O_PWM_SR \
16
                                outsignal=o_pwm_sr \
17
                                ratemethod=G_CLK_FREQ_HZ/(6000*255)
18
 
19
PORTCOMMENT no-runt PWM
20
PERIPHERAL      PWM_8bit        outport=O_PWM_SN \
21
                                outsignal=o_pwm_sn \
22
                                ratemethod=G_CLK_FREQ_HZ/(6000*255) \
23
                                norunt
24
 
25
PORTCOMMENT inverted output PWM
26
PERIPHERAL      PWM_8bit        outport=O_PWM_SI \
27
                                outsignal=o_pwm_si \
28
                                ratemethod=G_CLK_FREQ_HZ/(6000*255) \
29
                                invert
30
 
31
PORTCOMMENT 3-channel PWM
32
PERIPHERAL      PWM_8bit        outport=O_PWM_MULTI \
33
                                outsignal=o_pwm_multi \
34
                                ratemethod=100_000_000/(6000*255) \
35
                                instances=3
36
 
37
PORTCOMMENT termination signal
38
OUTPORT 1-bit o_done O_DONE
39
 
40
ASSEMBLY tb_PWM_8bit.s

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.